BBot - The best bot of the world
Macro Door - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Macro Door (/thread-1326.html)



Macro Door - | socio | - 08-07-2011

Can someone make a macro to open a door in a specif position. Yeah i know than i can use the maptool but i prefer a macro.


Re: Macro Door - Noen - 08-07-2011

wiki Wrote:Map.Use(ID, X, Y, Z, Range) use a item in the ground ( samples: door, ladder )

Make your way till the door and then add this:

Code:
1000 {Open Door} VarSet(X) Self.X VarSet(Y) Self.Y VarSet(Z) Self.Z Map.Use(DOOR_ID, !X!, !Y!, !Z!, 1)

Or as the door doesn't move you can add its position (X,Y,Z) in the macro:

Code:
1000 {Open Door} Map.Use(DOOR_ID, X, Y, Z, 1)