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

Serverinfo talkaction error

josesaucedo

New Member
Joined
Jun 21, 2013
Messages
20
Reaction score
0
Hola otlanders, necesito ayuda ya que de muchas maneras traté de hacerlo funcionar pero sigue fallando es tfs 0.3.6
en el momento de escribir el comando! serverinfo no aparece nada dentro del juego y en la consola envía ese error

[CODE = lua] [18: 10: 35.773] [Error - Interfaz TalkAction]
[18: 10: 35.775] datos / talkactions / scripts / serverinfo.lua: onSay
[18: 10: 35.777] Descripción:
[18: 10: 35.780] data / talkactions / scripts / serverinfo.lua: 15: intento de concatenar el campo 'rateSpawn' (un valor nulo)
[18: 10: 35.781] seguimiento de pila:
[18: 10: 35.782] data / talkactions / scripts / serverinfo.lua: 15: en la función <data / talkactions / scripts / serverinfo.lua: 10> [/ CODE]
 
English only in Support board.
Where's the script you're trying to fix? Can you try this instead of the one you're using?
Lua:
local config = {
    rateExperience = getConfigInfo('rateExperience'),
    rateSkill = getConfigInfo('rateSkill'),
    rateLoot = getConfigInfo('rateLoot'),
    rateMagic = getConfigInfo('rateMagic'),
    rateSpawn = getConfigInfo('rateSpawn'),
    protectionLevel = getConfigInfo('protectionLevel'),
    stages = getBooleanFromString(getConfigInfo('experienceStages'))
}

function onSay(cid, words, param, channel)
    local exp = config.rateExperience
    if(config.stages) then
        exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
    end

    doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
    return true
end
 
I understand and I am sorry for not respecting English
Look, I tried what you posted and I throw the same error, right away, I leave the script that I have and one more thing will it have something to do with the skill stage xml and somehow affect it? or is it something wrong with the script. thank you

Code:
local config = {
    rateExperience = getConfigInfo('rateExperience'),
    rateSkill = getConfigInfo('rateSkill'),
    rateLoot = getConfigInfo('rateLoot'),
    rateMagic = getConfigInfo('rateMagic'),
    rateSpawn = getConfigInfo('rateSpawn'),
    protectionLevel = getConfigInfo('protectionLevel'),
    stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
function onSay(cid, words, param, channel)
    local exp = config.rateExperience
    if(config.stages == TRUE) then
        exp = getExperienceStage(getPlayerLevel(cid))
    end
    guild = "None"
        news = "The next update will occur in aproxetly 7 days!"
        name = getPlayerName(cid)
        level = getPlayerLevel(cid)
        access = getPlayerAccess(cid)
        version = "1.0"
        motto = "We keep the gaming feeling alive."
        local hours = math.ceil(getWorldUpTime() / 3600) - 1
    local minutes = math.ceil((getWorldUpTime() - (3600 * hours)) / 60)
    if minutes == 60 then
        minutes = 0
        hours = hours + 1
    end
    doPlayerPopupFYI(cid, "Welcome to Centera Evolution \nServer Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel .. "\nNews:\n " .. news .." \n \n\n You are Logged in as:\n Name: " .. name .."\n Level: " .. level .."\n Access: " .. access .."\n\n Server Version: " .. version .." \n Uptime:  ".. hours .."  hours and " .. minutes .." minutes.")
    return TRUE
end

Lua:
[23:0:50.200] [Error - TalkAction Interface]
[23:0:50.203] data/talkactions/scripts/serverinfo.lua:onSay
[23:0:50.205] Description:
[23:0:50.213] data/talkactions/scripts/serverinfo.lua:17: attempt to concatenate field 'rateSpawn' (a nil value)
[23:0:50.215] stack traceback:
[23:0:50.217]   data/talkactions/scripts/serverinfo.lua:17: in function <data/talkactions/scripts/serverinfo.lua:11>
 
I understand and I am sorry for not respecting English
Look, I tried what you posted and I throw the same error, right away, I leave the script that I have and one more thing will it have something to do with the skill stage xml and somehow affect it? or is it something wrong with the script. thank you

Code:
local config = {
    rateExperience = getConfigInfo('rateExperience'),
    rateSkill = getConfigInfo('rateSkill'),
    rateLoot = getConfigInfo('rateLoot'),
    rateMagic = getConfigInfo('rateMagic'),
    rateSpawn = getConfigInfo('rateSpawn'),
    protectionLevel = getConfigInfo('protectionLevel'),
    stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
function onSay(cid, words, param, channel)
    local exp = config.rateExperience
    if(config.stages == TRUE) then
        exp = getExperienceStage(getPlayerLevel(cid))
    end
    guild = "None"
        news = "The next update will occur in aproxetly 7 days!"
        name = getPlayerName(cid)
        level = getPlayerLevel(cid)
        access = getPlayerAccess(cid)
        version = "1.0"
        motto = "We keep the gaming feeling alive."
        local hours = math.ceil(getWorldUpTime() / 3600) - 1
    local minutes = math.ceil((getWorldUpTime() - (3600 * hours)) / 60)
    if minutes == 60 then
        minutes = 0
        hours = hours + 1
    end
    doPlayerPopupFYI(cid, "Welcome to Centera Evolution \nServer Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel .. "\nNews:\n " .. news .." \n \n\n You are Logged in as:\n Name: " .. name .."\n Level: " .. level .."\n Access: " .. access .."\n\n Server Version: " .. version .." \n Uptime:  ".. hours .."  hours and " .. minutes .." minutes.")
    return TRUE
end

Lua:
[23:0:50.200] [Error - TalkAction Interface]
[23:0:50.203] data/talkactions/scripts/serverinfo.lua:onSay
[23:0:50.205] Description:
[23:0:50.213] data/talkactions/scripts/serverinfo.lua:17: attempt to concatenate field 'rateSpawn' (a nil value)
[23:0:50.215] stack traceback:
[23:0:50.217]   data/talkactions/scripts/serverinfo.lua:17: in function <data/talkactions/scripts/serverinfo.lua:11>
Are you sure you're editing the correct file and/or you saved the file?

and/or just manually input all the values if you can't figure out why it's not working.
 
Back
Top