hello, I had made a script that when you kill a demon you loot a key from it with actionID 6000. but it doesn't work, I dunno why??
function onDeath(cid, corpse, killer)
local key = 2089
if corpse == 2916 then
doPlayerSendTextMessage(killer, MESSAGE_EVENT_ADVANCE, "Mystic Key is found")...