BBot - The best bot of the world
Help with "Map.UseOn" 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: Help with "Map.UseOn" command (/thread-18658.html)



Help with "Map.UseOn" command - Bugre - 10-19-2015

Hello, I am trying to use potions on another character, but the macro command is not working.

Here it is:

Map.UseOn(268, 99, 32153, 31660, 8, 0)

(Map.UseOn(ID, OnID, X, Y, Z, Range))

Am I doind something wrong?

Using Macro Debug it returns this:

Start-Of-Macro

Map.UseOn(268, 99, 32153, 31660, 8, 0) returned 0
End-Of-Macro


There is a character on the position...if I try the Map.HasID command:

Start-Of-Macro

Map.HasID(99, 32153, 31660, 8) returned 1
End-Of-Macro


Please help me.


RE: Help with "Map.UseOn" command - erleo - 10-19-2015

Try this:
[macro]800 {MP} PotionID:=268 Name:=PLAYER selfID:=Creature.ByName(!Name!) Creatures.ByRangeName(1, !Name!)>=1 Misc.ItemCount(Mana Potions)>=10 Creature.ShootOn(!selfID!, !PotionID!) [/macro]

Edit "PLAYER", for the name of character.