Page 1 of 1

'player:logout(true)' possible error

Posted: Fri Sep 02, 2011 8:45 pm
by zephir
Hello,
when I execute the code:

Code: Select all

player:logout(true);
everything is normal except one thing, it logs off normaly but then goes to the 'character select menu', and just stands there without doing anyrhing,
for the code to procede I have to press ESC once, so it exits the 'character select menu', and continues to execute code, closing the game and activating the shutdown timer.

I need it to be fully automatic.

I dont know if I need an updated player.lua of it is from the chapter IV.

I checked and maybe there could be an error in the file classes/player.lua from the line 2833 down

it may need a line of code to make it exit 'character select menu' and procede the code normaly.


Hope you can help me :) Thanks and regards.

Re: 'player:logout(true)' possible error

Posted: Fri Sep 02, 2011 9:18 pm
by lisa

Code: Select all

player:logout(nil,true); -- closes client

Re: 'player:logout(true)' possible error

Posted: Fri Sep 02, 2011 9:44 pm
by rock5
lisa wrote:

Code: Select all

player:logout(nil,true); -- closes client
This will work if you have LOGOUT_SHUTDOWN set to true in your profile.

If you want it to work regardless of your profile setting use,

Code: Select all

player:logout(true,true)

Re: 'player:logout(true)' possible error

Posted: Sat Sep 03, 2011 4:18 am
by zephir
It now works Perfectly, Thank you