Archaaz

Member
Greetings! Please for give any misuse of technical terms.

I am using a class system. Once the server side character creation is finished, the character is transported to an isolated area of the map and the initial class gump is sent after a character enters the world for the first time (from CharacterCreation.cs). The gump is not moveable and neither is the character. I am using a variable (?) and enum in PlayerMobile to determine a character's class. Once the process is finished, the variable is set and (last thing) the character is transported to the mainland.

The problem I am facing is if there is a crash, or if the player deliberately shuts down the server before the process finishes, they will be left without their Class being set. I need to resend the class gump upon a character logging in if its Class equals Class.None. I know how to script it (I think), but am uncertain in which file I should do so.

Thanks in advance for any help.
 
Anywhere that calls EventSink_Login I think would work, or you can simply create a custom file that calls the Login EventSink and does your check there, if you'd prefer to keep the distro files clean.
 
Anywhere that calls EventSink_Login I think would work, or you can simply create a custom file that calls the Login EventSink and does your check there, if you'd prefer to keep the distro files clean.

Thanks for the help and the prompt response! I have made quite a few changes to the distro files already, for better or worse, so no worries there.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back