Postado Julho 25, 2014 10 anos salve queria saber se possivel por um pot ex: mana potion para curar apenas 1 player no meu ot mana potion e infinita queria saber se tem como botar para aparecer quanto ela heala pq tbm nao ta aparecendo agradeço desde ja! local MIN = 70 local MAX = 130 local EMPTY_POTION = 7636 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) == FALSE then return FALSE end if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then return FALSE end doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doSendAnimatedText(getPlayerPosition(cid), "Ahhhh...", 17) pot_count = getPlayerItemCount(cid, EMPTY_POTION) doPlayerRemoveItem(cid, EMPTY_POTION, pot_count) doPlayerAddItem(cid, EMPTY_POTION, pot_count) return TRUE end
Postado Julho 25, 2014 10 anos Tenta assim: local MIN = 70 local MAX = 130 local EMPTY_POTION = 7636 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if (not isPlayer(itemEx.uid)) then return false end if hasCondition(cid, CONDITION_EXHAUST_HEAL) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then return false end doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doSendAnimatedText(getPlayerPosition(cid), "Ahhhh...", 17) doPlayerRemoveItem(cid, itemEx.uid, 1) doPlayerAddItem(cid, EMPTY_POTION, 1) return true end STYLLER OT 2022
Postado Julho 25, 2014 10 anos Autor seu script ainda continua healando o parcero eu queria que nao fose posivel pra evitar mc ml maker entende seu script tbm ta aparecendo vials vasias so aparece o tanto que healo de mana quando eu uso pot nos outros queria que aparecese quando eu usace agradando!
Postado Julho 25, 2014 10 anos seu script ainda continua healando o parcero eu queria que nao fose posivel pra evitar mc ml maker entende seu script tbm ta aparecendo vials vasias so aparece o tanto que healo de mana quando eu uso pot nos outros queria que aparecese quando eu usace agradando! Olha não tenho certeza mas da uma olhada nessa linha no seu config.lua showHealingDamage = true Se tiver false coloca true. Quanto ao ant mc ml não sei Sonhos e objetivos... Todos temos os nossos, mesmo eles sendo estranhos, exagerados, simples, complicados, difíceis ou até mesmo impossíveis... Isso não importa! Se o seu desejo de realizá-los for maior você consegue! Por isso nunca desista! Não sabe qual é o seu propósito na vida? Descubra-o!
Postado Julho 25, 2014 10 anos Para evitar que apareça vial é só retirar essa linha: doPlayerAddItem(cid, EMPTY_POTION, 1) STYLLER OT 2022
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.