10-04-2013, 07:59 PM
How can i do to my bot gather a ID from:
Creature.ByName(Name)
and launch it to:
Creature.Attack(ID)
Let me explain, i was trying to make a trainer for a situation that you just can be attacked for 2 monster and the respawn is not where you are.
Example:
Have some minotaurs, so, i let one of those that are attacking me with low hp(28% of hp) and kill the other, when another minotaur come, the bot will verify(it's just an idea, is not the real code that we use at BBot):
If Creature HP>=30%
Creature.Attack(Gather the ID of the Creature with HP>=30% and put right here)
Somebody can help me? even it's not possible, just tell me please.
Thanks.
Creature.ByName(Name)
and launch it to:
Creature.Attack(ID)
Let me explain, i was trying to make a trainer for a situation that you just can be attacked for 2 monster and the respawn is not where you are.
Example:
Have some minotaurs, so, i let one of those that are attacking me with low hp(28% of hp) and kill the other, when another minotaur come, the bot will verify(it's just an idea, is not the real code that we use at BBot):
If Creature HP>=30%
Creature.Attack(Gather the ID of the Creature with HP>=30% and put right here)
Somebody can help me? even it's not possible, just tell me please.
Thanks.