Ir para conteúdo
Entre para seguir isso  
GbL

Fluids 8.1 Strong, Great Health/mana

Recommended Posts

GbL    0
GbL

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

 

Atenciosamente : GbL

Compartilhar este post


Link para o post
thescalper    0
thescalper

Aff, essa ai não presta pq não tem exasted nos potion =/

E tmb tem q arrumar igual global pq tah enchendo 800 de mana.

 

Abraços

Compartilhar este post


Link para o post
Tunico    0
Tunico
Aff, essa ai não presta pq não tem exasted nos potion =/

E tmb tem q arrumar igual global pq tah enchendo 800 de mana.

 

Abraços

 

Realmente nao tem exhausted.

mais vamo ver se o cara la em cima arruma :errm:

Compartilhar este post


Link para o post
Dark    3
Dark

Ja temos esse script aqui no forum.

 

Mesmo assim, obrigado pela contribuição

 

Fechado

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×