function onKill(cid, target)
local config = {
monstername = "Ferumbras"
}
if getCreatureName(target) == config.monstername then
local catuid = getGlobalStorageValue(tonumber(target))
if catuid >= 19 then
return TRUE
else
return false
setGlobalStorageValue(tonumber(target),(catuid+1))
local maxhealth = getCreatureMaxHealth(target)
doCreatureAddHealth(target, maxhealth)
doSendMagicEffect(getCreaturePosition(target),49)
end
end
return true
end




info
Grupo: Campones
Registrado: 23/12/08
Posts: 41
Reputação: +4
Gênero: Masculino
Char no Tibia: Aura mage naruto
function onKill(cid, target)local config = {monstername = "Ferumbras"}if getCreatureName(target) == config.monstername then local catuid = getGlobalStorageValue(tonumber(target)) if catuid >= 19 then return TRUE else setGlobalStorageValue(tonumber(target),(catuid+1)) local maxhealth = getCreatureMaxHealth(target) doCreatureAddHealth(target, maxhealth,1) doSendMagicEffect(getCreaturePosition(target),49) return FALSE endelse return TRUEendendalguem me da uma força aki com esse script, ele funciona tudo menos dar vida ao ferumbras eu quero q quando o player mata ele o ferumbras ganhe uma nova vida
Editado Abril 11 por gusinhi