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

Problem with script

Volerix

Jumper
Joined
Jul 19, 2012
Messages
8
Reaction score
0
Hello, I have problem with that script:

Code:
local storage = 5648 

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

When I kill monster, in console shows problem:

Code:
[Error- Creaturescript Interface]
data/creaturescripts/scripts/death.lua:onDeath
Description:
<luaDoCreatureSetStorage> Creature not found

What should I do? :/
 
Code:
local storage = 5648 

function onDeath(cid, corpse, deathList)
	if isMonster(cid) then
		if isPlayer(getCreatureMaster (cid)) and getCreatureMaster(cid) ~= cid then
			doCreatureSetStorage(getCreatureMaster(cid), storage, os.time() + 10)
		end
	end
	return true
end
 
Back
Top