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

Players Cant log in

Fearkid

New Member
Joined
Mar 15, 2009
Messages
5
Reaction score
0
Hello,

I get this error when players are trying to connect to the server:


PHP:
[06/01/2010 21:52:27] Lua Script Error: [CreatureScript Interface] 
[06/01/2010 21:52:27] buffer:onLogin

[06/01/2010 21:52:27] [string "loadBuffer"]:19: attempt to call global 'setPlayerStorageValue' (a nil value)
[06/01/2010 21:52:27] stack traceback:
[06/01/2010 21:52:27] 	[string "loadBuffer"]:19: in function <[string "loadBuffer"]:3>
[06/01/2010 21:52:27] Account Manager has logged out.

How do I fix this so player can log in again?

I hope someone can help me thanks. :)
 
im not THAT good at this yet, but stace traceback means theres a serious error in the script. probably a spelling mistake or something like that.

go to your ots folder>creaturescripts>scripts>login and paste this script into there this is mine(BUT MAKE A ABCKUP OF YOURS JUST IN CASE):


function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end

registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "PlayerDeath")
return TRUE
end

---------------------------------------------------
Rep++ if this helped you :D
 
Back
Top