PenUltima Online

It is currently Sat Sep 06, 2008 6:14 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: safe logout
PostPosted: Mon Apr 07, 2008 5:18 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 47
Location: Brazil
how detect when character make logoff and logoff/disconect char in exact moment? i think make area for this...


any idea?

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 2:06 pm 
Offline
User avatar

Joined: Fri Dec 28, 2007 11:19 pm
Posts: 91
Location: Montreal, Canada
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.. )

_________________
Image
FantasiaShard.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 5:13 pm 
Offline
User avatar

Joined: Fri Feb 10, 2006 12:15 am
Posts: 217
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/scripttypes.php#logofftest.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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 5:17 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 47
Location: Brazil
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/scripttypes.php#logofftest.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:
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,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl