NE

Quando Andar O Char Soltar Ums Corações Igual (Cid 35)

Por neroxp, 06 de mai. de 2012 em Scripts

6
1.3k
neroxpN
06 de maio de 2012 às 23:34

Quando o personagem usar o item abaixo

 

"23:33 You see a roc feather.

It weighs 1.00 oz.

ItemID: [2366]."

 

quando ele dar um passo sai ums corações dele

 

vlw rep+ pra quem me ajudar :)

jhon992J
07 de maio de 2012 às 10:44

vai em data/actions/actions.xml e poem a tag:

<action itemid="2366" script="show_effect.lua"/>

 

agora em data/actions/scripts, duplica um arquivo e nomeia para "show_effect" sem as aspas e nele cole:

function onUse(cid, item, fromPosition, itemEx, toPosition)
showEffect(cid)
return true
end

function showEffect(cid)
if isPlayer(cid) then
   doSendMagicEffect(getPlayerPosition(cid), 35) -- troque o 35 por outro effect caso desejar.
   addEvent(showEffect, 1000, cid)
end
end

 

Obs: nem testei, qualquer erro avisa e jah que tu n informou mais nada fis pra durar o effect até vc deslogar.

DantarrixD
07 de maio de 2012 às 18:54

@up: When players log, I think it will stop to show the effect.... Maybe he wants the effect to continue after logging...

VodkartV
07 de maio de 2012 às 18:56

@up: When players log, I think it will stop to show the effect.... Maybe he wants the effect to continue after logging...

rly... but he said here "fis pra durar o effect até vc deslogar. " xD

Editado Maio 7 por Vodkart

DantarrixD
07 de maio de 2012 às 23:19

@up: Im sorry.... That's what happen when you are in a forum and you dont know the native language of the forum.... xD

 

Maybe an storage and onLogin with the function, so when you use the item, it gives storage and kick you, so when you relog and every time you relog, you have the effect... :p

neroxpN
08 de maio de 2012 às 15:26

vo testa agora vlw

: )

vlw tbm vodkart se ta sempre ae quando precisa isso ae:)

 

nao funcionou ;/

 

funcionou agora abri o script errado ahushaush

vlw manow

rep + merecido :)

 

ixi dei 1 rep + hj d manhã

amanhã de manha mando 1 rep mais pra voce vlw