tengo este pero no se podra poner para que regenere mana y vida y no solo mana ??
local porcentagem = 5.43
local porcentagemMax = 9.43
local delay = 4.15
function onEquip(cid, item, slot)
doAddManaPercent(cid, item.itemid)
return true
end
function doAddManaPercent(cid, item)
if isPlayer(cid) and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == item then
local ManaMax = getCreatureMaxMana(cid)
local heal = getCreatureMaxMana(cid)*(porcentagem/100)
...
↧