Once stucked it targets madman again, is there a way to reduce casualities to 0?
I tryed something like that
Code: Select all
if getZoneId() == 127 or getZoneId() == 128 then
target = player:getTarget();
if target.Id == 103857 or target.Id == 103169 then
if RoMScript("madman.Time") >= 1 then
unregisterTimer("timedAttack");
player:clearTarget();
printf("Running\n")
rest(5000)
local okander = player:findNearestNameOrId("103169")
player:target(okander)
end
end
end
Before, after the player:target i added this code
Code: Select all
if not (okander)
repeat
yrest(1000)
until false
end