1
Pytania i Problemy / Odp: Attack player Script! Help! pls
« dnia: 25 Lipiec 2022, 04:53:31 »
local oldTarget
macro(200, "hold target", function()
if g_game.isAttacking() then
oldTarget = g_game.getAttackingCreature()
end
if (oldTarget and not g_game.isAttacking() and getDistanceBetween(pos(), oldTarget:getPosition()) <= then
g_game.attack(oldTarget)
end
end)
I want to change this Script to Attack by name
macro(200, "hold target", function()
if g_game.isAttacking() then
oldTarget = g_game.getAttackingCreature()
end
if (oldTarget and not g_game.isAttacking() and getDistanceBetween(pos(), oldTarget:getPosition()) <= then
g_game.attack(oldTarget)
end
end)
I want to change this Script to Attack by name