Ir para conteúdo

Posts Recomendados

Gente Minha Great mana Potion Ta Configurada pra heala 230 e ta healando 600 me ajudem

local MIN = 230

local MAX = 290

local EMPTY_POTION = 7635

 

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((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 80) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then

doCreatureSay(itemEx.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1)

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)

doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)

doRemoveItem(item.uid, 0)

doPlayerAddItem(cid, EMPTY_POTION, 0)

return TRUE

end

 

Tnc Porquê ninguem responde meus topico ?

karaaio !;/

Link para o comentário
https://xtibia.com/forum/topic/150334-great-mana-potion/
Compartilhar em outros sites

Não tem como ela healar 600 se o script ta healando de 230-290 de mana.

 

- Se você acha isso mesmo, de uma olhada mais em seus scripts para ver se existe outro script de great mana potion que está healando 600 de mana.

 

- Se você não percebeu você pode está contando com a recuperação de pontos de mana nos vocations.xml.

 

DE UMA FUNFADA

Link para o comentário
https://xtibia.com/forum/topic/150334-great-mana-potion/#findComment-993811
Compartilhar em outros sites

Olha posta seu potions.lua

 

nao adianta eu postar aqui pois o erro não é eu de enviar voce precisa me enviar para mim ver oque esta dando, não adianta trocar o meu script pelo seu que está ai. Pois vai continuar healando 600 de vida do mesmo jeito

Link para o comentário
https://xtibia.com/forum/topic/150334-great-mana-potion/#findComment-993847
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...