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

Compiling How do i change start outfit (loggin error)

nystrom

New Member
Joined
Nov 17, 2009
Messages
269
Reaction score
0
Hello i have a problem when some one creats a character and loggs in on my server so dose i get a error on my server desplay that says:[25/06/2010 10:56:04] [Error - CreatureScript Interface]
[25/06/2010 10:56:04] buffer:eek:nLogin
[25/06/2010 10:56:04] Description:
[25/06/2010 10:56:04] (luaDoAddContainerItem) Container not found

i would be very glad if some one could help me =)
 
Oh ok here you have my login.lua


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
 
deam i still got the deam problem!

when some one loggs in
[26/06/2010 22:30:17] [Error - CreatureScript Interface]
[26/06/2010 22:30:17] buffer:eek:nLogin
[26/06/2010 22:30:17] Description:
[26/06/2010 22:30:17] (luaDoAddContainerItem) Container not found


if someone plz can help me. this might be to any help

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2525, 2173, 2463, 2383, 2647, 2457, 2389,}
}
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')

function onLogin(cid)
if(getPlayerStorageValue(cid, config.storage) > 0) then
return true
end

for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end

doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2182, 1)
doAddContainerItem(doPlayerAddItem(cid, 2190, 1), 2190, 1)

setPlayerStorageValue(cid, config.storage, 1)
return true
end
]]></event>
</mod>

plz show me the problem if you can find it <3
 
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2525, 2173, 2463, 2383, 2647, 2457, 2389}
}
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')

function onLogin(cid)
if(getPlayerStorageValue(cid, config.storage) > 0) then
return true
end

for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end

doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2182, 1)
doAddContainerItem(doPlayerAddItem(cid, 2190, 1), 2190, 1)

setPlayerStorageValue(cid, config.storage, 1)
return true
end
]]></event>
</mod>
 
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2525, 2173, 2463, 2383, 2647, 2457, 2389}
}
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')

function onLogin(cid)
if(getPlayerStorageValue(cid, config.storage) > 0) then
return true
end

for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end

doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2182, 1)
doAddContainerItem(doPlayerAddItem(cid, 2190, 1), 2190, 1)

setPlayerStorageValue(cid, config.storage, 1)
return true
end
]]></event>
</mod>

thx mate but it still dont works =( i dont know what the deam problem is, i have bin sitting here almost all day and try to fix it but nothing helps =( plz if some one know what to do. help me =(
 
Last edited:
Back
Top