Lineage 2 Tower Forum

Full Version: buff time use
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
then add something to check for buffs in your script sections,
ie,
if not getzonetype == 12 then
rebuff()
end;

Just include somewhere..
Reference URL's