XB

Fazendo Pão

Por xbowaxx, 03 de nov. de 2005 em Actions e Talkactions

script
4
1.9k
03 de novembro de 2005 às 12:23

Script by Atolon.

Actions.xml:

<action itemid="2550" script="bread1.lua" />

<action itemid="2694" script="bread2.lua" />

<action itemid="2692" script="bread3.lua" />

<action itemid="2693" script="bread4.lua" />

Bread1.lua:

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

if item2.itemid == 2739 then

doTransformItem(item2.uid,2737)

doDecayItem(item2.uid)

doCreateItem(2694,1,topos)

else

return 0

end

return 1

end

Bread2.lua:

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

if (item2.itemid >= 1381 and item2.itemid <= 1384) then

if item.type <= 1 then

doTransformItem(item.uid,2692)

else

doPlayerSendCancel(cid,"Only one by one.")

end

else

return 0

end

return 1

end

Bread3.lua:

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

if item2.type == 1 then

if item.type <= 1 then

if item2.itemid == 1775 or

(item2.itemid >= 2005 and item2.itemid <= 2009) then

doTransformItem(item.uid,2693)

doChangeTypeItem(item2.uid,0)

else

return 0

end

else

doPlayerSendCancel(cid,"Only one by one.")

end

else

return 0

end

return 1

end

Bread4.lua:

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

if item2.itemid == 1786 or

item2.itemid == 1788 or

item2.itemid == 1790 or

(item2.itemid >= 1481 and item2.itemid <= 1484) or

(item2.itemid >= 2601 and item2.itemid <= 2604) or

(item2.itemid >= 1423 and item2.itemid <= 1425) or

item2.itemid == 1792 then

doRemoveItem(item.uid,1)

doCreateItem(2689,1,topos)

else

return 0

end

return 1

end

Se não entendeu basta postar aqui no tópico, que eu explico. =]

Editado Junho 28 por JV Chequer

3 meses depois...
VenturaV
27 de fevereiro de 2006 às 22:25

nossa meu mt bom vlw

GMxtibiaG
28 de fevereiro de 2006 às 18:37

muito rox

 

LOL

 

suborasS
04 de março de 2006 às 04:37

Muito bom o tuto... o.O tuto naum acction :blushing: