MeisterRox 0 Postado Fevereiro 6, 2008 Share Postado Fevereiro 6, 2008 Potions 8.1 By ME Bom galera sei que muita gente esta precisando dos Potions 8.1 com lvl, vocação e exhausted... Vai em data\actions\scripts faça uma pasta chamada Potions dentro dela copie qualquer arquivo .lua e vamos começar: Great Health Potion Renomeie esse arquivo .lua para Great Health Potion.lua, abra ele e delete tudo que tem dentro e copie isso \/ e depois salve. --|Script by MeisterRox|-- function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= [b][color="#FF0000"]80[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]4[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]80[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]8[/color][/b] then doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", 16) doPlayerAddHealth(cid, math.random(750, 800)) doTransformItem(item.uid, 7635) doSendMagicEffect(topos, 12) else doPlayerSendTextMessage(cid,22,"[b][color="#FF8C00"]This potion can only be consumed by knights of level 80 or higher.[/color][/b]") return 0 end return 1 end Great Mana Potion Faça outra copia de qualquer arquivo .lua, renomeie esse arquivo para Great Mana Potion.lua, abra ele e delete tudo que tem dentro e copie isso \/ e depois salve. --|Script by MeisterRox|-- function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= [b][color="#FF0000"]80[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]1[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]80[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]2[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]80[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]5[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]80[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]6[/color][/b] then doPlayerSay(cid, "Aaaah...", 16) doPlayerAddMana(cid, math.random(150, 210)) doTransformItem(item.uid, 7635) doSendMagicEffect(topos, 12) else doPlayerSendTextMessage(cid,22,"[b][color="#FF8C00"]This potion can only be consumed by sorcerers and druids of level 80 or higher.[/color][/b]") return 0 end return 1 end Strong Health Potion Faça outra copia de qualquer arquivo .lua, renomeie esse arquivo para Strong Health Potion.lua, abra ele e delete tudo que tem dentro e copie isso \/ e depois salve. --|Script by MeisterRox|-- function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]4[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]8[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]3[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]7[/color][/b] then doPlayerSay(cid, "Aaaah...", 16) doPlayerAddHealth(cid, math.random(350, 410)) doTransformItem(item.uid, 7634) doSendMagicEffect(topos, 12) else doPlayerSendTextMessage(cid,22,"[b][color="#FF8C00"]This potion can only be consumed by paladins and knights of level 50 or higher.[/color][/b]") return 0 end return 1 end Strong Mana Potion Faça outra copia de qualquer arquivo .lua, renomeie esse arquivo para Strong Mana Potion.lua, abra ele e delete tudo que tem dentro e copie isso \/ e depois salve. --|Script by MeisterRox|-- function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]1[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]2[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]5[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]6[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]3[/color][/b] or getPlayerLevel(cid) >= [b][color="#FF0000"]50[/color][/b] and getPlayerVocation(cid) == [b][color="#2E8B57"]7[/color][/b] then doPlayerSay(cid, "Aaaah...", 16) doPlayerAddMana(cid, math.random(100, 160)) doTransformItem(item.uid, 7634) doSendMagicEffect(topos, 12) else doPlayerSendTextMessage(cid,22,"[b][color="#FF8C00"]This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.[/color][/b]") return 0 end return 1 end Health e Mana Potion - Esse peguei do Aries 0.4.0 Faça outra copia de qualquer arquivo .lua, renomeie esse arquivo para potions.lua, abra ele e delete tudo que tem dentro e copie isso \/ e depois salve. function onUse(cid, item, frompos, item2, topos) reqlevel = 80 if(item.itemid == healthPot) then doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", 16) if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 170, 230, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doTransformItem(item.uid, emptyPot) elseif(item.itemid == manaPot) then doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", 16) if(doTargetCombatMana(0, cid, 170, 230, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doTransformItem(item.uid, emptyPot) end return TRUE end Explicação: Vermelho: Level para usar os Potions Verde: Vocação para usar os Potions Laranja: Mensagem enviada para quem não ter level nem vocação para usar o potion Agora vai em actions.xml e coloque: <action itemid="7591" script="potions/Great Health Potion.lua" /> <action itemid="7588" script="potions/Strong Health Potion.lua" /> <action itemid="7589" script="potions/Strong Mana Potion.lua" /> <action itemid="7590" script="potions/Great Mana Potion.lua" /> <action itemid="7618" script="potions/potions.lua" /> <action itemid="7620" script="potions/potions.lua" /> Para facilitar fiz upload da pasta com todos arquivos prontos. Download: http://www.speedyshare.com/374873657.html Apenas extraia a pasta em data\actions\scripts e faça a parte do actions.xml Espero que gostem =D Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/ Compartilhar em outros sites More sharing options...
genoma 1 Postado Fevereiro 11, 2008 Share Postado Fevereiro 11, 2008 cadê o exhausted? :hi: Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-478709 Compartilhar em outros sites More sharing options...
gorno 2 Postado Fevereiro 14, 2008 Share Postado Fevereiro 14, 2008 Eh msm... kd o exaust? Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-480462 Compartilhar em outros sites More sharing options...
Terereko 0 Postado Março 25, 2008 Share Postado Março 25, 2008 como q bota exausted? Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-505519 Compartilhar em outros sites More sharing options...
Skulls 331 Postado Março 26, 2008 Share Postado Março 26, 2008 Sem exhausted e sem splash :S ps: se vc usa a pocao no chao ou em outra coisa q num seja player num acontece nada? abraços //skulls Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-506351 Compartilhar em outros sites More sharing options...
tdp157 0 Postado Abril 21, 2008 Share Postado Abril 21, 2008 brigadao !!!!!!!!!!!!!!!!!!!!! tava mesmo precisando disso flws Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-520517 Compartilhar em outros sites More sharing options...
matheusbertulli 0 Postado Julho 14, 2011 Share Postado Julho 14, 2011 cade exasuted ? '-' Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-1064629 Compartilhar em outros sites More sharing options...
thokito 0 Postado Janeiro 26, 2012 Share Postado Janeiro 26, 2012 kde o exausted fdp Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-1186626 Compartilhar em outros sites More sharing options...
curruwilliam 28 Postado Janeiro 28, 2012 Share Postado Janeiro 28, 2012 Coloca exausted ae pow.. Link para o comentário https://xtibia.com/forum/topic/76439-potions-81-level-voca%C3%A7%C3%A3o-e-exhausted/#findComment-1187532 Compartilhar em outros sites More sharing options...
Posts Recomendados