Ta ae
[size=4]local moneyPerLevel = 25 -- Gold coins per level.[/size]
function onKill(cid, target, lastHit)
if not isPlayer(target) then
return true
end
doSendAnimatedText(getCreaturePosition(target), "OWNED!", math.random(1, 255))
doPlayerAddMoney(cid, getPlayerLevel(target) * moneyPerLevel)
doPlayerSendTextMessage(cid, 20, "Você recebeu "..getPlayerLevel(target) * moneyPerLevel.." gold coins por matar "..getCreatureName(target).." ["..getPlayerLevel(target).."].")
return true
end
function onLogin(cid)
registerCreatureEvent(cid, "Recompense")
return true
end