Lineage 2 Tower Forum

Full Version: No xp = log off
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi can somebody tell/help me with stuff like if u are dead or bugged somehow to make char log out auto. Is it possible at all ?
    LUA Programming
Timeout = 1000
MyLoc = GetMe():GetLocation()
t = 0
repeat
t = t+1
if GetMe():GetRangeTo(MyLoc) < 100 then
if t > Timeout then
KillMe()
end
end
Sleep(1000)
until false



after Timeout amount of seconds it'll crash the client. I'm kinda drunk right now so if it's not perfect, that might be it. You get the idea anyway
Reference URL's