What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Summon Dead Horse? How?

Status
Not open for further replies.

czzplnm

Member
Joined
Jun 18, 2012
Messages
88
Reaction score
0
If my horse dies I would like to revive it. How?

PHP:
if (aCreature.ownerUniqId == me.uniqId)
{
if (!aCreature.isAlive())
{
Log("Should heal my pet");
SetTarget(aCreature);
MoveTo(aCreature); 
UsePortal(aCreature);
Thread.Sleep(timerDelay); 
}
}

aCreature is my pet I believe. Don't know which method to use.
 

I have attempted to use that, but to no avail.


PHP:
if (aCreature.ownerUniqId == me.uniqId) 
                    { 
                        if (!aCreature.isAlive()) 
                        { 
                            Log("Should heal my pet"); 
                            SetTarget(aCreature); 
                            MoveTo(aCreature); 

                            RessurectMount(false); 

                              
                        } 
                    }

It will never use the "Revive pet" skill.

It says I must be close to the stablehand, but what I want to do is when my bot is running around killing monsters I want it to revive my pet after combat if it died.
 
Last edited:
Check aCreature.hp == 1
Or check is your aCreture have buffs (when your creature died, it have 2 debuffs, when its alive with 1hp - it have only 1 debuff)
 
The code above attempts to be executed, but it seems ResurrectMount(false) does nothing. My bot simply gets stuck there because it never revives it and says "Should heal my pet" in the log, over, and over again.
 
Status
Not open for further replies.
Back
Top