'player:logout(true)' possible error

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
zephir
Posts: 8
Joined: Fri Sep 02, 2011 7:43 pm

'player:logout(true)' possible error

#1 Post by zephir » Fri Sep 02, 2011 8:45 pm

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.
Attachments
player.lua
player.lua
(121.65 KiB) Downloaded 101 times

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

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

#2 Post by lisa » Fri Sep 02, 2011 9:18 pm

Code: Select all

player:logout(nil,true); -- closes client
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#3 Post by rock5 » Fri Sep 02, 2011 9:44 pm

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)
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

zephir
Posts: 8
Joined: Fri Sep 02, 2011 7:43 pm

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

#4 Post by zephir » Sat Sep 03, 2011 4:18 am

It now works Perfectly, Thank you

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest