BBot - The best bot of the world
Ask about command - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Ask about command (/thread-19587.html)



Ask about command - zarize - 03-14-2016

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


RE: Ask about command - MegaNo0body - 03-14-2016

(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)



RE: Ask about command - zarize - 03-14-2016

Thank you,

I was wondering about 'Noodle is gone' script and i think it should help Tongue


RE: Ask about command - MegaNo0body - 03-14-2016

Maybe Creatures.ByName(Name) will be better, check out at http://wiki.bmega.net/doku.php?id=macros_commands


RE: Ask about command - zarize - 03-14-2016

(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