Ir para conteúdo

Criando Uma Boww(boots Of Waterwalkin)[7.6]


GM Volcano

Posts Recomendados

EXPLICANDO

 

Pq soh p/ 7.6?? : Pq, os ids, foram adicionados com base em um servidor 7.6

Funciona em 7.8/7.81/7.9/7.92/outros??? : Provavelmente não ira funcionar pq existem ids novos de grounds de água, q não estao adicionados ao script

Créditos ao Colex,ele q criou....e eu modifiquei...

Com Essa vc pode continuar d pois q acaba o tempo q ela funciona novamente =P

Vai na pasta Actions/Scripts e cria um arquivo chamado bow.lua, e dentro...

O Colex, criou a boww,q so dava p usar 1 vez.. eu editei e colokei p/ usar qnts x quiser..

 

--------Boots of Waterwalking system v2.0 by COLEX/editado por GM Volcano-------------function onUse(cid, item, frompos, item2, topos)tempo = 15tempo2 = tempo + 10pos = getPlayerPosition(cid)tilepos = {x=pos.x, y=pos.y, z=pos.z, stackpos=0}tile = getThingfromPos(tilepos)storage = 1533storage2 = 1534storage3 = 1535bow = getPlayerStorageValue(cid,storage2)bow2 = getPlayerStorageValue(cid,storage3)timer1 = getPlayerStorageValue(cid,storage)timer2 = os.time()time = os.difftime(timer2, timer1)add = timer2 + 1if item.itemid == 2358 then if bow2 == -1 then   setPlayerStorageValue(cid,storage,add)   setPlayerStorageValue(cid,storage2,-1)   setPlayerStorageValue(cid,storage3,1)   doRemoveItem(item.uid,1) else   doPlayerSendCancel(cid,"Vc ja tah usando Boots of WaterWalking.") endreturn 1endif item.itemid ~= 2358 then if timer1 >= 0 then   if time <= tempo then	 doTeleportThing(cid,topos)   else	 doPlayerSendTextMessage(cid,22,"Acabou o tempo,Use novamente a BOWW para continuar...")  	 if bow > -2 then		 doPlayerAddItem(cid,2358,1)	 setPlayerStorageValue(cid,storage2,-2)	 setPlayerStorageValue(cid,storage3,-1)	 end	 if time >= tempo2 then	   if tile.itemid >= 4358 and tile.itemid <= 4625 then		 doTeleportThing(cid,getPlayerMasterPos(cid))		 doPlayerSendTextMessage(cid,22,"time out")		 setPlayerStorageValue(cid,storage,-1)		 setPlayerStorageValue(cid,storage2,-1)	   else		 doPlayerSendTextMessage(cid,22,"time out")		 setPlayerStorageValue(cid,storage,-1)  		 setPlayerStorageValue(cid,storage2,-1)	   end	 end   end else   return 0 endendreturn 1end

 

Agora edite o arquivo Actions.xml, dentro coloque junto:

 

------boots of waterwalking------------------Bordas do Boots of WaterWalking----<action itemid="4646" script="bow.lua" /><action itemid="4645" script="bow.lua" /><action itemid="4644" script="bow.lua" /><action itemid="4647" script="bow.lua" /><action itemid="4648" script="bow.lua" /><action itemid="4649" script="bow.lua" /><action itemid="4650" script="bow.lua" /><action itemid="4651" script="bow.lua" /><action itemid="4652" script="bow.lua" /><action itemid="4653" script="bow.lua" /><action itemid="4654" script="bow.lua" /><action itemid="4655" script="bow.lua" /><action itemid="4828" script="bow.lua" /><action itemid="4829" script="bow.lua" /><action itemid="4830" script="bow.lua" /><action itemid="4831" script="bow.lua" /><action itemid="493" script="bow.lua" /><action itemid="494" script="bow.lua" /><action itemid="495" script="bow.lua" /><action itemid="496" script="bow.lua" /><action itemid="497" script="bow.lua" /><action itemid="498" script="bow.lua" /><action itemid="499" script="bow.lua" /><action itemid="500" script="bow.lua" /><action itemid="501" script="bow.lua" /><action itemid="502" script="bow.lua" /><action itemid="503" script="bow.lua" /><action itemid="504" script="bow.lua" /><action itemid="505" script="bow.lua" /><action itemid="3553" script="bow.lua" /><action itemid="3554" script="bow.lua" /><action itemid="3555" script="bow.lua" /><action itemid="3556" script="bow.lua" /><action itemid="3557" script="bow.lua" /><action itemid="3558" script="bow.lua" /><action itemid="3559" script="bow.lua" /><action itemid="3560" script="bow.lua" /><action itemid="3561" script="bow.lua" /><action itemid="3562" script="bow.lua" /><action itemid="3563" script="bow.lua" /><action itemid="3564" script="bow.lua" /><action itemid="3565" script="bow.lua" /><action itemid="3556" script="bow.lua" /><action itemid="3567" script="bow.lua" /><action itemid="3568" script="bow.lua" /><action itemid="4632" script="bow.lua" /><action itemid="4633" script="bow.lua" /><action itemid="4634" script="bow.lua" /><action itemid="4635" script="bow.lua" /><action itemid="4636" script="bow.lua" /><action itemid="4637" script="bow.lua" /><action itemid="4638" script="bow.lua" /><action itemid="4639" script="bow.lua" /><action itemid="4640" script="bow.lua" /><action itemid="4641" script="bow.lua" /><action itemid="4642" script="bow.lua" /><action itemid="4643" script="bow.lua" />----------/bordas----------------------tiles de Agua----------<action itemid="4608" script="bow.lua" /><action itemid="4609" script="bow.lua" /><action itemid="4610" script="bow.lua" /><action itemid="4611" script="bow.lua" /><action itemid="4612" script="bow.lua" /><action itemid="4613" script="bow.lua" /><action itemid="4614" script="bow.lua" /><action itemid="4615" script="bow.lua" /><action itemid="4616" script="bow.lua" /><action itemid="4617" script="bow.lua" /><action itemid="4618" script="bow.lua" /><action itemid="4619" script="bow.lua" /><action itemid="4620" script="bow.lua" /><action itemid="4621" script="bow.lua" /><action itemid="4622" script="bow.lua" /><action itemid="4623" script="bow.lua" /><action itemid="4624" script="bow.lua" /><action itemid="4625" script="bow.lua" />----------/Tiles de Agua---------<action itemid="2358" script="bow.lua" /> ----id da boots of waterwalking------/boots of warterwalking---------

 

Explicando : Quando vc dah use no item 2358(Boots of waterwalkin), ela some, e entao vc da use na borda da água,qndo vc fizer isso, seu char ira movimentar-se para o lugar onde vc deu use...^^

Editado por GM Volcano
Link para o comentário
Compartilhar em outros sites

É a terceira ou quarta vez que vejo esse tópico aqui no Xtibia, tem dois um embaixo do outro só aqui que acabei de ver, tentem não postar tópicos repetidos pq vira em volume inútil de tópicos e aí dificulta pro pessoal achar o que tá procurando nas boards, abraço.

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 4 weeks later...

:blink: Nossa sinhora! eu uso esse forum eh uns milis anos, nunka vi esse post... bom, parabens pra voce, e parabens pro Colex... belo action scripter...

 

Vlw mano, precisamos de mais gente como vc! xDDDD

 

:w2:

 

 

^^ t+

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...