-
botje
- Posts: 656
- Joined: Wed Oct 27, 2010 7:17 am
#1
Post
by botje »
Code: Select all
if( 15 > player.HP/player.MaxHP*100 ) then
CEggPet:Return()
end;
doesnt work, anybody has any ideas?
Botje
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 »
CEggPet is a class or template if you will. You don't use it that way.
First you create the object using the class,
Code: Select all
assistPet = CEggPet(settings.profile.options.EGGPET_ASSIST_SLOT)
This example uses the profile options to make sure you're using the right slot number.
Then you can use the object,
Code: Select all
if( 15 > player.HP/player.MaxHP*100 ) then
assistPet:Return()
end;
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
botje
- Posts: 656
- Joined: Wed Oct 27, 2010 7:17 am
#3
Post
by botje »
aaah, i see
thanx, ill be testing that out ^^
Botje