Alguém Sabe Como Por Potions 8.4 Infinitas?

Filipinho1993
em Lixeira Pública

Filipinho1993

Hail XTíbia.com
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/08/08Posts: 42Char no Tibia: Sir Felipinn Thor

Olá Galera Tudo Fmz Com Vcs? Estou Com Um Server 8.4 Porém... Queria Por As Potions Infinita Si Alguém Souber Por Mi Ajudem Por Favor.

Não Estou Achando Em Lugar Nenhum Um Tutorial Sobre Isso :cry:

Si Alguém Souber Mi Ajude Por Favor!

 

:positive:


Sou Fan de:









Minhas Metas:


[x]1post
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[x]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE) Meta Assim Por Diante!
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)



XTibia
FiLiPiNnHoOoOoOo, Membro XTibia 2008.
XTibia, a sua comunidade de Tibia

e OTserv 2008.

brainless

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/10/06Posts: 26

arquivo data\actions\scripts\other\potions.lua

 

editar > substituir

 

no campo de cima cole o seguinte

doTransformItem(item.uid, emptyPot)

 

deixe o campo debaixo vazio, para que a janela fique como na figura:

157ysmr.jpg

 

clique em substituir tudo

 

salve e reinicie o OT

Atualmente, dando suporte apenas a usuários TFS 2 e 3 (8.2 ~ 8.4) -- por julgar ser a melhor e mais estável distribuição de OTServs disponível.


Filipinho1993

Hail XTíbia.com
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/08/08Posts: 42Char no Tibia: Sir Felipinn Thor
arquivo data\actions\scripts\other\potions.lua

 

editar > substituir

 

no campo de cima cole o seguinte

doTransformItem(item.uid, emptyPot)

 

deixe o campo debaixo vazio, para que a janela fique como na figura:

157ysmr.jpg

 

clique em substituir tudo

 

salve e reinicie o OT

 

affz mano vc explico mais tipw eu n entendi mt eu fiz tudo ai q vc falo clikei em localizar próxima i dps falava q n encontrava nada :[ i clikei em subistituir tudo i logo depois n salvava quando eu fexava potions.lua ='( mi add no msn? >felipeh_joga10.com@hotmail.com< fikarei grato si puder mi ajudar =/


Sou Fan de:









Minhas Metas:


[x]1post
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[x]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE) Meta Assim Por Diante!
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)



XTibia
FiLiPiNnHoOoOoOo, Membro XTibia 2008.
XTibia, a sua comunidade de Tibia

e OTserv 2008.

brainless

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/10/06Posts: 26

kara... mais explicado q isso só se eu fizesse pra vc.... ¬¬'

 

então toma aí

 

local ultimateHealthPot = 8473

local greatHealthPot = 7591

local greatManaPot = 7590

local greatSpiritPot = 8472

local strongHealthPot = 7588

local strongManaPot = 7589

local healthPot = 7618

local manaPot = 7620

local smallHealthPot = 8704

local antidotePot = 8474

local greatEmptyPot = 7635

local strongEmptyPot = 7634

local emptyPot = 7636

 

local antidote = createCombatObject()

setCombatParam(antidote, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(antidote, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(antidote, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)

setCombatParam(antidote, COMBAT_PARAM_AGGRESSIVE, FALSE)

setCombatParam(antidote, COMBAT_PARAM_DISPEL, CONDITION_POISON)

 

local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)

setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions'))

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

if(itemEx.uid ~= cid or itemEx.itemid ~= 1) then

return TRUE

end

 

if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then

doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)

return TRUE

end

 

if(item.itemid == antidotePot) then

if(doCombat(cid, antidote, numberToVariant(cid)) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == smallHealthPot) then

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 50, 100, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == healthPot) then

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 100, 200, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == manaPot) then

