• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Issues with onLogin function in CreatureScript

GraveWalker

Member
Joined
Jan 7, 2019
Messages
14
Reaction score
6
TFS: 1.4.2
OTClient: 10.98

I'm currently working on a project where I need to create a script that changes the outfit of a player's vocation upon login. However, I've encountered some problems with my implementation.

I added a new file to my CreatureScripts directory and wrote a simple onLogin function that only contains a print statement. After restarting the server and attempting to log in, the server immediately logs me in and then logs me out again, with the character being unable to stay logged in.

I'm hoping that there is an easy fix for this issue, as I'm not sure what I may have missed or overlooked. Any advice or suggestions would be greatly appreciated. Thank you!
 
Back
Top