Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mwall timer
#10
Try this, only works left and right for now, maybe on my off day, i'll make it smarter

Change throwID , i tested with coins
HAD TO CHANGE SOMETHING, copy macro again if u have from before this edit

[macro]50 {ThrowLeftRightFromTarget} throwID:=3031 Self.Attacking()==:True cX:=Creature.X(:TargetID) cY:=Creature.Y(:TargetID) cDis:=Creature.DistanceToSelf(:TargetID) cNY:=Sub(!cY, 1) cSY:=Add(!cY, 1) cWX:=Sub(!cX, 1) cEX:=Add(!cX, 1) {Map.ItemOnTop.ID(X, Y, Z)} Self.X()<!cX [on left] Self.X()>!cX [on right] exit() {on left} Map.HasID(!throwID, !cWX, !cY, :Z)<>1 [leftN] Map.Thrown(!throwID, 1, !cWX, !cY, :Z) exit() {leftN} Map.HasID(!throwID, !cWX, !cNY, :Z)<>1 [leftS] Map.Thrown(!throwID, 1, !cWX, !cNY, :Z) exit() {leftS} Map.HasID(!throwID, !cWX, !cSY, :Z)<>1 Map.Thrown(!throwID, 1, !cWX, !cSY, :Z) exit() {on right} Map.HasID(!throwID, !cEX, !cY, :Z)<>1 [rightN] Map.Thrown(!throwID, 1, !cEX, !cY, :Z) exit() {rightN} Map.HasID(!throwID, !cEX, !cNY, :Z)<>1 [rightS] Map.Thrown(!throwID, 1, !cEX, !cNY, :Z) exit() {rightS} Map.HasID(!throwID, !cEX, !cSY, :Z)<>1 Map.Thrown(!throwID, 1, !cEX, !cSY, :Z) exit() [/macro]



If you want to make it on KeyPress
add
Tibia.KeyDown(...) command in front of everything
Reply


Messages In This Thread
Mwall timer - by Cassius - 10-16-2018, 05:16 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)