04-20-2015, 20:33 PM
Code:
function rebuff()
if (not GetMe():GotBuff(BuffID)) or (GetMe():GotBuff(BuffID) and (GetMe():GetBuff(BuffID).endTime > GetTime() + 119*60*1000)) then
return true
end
return false
function rez()
SetPause(true)
if GetMe():IsAlikeDeath() == true then
RequestRestartPoint(2)
return true
end
return false
end
repeat
if rebuff() and not rez() then
if(GetZoneType() == 15) then
UseItem(736);
Sleep(5000);
elseif rez() then
Sleep(5000);
end
end;
until false;
It's a part of my code,
end
Hello people, my character detect buff only when i use a skill EX: Stealth from treasure hunter, after use escape and rebuf into town, buffs is never gonna be checked again.
Anyone can help me?