W3

Great Mana Potion

Por w3ndel, 26 de jan. de 2011 em Archived

5
1.6k
w3ndelW
26 de janeiro de 2011 às 17:30

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 !;/

VitinhowcqV
27 de janeiro de 2011 às 12:25

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

w3ndelW
27 de janeiro de 2011 às 13:29

não broter , ela heala 600 sobe +600 em rosa , me manda um script dakele potions.lua pra mim por , poe ela healando 350 e infinita

se puder , obrigado !:x

VitinhowcqV
27 de janeiro de 2011 às 13:51

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

w3ndelW
27 de janeiro de 2011 às 14:07

eeh eu baixei otro ot com Potions.lua ke eh o heal certo , e mudei pra infinita

vlws pela atenção ae Vitinhowcq ganhou um +REP