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

Lua whats wrong with this script

ares413

New Member
Joined
Apr 1, 2010
Messages
130
Reaction score
3
Code:
local storage = 56486

function onDeath(cid, corpse, deathList)
    if isMonster(cid) then
        if getCreatureMaster(cid) ~= cid then
            doCreatureSetStorage(getCreatureMaster(cid), storageLol, os.time() + 10)
        end
    end
    return true
end

i keep getting this error
Code:
[18:40:36.467] [Error - CreatureScript Interface]
[18:40:36.468] data/creaturescripts/scripts/death.lua:onDeath
[18:40:36.468] Description:
[18:40:36.468] (luaDoCreatureSetStorage) Creature not found


please help rep++++!!!!!
 
Check if isCreature(getCreatureMaster(cid)) and getCreatureMaster(cid) ~= cid then
I don't know which tfs you are using but maybe getCreatureMaster(cid) just returns nil if it has no master..
 
Back
Top