Page 1 of 1

Return pet before i die

Posted: Mon Jan 10, 2011 5:58 am
by botje

Code: Select all

if( 15 > player.HP/player.MaxHP*100 ) then
	CEggPet:Return()
end;
doesnt work, anybody has any ideas?

Botje

Re: Return pet before i die

Posted: Mon Jan 10, 2011 6:40 am
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;

Re: Return pet before i die

Posted: Mon Jan 10, 2011 6:46 am
by botje
aaah, i see :)

thanx, ill be testing that out ^^

Botje