miguelshta
Member
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