Como o título do tópico já diz tudo sobre o script, créditos a mim.
local k = {
["Demon"] = {
items = {
{2160,10} -- item
}
}
}
function onKill(cid, target)
for name, pos in pairs(k) do
if (name == getCreatureName(target)) then
doPlayerAddItem(cid, k.items[1], k.items[2])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
end
end
return true
end