safe logout

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
westrupp
Adept Poster
Posts: 89
Joined: Wed Aug 01, 2007 3:07 am

safe logout

Post by westrupp »

how detect when character make logoff and logoff/disconect char in exact moment? i think make area for this...


any idea?

Thanks,
User avatar
*Edwards
Forum Regular
Posts: 303
Joined: Fri Dec 28, 2007 11:19 pm

Post by *Edwards »

If I understand well you will find your answer with scripts/misc/logoff.src where is situated all the necessary code to your questions.

- You could use scripts/misc/logoff to notify mobiles online that playername is logging out
- Or you could use a command that use mobile.connected and it will return boolean ( 1= true, 0 = nope.. )
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Post by ncrsn »

I understood you wanted to make logout instant (in various cases) without character staying in the world after player has left the game.

IF that's the case, this is the script you are looking for: http://docs.polserver.com/pol097/script ... fftest.ecl. It has exists since POL087C I think, so you can likely use it.

IF that's not what you wanted, you can stop reading now.
westrupp
Adept Poster
Posts: 89
Joined: Wed Aug 01, 2007 3:07 am

Post by westrupp »

ncrsn wrote:I understood you wanted to make logout instant (in various cases) without character staying in the world after player has left the game.

IF that's the case, this is the script you are looking for: http://docs.polserver.com/pol097/script ... fftest.ecl. It has exists since POL087C I think, so you can likely use it.

IF that's not what you wanted, you can stop reading now.

Code: Select all

use uo;
include "include/findcity";
program logofftest( character )
	
    	if (character.cmdlevel) > 0
        		return 0;
                elseif(findcity(character) == "Cove")
		return 0;
    	else
        		return 300;
    	endif
endprogram
Thanks, here is for example character instant logoff in Cove....

Thanks again,
Post Reply