if(doTargetCombatMana(0, cid, 70, 130, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == strongHealthPot) then

if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

doTransformItem(item.uid, strongEmptyPot)

elseif(item.itemid == strongManaPot) then

if(not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

doTransformItem(item.uid, strongEmptyPot)

elseif(item.itemid == greatSpiritPot) then

if(not(isPaladin(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR or doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

doTransformItem(item.uid, greatEmptyPot)

elseif(item.itemid == greatHealthPot) then

if(not(isKnight(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 500, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

doTransformItem(item.uid, greatEmptyPot)

elseif(item.itemid == greatManaPot) then

if(not(isSorcerer(cid) or isDruid(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatMana(0, cid, 200, 300, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

doTransformItem(item.uid, greatEmptyPot)

elseif(item.itemid == ultimateHealthPot) then

if(not(isKnight(cid)) or (getPlayerLevel(cid) < 130)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 800, 1000, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

doTransformItem(item.uid, greatEmptyPot)

end

return TRUE

end

Atualmente, dando suporte apenas a usuários TFS 2 e 3 (8.2 ~ 8.4) -- por julgar ser a melhor e mais estável distribuição de OTServs disponível.


Filipinho1993

Hail XTíbia.com
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/08/08Posts: 42Char no Tibia: Sir Felipinn Thor
kara... mais explicado q isso só se eu fizesse pra vc.... ¬¬'

 

então toma aí

 

 

 

Affz mano brigado msm por issso ae e ta mi ajudando mais tipw n funciono em todas as potion eu copiei tudo q ta no spoiler i somente o que ficou infinito foi o Small Health Potion, Health Potion e a Mana Potion u resto fico acabando normal. ;'( n sei pq fico acabando :/

 

Aguardando Resposta... :blush:


Sou Fan de:









Minhas Metas:


[x]1post
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[x]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE) Meta Assim Por Diante!
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)



XTibia
FiLiPiNnHoOoOoOo, Membro XTibia 2008.
XTibia, a sua comunidade de Tibia

e OTserv 2008.

brainless

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/10/06Posts: 26

vacilo meu =\

 

versão revisada

local ultimateHealthPot = 8473

local greatHealthPot = 7591

local greatManaPot = 7590

local greatSpiritPot = 8472

local strongHealthPot = 7588

local strongManaPot = 7589

local healthPot = 7618

local manaPot = 7620

local smallHealthPot = 8704

local antidotePot = 8474

local greatEmptyPot = 7635

local strongEmptyPot = 7634

local emptyPot = 7636

 

local antidote = createCombatObject()

setCombatParam(antidote, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(antidote, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(antidote, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)

setCombatParam(antidote, COMBAT_PARAM_AGGRESSIVE, FALSE)

setCombatParam(antidote, COMBAT_PARAM_DISPEL, CONDITION_POISON)

 

local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)

setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions'))

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

if(itemEx.uid ~= cid or itemEx.itemid ~= 1) then

return TRUE

end

 

if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then

doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)

return TRUE

end

 

if(item.itemid == antidotePot) then

if(doCombat(cid, antidote, numberToVariant(cid)) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == smallHealthPot) then

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 50, 100, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == healthPot) then

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 100, 200, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == manaPot) then

if(doTargetCombatMana(0, cid, 70, 130, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

 

elseif(item.itemid == strongHealthPot) then

if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

elseif(item.itemid == strongManaPot) then

if(not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

elseif(item.itemid == greatSpiritPot) then

if(not(isPaladin(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR or doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

elseif(item.itemid == greatHealthPot) then

if(not(isKnight(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 500, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

elseif(item.itemid == greatManaPot) then

if(not(isSorcerer(cid) or isDruid(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatMana(0, cid, 200, 300, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

elseif(item.itemid == ultimateHealthPot) then

if(not(isKnight(cid)) or (getPlayerLevel(cid) < 130)) and not(getPlayerGroupId(cid) >= 2) then

doCreatureSay(cid, "This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_ORANGE_1)

return TRUE

end

 

if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 800, 1000, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doAddCondition(cid, exhaust)

doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)

end

return TRUE

end

Atualmente, dando suporte apenas a usuários TFS 2 e 3 (8.2 ~ 8.4) -- por julgar ser a melhor e mais estável distribuição de OTServs disponível.


Filipinho1993

Hail XTíbia.com
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/08/08Posts: 42Char no Tibia: Sir Felipinn Thor
vacilo meu =\

 

versão revisada

 

 

:D:D Brigado manow deu certo dessa vez :smile_positivo: vlw's :positive: dps de 1 ano sem saber como por potions inf agora sei ;D ty

fui q fui ......

 

=):)


Sou Fan de:









Minhas Metas:


[x]1post
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[x]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE) Meta Assim Por Diante!
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)



XTibia
FiLiPiNnHoOoOoOo, Membro XTibia 2008.
XTibia, a sua comunidade de Tibia

e OTserv 2008.

Heitorzin

Ex-Coordenador XTibia
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 23/10/05Posts: 233Char no Tibia: Inp

Dúvida Sanada,

Tópico Fechado.


Ex-Coordenador XTibia.com