BBot - The best bot of the world

Full Version: HELP WITH CREATURES ID
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
[macro]1000 {Test} target:=Creature.ByName(Name) Creature.Attack(!target!)[/macro]