TFS 0.4 - THE FORGOTTEN SERVER 0.4 (8.60), publicado por Firelement.
Pedido:
Eu encontrei esse código do Vankk: (pedido abaixo)
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
Função do código: