Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro, Throw item
#1
I have this macro, what it does? Throw an item (id 11372) near a monster(demon), 2 sqm to the right and 1 to the north , but i dont know why isnt working, instead of trowing the item near the demon, it throws it near me :c


PHP Code:
ID:=11372
COUNT
:= 1
X
:=Self.X() VarAdd(X2
Y:=Self.Y() VarAdd(Y1)
Z:=Self.Z()
Creatures.ByName(Demon)>0
Map
.Thrown(!ID!, !COUNT!, !X!, !Y!, !Z!) 

I give rep !
#2
[macro]1500 {Throw Target Item} ID:=Creature.Target() ITEM:=11372 COUNT:=1 X:=Creature.X(!ID!) Y:=Creature.Y(!ID!) Z:=Creature.Z(!ID!) Creature.NameIn(!ID!, Demon)==1 Inc(Y, 1) Inc(X, 2) Map.Thrown(!ITEM!, !COUNT!, !X!, !Y!, !Z!)[/macro]

[macro]1500 {Throw Monster Item} ID:=Creature.ByName(Demon) ITEM:=11372 COUNT:=1 X:=Creature.X(!ID!) Y:=Creature.Y(!ID!) Z:=Creature.Z(!ID!) ID>0 Inc(Y, 1) Inc(X, 2) Map.Thrown(!ITEM!, !COUNT!, !X!, !Y!, !Z!)[/macro]


Forum Jump:


Users browsing this thread: 1 Guest(s)