Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with "Map.UseOn" command
#1
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.
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)