PR
dúvida

Colocar pro Pot Healar Mais!

Por Prezyoso, 02 de abr. de 2013 em Scripts

resolvido
6
678
PrezyosoP
02 de abril de 2013 às 09:21

Meu baiak ta com uns bugs, um deles é este. O Pot heala muito pouco, como resolver?

SkyLighS
02 de abril de 2013 às 09:29

Vá em data / actions / scripts / liquids / potions.lua procura o nome da potion é edita la

 

 

ex : [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion

PrezyosoP
02 de abril de 2013 às 09:55

Claramente não esta assim, ja tentei aumentar mas continua msm coisa. Olha o great pot de mana:

 

 

 

local MIN = 8000local MAX =

9000local 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

 

 

SkyLighS
02 de abril de 2013 às 10:19

Mais não é pra entrar nesse arquivo .

 

Entre no arquivo potions.lua na pasta onde se acho o do great se procura potions.lua que se vai arrumar ai so procurar pelo nome dentro do bloco de notas .

PrezyosoP
02 de abril de 2013 às 11:17

Resolvido, valeus

BananaFightB
02 de abril de 2013 às 13:05

Tópico movido para a seção de dúvidas e pedidos resolvidos.