• 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!

Solved CreatureScript Interface Lua Error?

peyster

New Member
Joined
Feb 16, 2010
Messages
44
Reaction score
0
I just made a 10.41 tibia server using TFS 1.0 and upon logging into an account and trying to log in with a character, it stays on, "Connecting to game world" and the command prompt says i am logged in but it gives a "Lua Scripting Error: CreatureScript Interface." The whole error is :

Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/regeneratestamina.lua:eek:nLogin
data/creaturescripts/scripts/regeneratestamina.lua:6: attempt to index local 'player' <a number value>
stack traceback:
[C]: in function '_index'
data/creaturescripts/scripts/regeneratestamina.lua:6: in function data/creaturescripts/scripts/regeneratestamina.lua:1>

Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/logout.lua:eek:nLogout
data/creaturescripts/scripts/logout.lua:2: attempt to index local 'player' <a number value>
stack traceback
[C]: in function '_index'
data/creaturescripts/scripts/logout.lua:2: in function <data/creaturescripts/scripts/logout.lua:1>

Solved.
 
Last edited:
Yes, any error in function named onLogin will prevent users from logging in to a character. Also if your function returns false then character won't be logged in.
 
Back
Top