Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New macro Utito tempo
#2
(01-20-2018, 11:26 PM)edwino4 Wrote: Its something wrong with this macro?


Yes there is

Creatures.ByName(..) command only works with one string.
If u want to use for multiple, u need to add them up.

your macro would be like this:

Code:
500 {utito creatures}
crQ:=0
CBN:=Creatures.ByName(Undead Dragon)
VarAdd(crQ, !CBN)
CBN:=Creatures.ByName(Draken Abomination)
VarAdd(crQ, !CBN)
CBN:=Creatures.ByName(Ghastly Dragon)
VarAdd(crQ, !CBN)
!crQ>=1
Status.Buff()==0
Self.Mana()>=300
Self.Say(utito tempo)


You can also use this. Puts ID of creature into variable, then checks if variable is one of the list (i use this way personally)

Code:
MonsID:=Creature.Attacking()
Creature.NameIn(!MonsID, Undead Dragon, Draken Abomination, Ghastly Dragon)==1


Messages In This Thread
New macro Utito tempo - by edwino4 - 01-20-2018, 11:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)