BBot - The best bot of the world
Macro, Throw item - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: Macro, Throw item (/thread-9638.html)



Macro, Throw item - Silex - 05-24-2013

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 !


RE: Macro, Throw item - Kimoszin - 05-25-2013

[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]