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

Change 8.5 a 8.54

darkin

New Member
Joined
Jan 31, 2009
Messages
14
Reaction score
0
when changing from 8.5 to 8.54 and try to enter the server and could not get in I get this error login.lua

[17/03/2010 10:03:33] Darkziito has logged in.

[17/03/2010 10:03:33] [Error - CreatureScript Interface]
[17/03/2010 10:03:33] buffernLogin
[17/03/2010 10:03:33] Description:
[17/03/2010 10:03:33] [string "loadBuffer"]:4: attempt to call global 'getPlayerStorageValue' (a nil value)
[17/03/2010 10:03:33] stack traceback:
[17/03/2010 10:03:33] [string "loadBuffer"]:4: in function <[string "loadBuffer"]:3>

[17/03/2010 10:03:33] [Error - CreatureScript Interface]
[17/03/2010 10:03:33] data/creaturescripts/scripts/login.luanLogin
[17/03/2010 10:03:33] Description:
[17/03/2010 10:03:33] data/creaturescripts/scripts/login.lua:24: attempt to call global 'getPlayerLastLoginSaved' (a nil value)
[17/03/2010 10:03:33] stack traceback:
[17/03/2010 10:03:33] data/creaturescripts/scripts/login.lua:24: in function <data/creaturescripts/scripts/login.lua:12>
[17/03/2010 10:03:33] Darkziito has logged out.

and change that login.lua by another and I get this:

[17/03/2010 10:09:40] Necrosky has logged in.

[17/03/2010 10:09:40] [Error - CreatureScript Interface]
[17/03/2010 10:09:40] buffernLogin
[17/03/2010 10:09:40] Description:
[17/03/2010 10:09:40] [string "loadBuffer"]:4: attempt to call global 'getPlayerStorageValue' (a nil value)
[17/03/2010 10:09:40] stack traceback:
[17/03/2010 10:09:40] [string "loadBuffer"]:4: in function <[string "loadBuffer"]:3>
[17/03/2010 10:09:40] Necrosky has logged out.

PLZZZZZZZZZZZZZ HELPPPPPPPPPPPPPPPPPPP
 
Try this login.lua:

HTML:
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

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

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end

	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end

	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")

	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end

	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "AdvanceSave")
	return true
end
 
Back
Top