Lineage 2 Tower Forum

Full Version: help me plugin or script plis
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
can someone help me with a script or plugin takes logout when recall or teleport?Huh
    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;

more they will log out after taking the teleporter?
First script yes.. it should.. but if u are in combat no.. the second script will crash your client i guess
replace ur shit sleep with this and will be ok Big Grin
    LUA Programming
os.execute("taskkill /PID " .. tostring(GetCurrentProcessId()));

I suggested shit Big Grin Sleep(); because os.execute("taskkill /PID ) is too unsteady.. it depends on your windows/windows version, administrator rights, partitions etc.
For example:
Code:
os.execute("taskkill /PID " .. tostring(GetCurrentProcessId()));
This does nothing to me, unless i write it like this"
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 13:54 PM)eustach3 Wrote: [ -> ]I suggested shit Big Grin Sleep(); because os.execute("taskkill /PID ) is too unsteady.. it depends on your windows/windows version, administrator rights, partitions etc.
For example:
Code:
os.execute("taskkill /PID " .. tostring(GetCurrentProcessId()));
This does nothing to me, unless i write it like this"
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 Big Grin

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
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


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
(05-13-2014 19:42 PM)eustach3 Wrote: [ -> ]
    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;

I wrote in the previous post,
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 logout
I really dont understand this
Reference URL's