MA

Fluids 8.1 Strong, Great Health/mana

Por Malzbier, 28 de jan. de 2008 em Actions e Talkactions

script
13
2.9k
MalzbierM
28 de janeiro de 2008 às 15:41

galera essa actions nao é minha eu pegei ela do Aries OT

 

vai la em DATA/ACTIONS crie uma pasta e renomeie para POTIONS e COLE isso:

 

local greatHealthPot = 7591

local greatManaPot = 7590

local strongHealthPot = 7588

local strongManaPot = 7589

local healthPot = 7618

local manaPot = 7620

local greatEmptyPot = 7635

local strongEmptyPot = 7634

local emptyPot = 7636

 

function onUse(cid, item, frompos, item2, topos)

if(item.itemid == healthPot) then

doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)

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...", TEXTCOLOR_ORANGE)

if(doTargetCombatMana(0, cid, 170, 230, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doTransformItem(item.uid, emptyPot)

elseif(item.itemid == strongHealthPot) then

doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)

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

return FALSE

end

doTransformItem(item.uid, strongEmptyPot)

elseif(item.itemid == strongManaPot) then

doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)

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

return FALSE

end

doTransformItem(item.uid, strongEmptyPot)

elseif(item.itemid == greatHealthPot) then

doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)

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

return FALSE

end

doTransformItem(item.uid, greatEmptyPot)

elseif(item.itemid == greatManaPot) then

doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)

if(doTargetCombatMana(0, cid, 500, 800, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then

return FALSE

end

doTransformItem(item.uid, greatEmptyPot)

end

 

return TRUE

end

 

Feito isso agora salve!

agora abra actions.xml e cole isso

 

<!-- Potions -->

<action itemid="7588" script="potions.lua" />

<action itemid="7589" script="potions.lua" />

<action itemid="7590" script="potions.lua" />

<action itemid="7591" script="potions.lua" />

<action itemid="7618" script="potions.lua" />

<action itemid="7620" script="potions.lua" />

 

ID dos Potions:

Health Potion = 7618

Strong Health Potion = 7588

Great Health Potion = 7591

Mana Potion = 7620

Strong Mana Potion = 7589

Great Mana Potion = 7590

 

Creditos:

99% Equipe Aries OT

1% Malzbier

 

Comentem deem a sua nota por favor!

Editado Janeiro 28 por Malzbier

DaNDaNrOxXD
28 de janeiro de 2008 às 16:10

Muito bom :) mas no meu ot ja tem xD

BozosonB
28 de janeiro de 2008 às 22:55

Mas esse vem com exhausted de potion ou n?

ropicR
30 de janeiro de 2008 às 12:59

ta bom s xD

MeteorDragonM
30 de janeiro de 2008 às 15:02

vlw por postar tava procurando !

2 meses depois...
eposE
26 de março de 2008 às 05:42

oi

 

eu queria que alguem me ajuda-se

 

na hora k eu faço /i 7618 1 para criar o Health Potion ele nao cria, nenhum dos pots citados acima :sad:

 

como eu faço ?

 

----- edited -----

 

lá nos items.xml tem o ID dos pots e os nomes ...

 

</item>

<item id="7588" article="a" name="strong health potion">

<attribute key="weight" value="200"/>

<attribute key="description" value="This potion can only be consumed by paladins and knights of level 80 or higher."/>

</item>

<item id="7589" article="a" name="strong mana potion">

<attribute key="weight" value="200"/>

<attribute key="description" value="This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher."/>

</item>

<item id="7590" article="a" name="great mana potion">

<attribute key="weight" value="220"/>

<attribute key="description" value="This potion can only be consumed by sorcerers and druids of level 80 or higher."/>

</item>

<item id="7591" article="a" name="great health potion">

</item>

<item id="7618" article="a" name="health potion">

<attribute key="weight" value="180"/>

</item>

<item id="7620" article="a" name="mana potion">

<attribute key="weight" value="180"/>

</item>

Editado Março 26 por epos

SkullsS
26 de março de 2008 às 18:36

vo fala a mesma coisa que falei em outro topico sobre potions 8.1

 

se vc usa a pocao no chao ou em outra coisa q num seja player num acontece nada?

 

abraços

 

//skulls

2 meses depois...
kruxduduK
01 de maio de 2008 às 14:00

Gostei... mas meu ot já possui :p

 

Mas valeu!

ZozooZ
01 de maio de 2008 às 15:33

Kra eu ponho isso....

Só q qnd vo faze nao da...

affs

1 mês depois...
tanderdeT
04 de junho de 2008 às 12:36

poxa

n entendi sera q podia mandar uma msg pro meu msn melhor explicada ???

por favor

lipe_13_souza@hotmail.com

 

ou

 

luiz_13_souza@hotmail.com

 

por favor manda um Email

para o meu msn

caiocesar2C
04 de junho de 2008 às 15:21

É bom ter essa Script aqui, pois muitos ainda não tem.

ShydxS
04 de junho de 2008 às 21:35

Pena que todas vocaçoes podem usar ._.

TprocheiraT
04 de junho de 2008 às 21:54

Hmm, sei que os créditos são 1% seus. E outra coisa, não são da equipe Aries, e sim da equipe do The Forgotten Server.

E você não mudou nada, então, não de nem 1% dos seus créditos.

 

//Tprocheira