tibiaa4e 0 #1 Postado 13 Setembro, 2008 Considerando que fiquei desde a 7.92 sem fazer script o tibia invento muita food depois disso E os servidores que eu pego tão ruins E pra variar o tibia ou a svn muda o sistema de falar E ai buga tudo Em razão disso eu atualizei meu food system (e do soulblaster tbm) Esta aqui Em actions adicione o food.lua --New food system by Ta4e (thx for SoulBlaster for correct function)----Version 3.0 by ta4e Foods are 90% real in 10/09/2008- --For tibia 8.22-- MAX_FOOD = 1200 function onUse(cid, item, frompos, item2, topos) if item.itemid == 2666 then --meat food = 180 som = "Munch." elseif item.itemid == 2667 then --fish food = 144 som = "Munch." elseif item.itemid == 2668 then --salmon food = 120 som = "Mmmm." elseif item.itemid == 2669 then --big fish food = 254 som = "Munch." elseif item.itemid == 2670 then --shrimp food = 48 som = "Gulp." elseif item.itemid == 2671 then --ham food = 360 som = "Chomp." elseif item.itemid == 2672 then --dragon ham food = 720 som = "Chomp." elseif item.itemid == 2673 then --pear food = 60 som = "Yum." elseif item.itemid == 2674 then --aple food = 72 som = "Yum." elseif item.itemid == 2675 then --orange food = 156 som = "Yum." elseif item.itemid == 2676 then --banana food = 96 som = "Yum." elseif item.itemid == 2677 then --blubeberry food = 12 som = "Yum." elseif item.itemid == 2678 then --coconut food = 216 som = "Slurp." elseif item.itemid == 2679 then --cherry food = 12 som = "Yum." elseif item.itemid == 2680 then --strawberry food = 24 som = "Yum." elseif item.itemid == 2681 then --grape food = 108 som = "Yum." elseif item.itemid == 2682 then --melon food = 240 som = "Yum." elseif item.itemid == 2683 then --pumpkim food = 204 som = "Munch." elseif item.itemid == 2684 then --carrot food = 60 som = "Crunch." elseif item.itemid == 2685 then --tomato food = 72 som = "Munch." elseif item.itemid == 2686 then --corncob food = 108 som = "Crunch." elseif item.itemid == 2687 then --cookie food = 24 som = "Crunch." elseif item.itemid == 2688 then --candy cane food = 24 som = "Mmmm." elseif item.itemid == 2689 then --bread food = 120 som = "Crunch." elseif item.itemid == 2690 then --roll food = 72 som = "Crunch." elseif item.itemid == 2691 then --brown bread food = 96 som = "Crunch." elseif item.itemid == 2695 then -- egg food = 72 som = "Gulp." elseif item.itemid == 2696 then --cheese food = 108 som = "Smack." elseif item.itemid == 2787 then --white mushroom food = 108 som = "Crunch." elseif item.itemid == 2788 then --red mushroom food = 48 som = "Crunch." elseif item.itemid == 2789 then --brown mushroom food = 264 som = "Crunch." elseif item.itemid == 2790 then --orange mushroom food = 0 som = "Crunch." elseif item.itemid == 2791 then --wood mushroom food = 108 som = "Crunch." elseif item.itemid == 2792 then --dark mushroom food = 72 som = "Crunch." elseif item.itemid == 2793 then --some msuhroom food = 72 som = "Crunch." elseif item.itemid == 2794 then --some msuhroom food = 72 som = "Crunch." elseif item.itemid == 2795 then --fire mushroom food = 432 som = "Crunch." elseif item.itemid == 2796 then --green msuhroom food = 60 som = "Crunch." elseif item.itemid == 5097 then --mango food = 48 som = "Yum." elseif item.itemid == 5678 then --tortoise egg food = 96 som = "Gulp." elseif item.itemid == 6501 then --Gingerbreadman food = 240 som = "Mmmm." elseif item.itemid == 6278 then --cake food = 120 som = " Mmmm." elseif item.itemid == 6279 then --cake food = 120 som = " Mmmm." elseif item.itemid == 6393 then --valentine cake food = 0 som = " Mmmm." elseif item.itemid == 6394 then --cream cake food = 0 som = " Mmmm." elseif item.itemid == 6569 then --candy food = 12 som = " Mmmm." elseif item.itemid == 6574 then --bar of chocolate food = 60 som = " Mmmm." elseif item.itemid == 6541 then -- egg coloured food = 72 som = "Gulp." elseif item.itemid == 6542 then -- egg coloured food = 72 som = "Gulp." elseif item.itemid == 6543 then -- egg coloured food = 72 som = "Gulp." elseif item.itemid == 6544 then -- egg coloured food = 72 som = "Gulp." elseif item.itemid == 6545 then -- egg coloured food = 72 som = "Gulp." elseif item.itemid == 7158 then --rainbow trout food = 300 som = "Munch." elseif item.itemid == 7159 then --green perch food = 180 som = "Munch." elseif item.itemid == 7372 then --ice cream food = 0 som = "Gulp." elseif item.itemid == 7373 then --ice cream food = 0 som = "Gulp." elseif item.itemid == 7374 then --ice cream food = 0 som = "Gulp." elseif item.itemid == 7375 then --ice cream food = 0 som = "Gulp." elseif item.itemid == 7376 then --ice cream food = 0 som = "Gulp." elseif item.itemid == 7377 then --ice cream food = 0 som = "Gulp." elseif item.itemid == 7909 then --walnut food = 48 som = "Munch." elseif item.itemid == 7910 then --peanut food = 48 som = "Munch." elseif item.itemid == 8838 then --potato food = 120 som = "Munch." elseif item.itemid == 8839 then --plum food = 60 som = "Mmmm." elseif item.itemid == 8840 then --raspberry food = 12 som = "Mmmm." elseif item.itemid == 8841 then --lemon food = 12 som = "Yum." elseif item.itemid == 8842 then --beetroot food = 84 som = "Yum." elseif item.itemid == 8843 then --onion food = 60 som = "Mmmm." elseif item.itemid == 8844 then --pepper food = 12 som = "Ouch." elseif item.itemid == 8845 then --beetroot food = 60 som = "Mmmm." else return 0 end if getPlayerFood(cid) + food > MAX_FOOD then doPlayerSendCancel(cid, "You are full.") return 1 end doPlayerFeed(cid, food) doRemoveItem(item.uid,1) doCreatureSay(cid, som, TALKTYPE_ORANGE_1) return 1 end E em actions.xml <action fromid="2362" toid="2363" script="food.lua"/><action fromid="2666" toid="2691" script="food.lua"/> <action fromid="2695" toid="2696" script="food.lua"/> <action fromid="2787" toid="2796" script="food.lua"/> <action itemid="5097" script="food.lua"/> <action itemid="6125" script="food.lua"/> <action itemid="6278" script="food.lua"/> <action itemid="6279" script="food.lua"/> <action itemid="6394" script="food.lua"/> <action itemid="6501" script="food.lua"/> <action fromid="6541" toid="6545" script="food.lua"/> <action itemid="6569" script="food.lua"/> <action itemid="6574" script="food.lua"/> <action itemid="7158" script="food.lua"/> <action itemid="7159" script="food.lua"/> <action itemid="7709" script="food.lua"/> <action itemid="7710" script="food.lua"/> <action fromid="7372" toid="7377" script="food.lua"/> <action fromid="8838" toid="8845" script="food.lua"/> É isso flws povão Compartilhar este post Link para o post
Nord 2 #2 Postado 15 Setembro, 2008 Apesar de não ter padrão de postagem é muito útil, por isso aprovarei. Tópico ativado para postagem. (Aprovado) Compartilhar este post Link para o post
Shary 0 #3 Postado 15 Setembro, 2008 Uhuul colokei sua action e agora tdo funfa peeerfect! Compartilhar este post Link para o post
Shary 0 #5 Postado 15 Setembro, 2008 hehehehehehe de meeentirinha eu tenho namorado rl* KKK beeeeeeijos ;* Compartilhar este post Link para o post
Naldo Ghost 0 #6 Postado 17 Setembro, 2008 Nota dez, ótimo scipt me ajudou pra caramba ;] continue assim com todo esse esforço xP Compartilhar este post Link para o post
tibiaa4e 0 #7 Postado 19 Setembro, 2008 ixi nem sabia que tinha isso de postagem So fico no forum internacional e X Depois posto outras actions aqui Compartilhar este post Link para o post
MotoBoy 0 #8 Postado 19 Setembro, 2008 cara ficou bem elgall.. eu tinha colocado uns negocios +/- assim no meu serer.. para tornar algmas coisas comestiveis como o Bolo xD flw!! Compartilhar este post Link para o post
dervin13 0 #9 Postado 20 Setembro, 2008 vaaleu muito bom o script Compartilhar este post Link para o post
Will Pro 0 #10 Postado 20 Setembro, 2008 (editado) Muito bom cara...já estou usando no meu server! Sabe? Preguiça de fazer scripts simples mata alguém(eu, em particular). Editado 20 Setembro, 2008 por Will Pro Compartilhar este post Link para o post