Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP WITH CREATURES ID
#1
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.
#2
[macro]1000 {Test} target:=Creature.ByName(Name) Creature.Attack(!target!)[/macro]


Forum Jump:


Users browsing this thread: 1 Guest(s)