PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
safe logout

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Scripting Help
Display posts from previous:   

Author Message
westrupp



Joined: 01 Aug 2007
Posts: 26
Location: Brazil

PostPosted: Mon Apr 07, 2008 9:18 am    Post subject: safe logout Reply with quote

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


any idea?

Thanks,

Author Message
*Edwards



Joined: 29 Dec 2007
Posts: 85
Location: Montreal, Canada

PostPosted: Mon Apr 07, 2008 6:06 pm    Post subject: Reply with quote

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

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 172

PostPosted: Mon Apr 07, 2008 9:13 pm    Post subject: Reply with quote

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.

Author Message
westrupp



Joined: 01 Aug 2007
Posts: 26
Location: Brazil

PostPosted: Tue Apr 08, 2008 9:17 am    Post subject: Reply with quote

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,

Post new topic   Reply to topic    PenUltima Online Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty