05-13-2014, 05:02 AM
05-13-2014, 19:42 PM
LUA Programming
function OnTeleportToLocation(user, oldLocation, newLocation)
if user:IsMe() then
LogOut();
end;
Although it wont logout you if you are in combat
You can use some functions that could crash your game.. maybe it`s safer, maybe like this
LUA Programming
function OnTeleportToLocation(user, oldLocation, newLocation)
if user:IsMe() then
Sleep();
end;
05-15-2014, 06:54 AM
more they will log out after taking the teleporter?
05-15-2014, 08:41 AM
First script yes.. it should.. but if u are in combat no.. the second script will crash your client i guess
05-15-2014, 10:28 AM
replace ur shit sleep with this and will be ok
05-15-2014, 13:54 PM
I suggested shit Sleep(); because os.execute("taskkill /PID ) is too unsteady.. it depends on your windows/windows version, administrator rights, partitions etc.
For example:
This does nothing to me, unless i write it like this"
Whereas, Sleep(), even though it`s a shit, never seems to fail in closing your game
For example:
Code:
os.execute("taskkill /PID " .. tostring(GetCurrentProcessId()));
Code:
os.execute("C:\\Windows\\System32\\taskkill /PID " .. tostring(GetCurrentProcessId()));
Whereas, Sleep(), even though it`s a shit, never seems to fail in closing your game
05-15-2014, 14:42 PM
(05-15-2014 13:54 PM)eustach3 Wrote: [ -> ]I suggested shit Sleep(); because os.execute("taskkill /PID ) is too unsteady.. it depends on your windows/windows version, administrator rights, partitions etc.
For example:
This does nothing to me, unless i write it like this"Code:
os.execute("taskkill /PID " .. tostring(GetCurrentProcessId()));
Code:
os.execute("C:\\Windows\\System32\\taskkill /PID " .. tostring(GetCurrentProcessId()));
Whereas, Sleep(), even though it`s a shit, never seems to fail in closing your game
btw administrator rights need to run like admin,so it cant be reason, tower not work if just a user run it
and why need full path if that taskkill is cmd command ???
LUA Programming
function KillDatSh1t()
os.execute("taskkill /PID " .. tostring(GetCurrentProcessId()));
end;
ShowToClient("","Window CRASH in 3 sec");
Sleep(1000);
ShowToClient("","Window CRASH in 2 sec");
Sleep(1000);
ShowToClient("","Window CRASH in 1 sec");
Sleep(1000);
KillDatSh1t();
idk for me worked, i think dont depend on win wer, coz it is on cmd
http://technet.microsoft.com/en-us/libra...91009.aspx
05-15-2014, 18:29 PM
Yeah it`s a task executor from run, but it depends on the windows config.
If the environmental variable of windows %PATH% is not set automatically the os.execute will not find the correct path. It`s a common issue on some windows versions.
Take a look i made a video of what`s happening to me
http://youtu.be/fk_MQj4MNcI
If the environmental variable of windows %PATH% is not set automatically the os.execute will not find the correct path. It`s a common issue on some windows versions.
Take a look i made a video of what`s happening to me
http://youtu.be/fk_MQj4MNcI
05-15-2014, 20:02 PM
function OnTeleportToLocation(user, oldLocation, newLocation)
if user:IsMe() then
Sleep();
end;
script is working? gave me error
I want a GM type they teleport logout
if user:IsMe() then
Sleep();
end;
script is working? gave me error
I want a GM type they teleport logout
05-15-2014, 20:27 PM
(05-13-2014 19:42 PM)eustach3 Wrote: [ -> ]I wrote in the previous post,LUA Programming
function OnTeleportToLocation(user, oldLocation, newLocation) if user:IsMe() then LogOut(); end;
LUA Programming
function OnTeleportToLocation(user, oldLocation, newLocation) if user:IsMe() then Sleep(); end;
the first one wih LogOut(); will disconnect you.. but assuming that you are farming it may not be able to disconnect you instantly.. so i suggested using the second one with Sleep() .. because this will crush your client.
And by the way, they are both plugins.. Sleep() will not crush client in script, and what you ask can be done by plugin, so put the one you want in your plugin
(05-15-2014 20:02 PM)Atrivido Wrote: [ -> ]I want a GM type they teleport logoutI really dont understand this