hola, quiero ponerle vocacion a este potion, es el great mana potion, que agrege a un servidor 7.4 tfs 1.2, ya tiene nivel y todo, pero ocupo ponerle vocacion y no puedo, alguien podria ayudarme con eso?
Código:
function onUse(cid, item, frompos, itemEx, toPosition)
local health_minimum = 425
local health_maximum = 575
-- Mana Formula Settings END --
if getPlayerLevel(cid) >= 80 then
local health_add = math.random(health_minimum, health_maximum)
doCreatureAddHealth(cid, health_add)
doRemoveItem(item.uid, 1)
doCreatureSay(cid, "Aaaah...", TALKTYPE_MONSTER_SAY)
doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE)
else
doCreatureSay(cid, "This potion can only be consumed by players of level 80 or higher.", TALKTYPE_MONSTER_SAY)
end
return TRUE
end
Última edición por un moderador: