Page 4 of 4

Re: Problem with auto login on next char

Posted: Thu Jun 25, 2015 7:02 am
by noobbotter
Thanks Administrator. I knew the file got attached so I figured it must have been something with the site upgrade that lost it.

Although I fixed my problem and it's working, I'm curious if the cause of my error was the fact that I killed the client, logged in with a different character and attempted to do a loadProfile() prior to doing a player:update?

Re: Problem with auto login on next char

Posted: Fri Jun 26, 2015 2:31 am
by rock5
player:update() is a very important function. Not only does it update the player details including it's address and skills but in the process it also detects character changes and in turn reruns setupMacros() which makes RoMScript function work. So it should always be one of the first things you do after changes such as changing class or changing character, etc.

So, yes, not running player:update() as soon as you change character can easily cause an error.