---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))
Paste Hosted With By Wklejamy.pl