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

help error CreatureSetStorage Creature not found

miguelshta

Member
Joined
Mar 21, 2009
Messages
351
Solutions
1
Reaction score
13
Location
Toronto, Canada
Lua:
[7:1:24.218] [Error - GlobalEvent Interface]
[7:1:24.218] In a timer event called from:
[7:1:24.218] data/globalevents/scripts/botmanager.lua:onStartup
[7:1:24.218] Description:
[7:1:24.233] (LuaInterface::luaDoCreatureSetStorage) Creature not found

im having this error in my script:

Lua:
function isBot(cid)
    return (getCreatureStorage(cid, 59432) ~= -1)
end

function setBot(cid, bot)
    setPlayerModes(cid, 1,1,1)
    return doCreatureSetStorage(cid, 59432, bot)
end

function isBotActive(cid)
    return (getCreatureStorage(cid, 59433) > -1)
end

function setBotActive(cid, active)
    setPlayerModes(cid, 1,1,1)
    if(active) then
        recalculateHPandMana(cid)
        doTeleportThing(cid, getTownTemplePosition(math.random(1, 5)))
        doCreatureSetStorage(cid, 59433, 1)
        db.executeQuery("UPDATE `players` SET `online` = 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
    else
        recalculateHPandMana(cid)
        doTeleportThing(cid, {x = 12, y = 139, z = 5})
        doCreatureSetStorage(cid, 59433, -1)
        setTmpDeaths(cid, 0)
        setLastAssists(cid, 0)
        setLastFrags(cid, 0)
        
    end
end
 
This error would occur with an addEvent.

error is complaining that cid doesn't exist.

So either it's not being provided the creatureId, or you need to confirm that the creature is still alive/online when calling the function.

Lua:
if not isCreature(cid) then
    return
end

-- rest of code
 
Looks like you are running 'thais war with bots' ( [8.60] Thais War with PvP bots (https://otland.net/threads/8-60-thais-war-with-pvp-bots.204193/) ) and you did not import war.sql to database:
Server expects that players with IDs 1-200 are in database and they will be managed by bot manager.
i've imported manually can i just change the for cicle like this?

Lua:
function onStartup()
    for i=14,137 do
        loadPlayer(getBotNameByID(i))
        addEvent(setBotDelayed, 1000, getBotNameByID(i))
    end
    return true
end
Post automatically merged:

Looks like you are running 'thais war with bots' ( [8.60] Thais War with PvP bots (https://otland.net/threads/8-60-thais-war-with-pvp-bots.204193/) ) and you did not import war.sql to database:
Server expects that players with IDs 1-200 are in database and they will be managed by bot manager.
im adapting your sistem to my ot war i've imported all characters now no have errors pd: another question which one is the lastest updated thais war ot?
 
Last edited:
There were no updates in sources, except update to make it compilable on Debian 10.
On Jerzy Skalski AKA 'Gesior' files (http://skalski.at/files/?dir=files/thaiswar860_with_bots/zip) is file thaiswar_860_bots_working.zip. It contains folder 'sources_debian_10' with newest version of sources.
sources are ok, but the botmanager from the zipfile is diferent of the slaski pro files online
Post automatically merged:

There were no updates in sources, except update to make it compilable on Debian 10.
On Jerzy Skalski AKA 'Gesior' files (http://skalski.at/files/?dir=files/thaiswar860_with_bots/zip) is file thaiswar_860_bots_working.zip. It contains folder 'sources_debian_10' with newest version of sources.
bot logs in only like 11 bots online and walking after 1 minute they go offline and they doesnt attack only heals her self and walk any idea what is wrong? 0 console errors
 
Last edited:
Back
Top