Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MACRO - Magic Wall Behind Yourself
09-05-2020, 03:54 PM (This post was last modified: 09-05-2020 04:37 PM by doxmey.)
Post: #1
Thumbs Up MACRO - Magic Wall Behind Yourself
Code:
2 {MwBehind} Tibia.KeyDown(:K_NEXT)==1 Self.Direction()==:East [1] x1:=Self.X() y1:=Self.Y() VarSub(x1, 1) mapid:=Map.ItemOnTop.ID(!x1, !y1, :Z) Map.UseOn(3180, !mapid, !x1, !y1, :Z, 1) Exit()  {1} Self.Direction()==:West [2] x2:=Self.X() y2:=Self.Y() VarAdd(x2, 1) mapid:=Map.ItemOnTop.ID(!x2, !y2, :Z) Map.UseOn(3180, !mapid, !x2, !y2, :Z, 1) Exit()  {2} Self.Direction()==:South [3] x3:=Self.X() y3:=Self.Y() VarSub(y3, 1) mapid:=Map.ItemOnTop.ID(!x3, !y3, :Z) Map.UseOn(3180, !mapid, !x3, !y3, :Z, 1) Exit()  {3} Self.Direction()==:North x4:=Self.X() y4:=Self.Y() VarAdd(y4, 1) mapid:=Map.ItemOnTop.ID(!x4, !y4, :Z) Map.UseOn(3180, !mapid, !x4, !y4, :Z, 1) Exit()


Default key is Page-down, you can edit it on Tibia.KeyDown(:K_NEXT) k:next is page down just change to whatever you need. This macro is useful in the library.
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
11-14-2020, 11:44 PM
Post: #2
RE: MACRO - Magic Wall Behind Yourself
(09-05-2020 03:54 PM)doxmey Wrote:  
Code:
2 {MwBehind} Tibia.KeyDown(:K_NEXT)==1 Self.Direction()==:East [1] x1:=Self.X() y1:=Self.Y() VarSub(x1, 1) mapid:=Map.ItemOnTop.ID(!x1, !y1, :Z) Map.UseOn(3180, !mapid, !x1, !y1, :Z, 1) Exit()  {1} Self.Direction()==:West [2] x2:=Self.X() y2:=Self.Y() VarAdd(x2, 1) mapid:=Map.ItemOnTop.ID(!x2, !y2, :Z) Map.UseOn(3180, !mapid, !x2, !y2, :Z, 1) Exit()  {2} Self.Direction()==:South [3] x3:=Self.X() y3:=Self.Y() VarSub(y3, 1) mapid:=Map.ItemOnTop.ID(!x3, !y3, :Z) Map.UseOn(3180, !mapid, !x3, !y3, :Z, 1) Exit()  {3} Self.Direction()==:North x4:=Self.X() y4:=Self.Y() VarAdd(y4, 1) mapid:=Map.ItemOnTop.ID(!x4, !y4, :Z) Map.UseOn(3180, !mapid, !x4, !y4, :Z, 1) Exit()


Default key is Page-down, you can edit it on Tibia.KeyDown(:K_NEXT) k:next is page down just change to whatever you need. This macro is useful in the library.


Hi man,

First I would like to thank you for the excellent macro.

Is it possible to put MW in the sqm chosen by the keys?

Example:

NUMPAD KEYS

7 -> TAKE MW NORTH WEST
1 -> TAKE MW SOUTH WEST
8 -> TAKE MW NORTH
2 -> TAKE MW SOUTH
9 -> TAKE MW NORTH EAST
3 -> TAKE MW SOUTH EAST
4 -> TAKE MW WEST
6 -> TAKE MW EAST
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)