criei um aqui rapidinho
data\actions\scripts\liquids\great_mana.lua
function onUse(cid, item, fromPosition, itemEx, toPosition) --- configuration by notle local min = 1250 --- minimo que vai curar com menos 299 de lvl local max = 1650 --- maximo que vai curar com menos 299 de lvl local min300 = 2250 --- minimo que vai curar com lvl 300 local max300 = 2650 --- maximo que vai curar com lvl 300 local min500 = 3250 --- minimo que vai curar com lvl 500 local max500 = 3650 --- maximo que vai curar com lvl 500 local exhaust = 1100 -- Tempo para player poder se curar novamente! (1000 por segundos) local lvl1,lvl2,lvl3 = 299,499,500 -- modificação de level ta de 300 a 499 e de 500 pra + --- configuration by notle if (getPlayerStorageValue(cid, 14725) <= os.time()) then if getPlayerLevel(cid) <= lvl1 then doPlayerAddMana(itemEx.uid, math.random(min, max)) elseif getPlayerLevel(cid) >= lvl1+1 and getPlayerLevel(cid) <= lvl2 then doPlayerAddMana(itemEx.uid, math.random(min300, max300)) elseif getPlayerLevel(cid) >= lvl3 then doPlayerAddMana(itemEx.uid, math.random(min500, max500)) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 14722, os.time()+exhaust/1000) else doPlayerSendCancel(cid, "Desculpe, você só pode se curar novamente depois de "..exhaust.." segundos.") end end end
actions.xml
<action itemid="???" event="script" value="liquids/great_mana.lua
na onde ta com ???
vc coloca id da great mana





info
Grupo: Campones
Registrado: 12/09/12
Posts: 59
Reputação: +1
Como faço minha Great Mana Potion curar o player conforme o level ?