• 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 with onDeath

Joined
Apr 17, 2008
Messages
1,922
Solutions
1
Reaction score
188
Location
Venezuela
i made a script for my inquisition quest... but nothing happens..

Code:
function onDeath(cid, corpse, killer)
    local creaturename = getCreatureName(cid)
	local storage = 3217
	local checkstorage = getPlayerStorageValue(killer,storage)
    if creaturename == 'ungreez' then
	if checkstorage == -1 then
	setPlayerStorageValue(killer,3217,1)
		doCreatureSay(killer, "Congratulations, you have killed the demon Ungreez", TALKTYPE_ORANGE_1)
		else
		doCreatureSay(killer, "You have already killed the demon Ungreez", TALKTYPE_ORANGE_1)
    		end
	end 
end

and.. where i put this lines?

Code:
<script>
<event name="DemonStorage"/>
</script>

Help... =)
 
Back
Top