L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No xp = log off
Author Message
zabuzasam2 Offline
Expired VIP Member
**

Posts: 7
Joined: Feb 2014
Reputation: 0
Version: 1.4.2.142
Post: #1
No xp = log off

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 ?
06-22-2015 06:37 AM
Find all posts by this user Quote this message in a reply
Vinter Offline
Expired VIP Member
**

Posts: 299
Joined: Sep 2013
Reputation: 109
Version: 1.4.1.128
Post: #2
RE: No xp = log off

    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
(This post was last modified: 06-22-2015 07:34 AM by Vinter.)
06-22-2015 07:32 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)