Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ask about command
#1
Creature.NameIn(ID, Name,Na..) Verify if the creature from the given ID name is in the list (Returns: Yes=1; No=0) - it works like if it meets near your character(visible sqms) X/npc/monster? I mean what is the list, battle list? visible ? or wut :p
Reply
#2
(03-14-2016, 11:26 AM)zarize Wrote: Creature.NameIn(ID, Name,Na..) Verify if the creature from the given ID name is in the list (Returns: Yes=1; No=0) - it works like if it meets near your character(visible sqms) X/npc/monster? I mean what is the list, battle list? visible ? or wut :p

It will check the name of the creature with given ID matches the parameters:

Code:
1000 {Test Creature.NameIn}
Self.Attacking()==1 [ElseNotAttacking]
  TargetID:=Creature.Target()
  Creature.NameIn(!TargetID!, Demon, Fire Elemental)==1 [ElseNotCool]
    Self.Say(Im attacking a cool monster)
    Exit()
  {ElseNotCool}
    Self.Say(Im not attacking a cool monster)
    Exit()
{ElseNotAttacking}
  Self.Say(Im not attacking anything)
Reply
#3
Thank you,

I was wondering about 'Noodle is gone' script and i think it should help Tongue
Reply
#4
Maybe Creatures.ByName(Name) will be better, check out at http://wiki.bmega.net/doku.php?id=macros_commands
Reply
#5
(03-14-2016, 04:56 PM)MegaNo0body Wrote: Maybe Creatures.ByName(Name) will be better, check out at http://wiki.bmega.net/doku.php?id=macros_commands

Yea, seems like it should be better, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)