
Untitled
Guest 76 8th Feb, 2025
---Reattack
local oldTarget
addIcon("Re", {item={id= 3049, count=1}, text = "ReA"}, macro(400, "Hold Target", nil, function()
if g_game.isAttacking() then
oldTarget = g_game.getAttackingCreature()
end
if (oldTarget and oldTarget:getPosition()) then
if (not g_game.isAttacking() and getDistanceBetween(pos(), oldTarget:getPosition()) <= 8) then
if (oldTarget:getPosition().z == posz()) then
g_game.attack(oldTarget)
end
end
end
end))
To share this paste please copy this url and send to your friends
RAW Paste Data