BBot - The best bot of the world

Full Version: Ask about command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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)
Thank you,

I was wondering about 'Noodle is gone' script and i think it should help Tongue
Maybe Creatures.ByName(Name) will be better, check out at http://wiki.bmega.net/doku.php?id=macros_commands
(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