BBot - The best bot of the world

Full Version: Help with "Map.UseOn" command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.