05-27-2014, 12:32 PM
(05-27-2014, 07:34 AM)rolo123 Wrote: Hello i need a macro for when i trapped use a item in a given sqm, and if possible, do not use it when I'm stuck and do not move me
Code:
1000 {AntiTrap} X:=Self.X() Y:=Self.Y() Z:=Self.Z() weapon:=Self.Inventory.LeftHand() range:=2 Map.UseOn(!weapon!, 2029, !X!, !X!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2030, !X!, !X!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2434, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2471, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2472, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2482, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2480, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2481, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2473, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2469, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2470, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2434, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2433, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2432, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2431, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2358, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2359, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2360, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2361, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2319, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2524, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2523, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2982, !X!, !Y!, !Z!, !range!)<>1 Map.UseOn(!weapon!, 2465, !X!, !Y!, !Z!, !range!)<>1
REP ++ IF I HELPED YOU !!! THANKS