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

Storage after killing boss

phern

alysiaots.com
Joined
Nov 2, 2008
Messages
195
Reaction score
2
Location
Poland
Hello. I want to make a script that give you storage after killing boss, but I dont know what to put here:

Code:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Noisy soul")
local creaturename = getCreatureName(cid)

if creaturename == 'Noisy Soul' then
setPlayerStorageValue([COLOR="red"]cid[/COLOR], 60461, 1)
end
return TRUE

end

Becouse i think it wont be cid.

If you got any idea how to make it, i will be gratefull
 
Lua:
function onDeath(cid, corpse, deathList)
	if getCreatureName(cid):lower() == 'noisy soul' then
		for i = 1, #deathList do
			if isPlayer(deathList[i]) then
				setPlayerStorageValue(deathList[i], 60461, 1)
			end
		end
	end
	return true
end
 
Last edited:
not working
bugiu.png
 
Lua:
function onDeath(cid, corpse, deathList)
	if getCreatureName(cid):lower() == 'noisy soul' then
		for i = 1, #deathList do
			if isPlayer(deathList[i]) then
				setPlayerStorageValue(deathList[i], 60461, 1)
			end
		end
	end
	return true
end
 
Back
Top