Ir para conteúdo

Vomit System 7.9


tibiaa4e

Posts Recomendados

Como sempre o colex fez akela action inesquecivel

e eu num poderia deixa la para tras

agr fiz o meu food system 7.9 e juntei com o system do colex

creditos:ta4e (função de food)

Colex (vomit system)

frerety(gm come sem ficar full)

ta ai

food.lua

--New food system by Ta4e (thx for SoulBlaster for correct function)--

--Vomit system by colex Adapted for 7.9 by ta4e--

--Gm never full by frerety--

MAX_FOOD = 1200

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

if item.itemid == 2666 then

food = 180

som = "Munch."

elseif item.itemid == 2667 then

food = 144

som = "Munch."

elseif item.itemid == 2668 then

food = 120

som = "Mmmm."

elseif item.itemid == 2669 then

food = 254

som = "Munch."

elseif item.itemid == 2670 then

food = 196

som = "Munch."

elseif item.itemid == 2671 then

food = 360

som = "Chomp."

elseif item.itemid == 2672 then

food = 720

som = "Chomp."

elseif item.itemid == 2673 then

food = 56

som = "Yum."

elseif item.itemid == 2674 then

food = 72

som = "Yum."

elseif item.itemid == 2675 then

food = 156

som = "Yum."

elseif item.itemid == 2676 then

food = 96

som = "Yum."

elseif item.itemid == 2677 then

food = 12

som = "Yum."

elseif item.itemid == 2678 then

food = 160

som = "Yum."

elseif item.itemid == 2679 then

food = 12

som = "Yum."

elseif item.itemid == 2680 then

food = 24

som = "Yum."

elseif item.itemid == 2681 then

food = 108

som = "Yum."

elseif item.itemid == 2682 then

food = 240

som = "Yum."

elseif item.itemid == 2683 then

food = 240

som = "Yum."

elseif item.itemid == 2684 then

food = 96

som = "Crunch."

elseif item.itemid == 2685 then

food = 46

som = "Yum."

elseif item.itemid == 2686 then

food = 108

som = "Crunch."

elseif item.itemid == 2687 then

food = 24

som = "Crunch."

elseif item.itemid == 2688 then

food = 126

som = "Mmmm."

elseif item.itemid == 2689 then

food = 120

som = "Crunch."

elseif item.itemid == 2690 then

food = 72

som = "Crunch."

elseif item.itemid == 2691 then

food = 96

som = "Crunch."

elseif item.itemid == 2695 then

food = 96

som = "Gulp."

elseif item.itemid == 2696 then

food = 108

som = "Smack."

elseif item.itemid == 2787 then

food = 72

som = "Crunch."

elseif item.itemid == 2788 then

food = 48

som = "Crunch."

elseif item.itemid == 2789 then

food = 264

som = "Crunch."

elseif item.itemid == 2790 then

food = 84

som = "Crunch."

elseif item.itemid == 2791 then

food = 84

som = "Crunch."

elseif item.itemid == 2792 then

food = 140

som = "Crunch."

elseif item.itemid == 2793 then

food = 126

som = "Crunch."

elseif item.itemid == 2794 then

food = 111

som = "Crunch."

elseif item.itemid == 2795 then

food = 136

som = "Crunch."

elseif item.itemid == 2796 then

food = 60

som = "Crunch."

elseif item.itemid == 5097 then

food = 48

som = "Yum."

elseif item.itemid == 5678 then

food = 96

som = "Gulp."

elseif item.itemid == 6501 then

food = 240

som = "Mmmm."

elseif item.itemid == 6278 then

food = 120

som = " Mmmm."

elseif item.itemid == 6279 then

food = 120

som = " Mmmm."

elseif item.itemid == 6280 then

food = 180

som = " Mmmm."

else

return 0

end

vomit = math.random(1,50)

if (getPlayerFood(cid) + food > MAX_FOOD) then

if getPlayerAccess(cid) > 2 then

doPlayerFeed(cid, food)

doRemoveItem(item.uid, 1)

doPlayerSay(cid, som..'.', 16)

return 1

else

if vomit == 1 then

doPlayerSendCancel(cid,"You are full, You have vomited.")

doSendMagicEffect(getPlayerPosition(cid),8)

doPlayerAddHealth(cid,-vomit)

vom = doCreateItem(2025,4,getPlayerPosition(cid))

doRemoveItem(item.uid,1)

doSetItemSpecialDescription(vom,"vomit")

doDecayItem(vom)

else

doPlayerSendCancel(cid,"You are full.")

end

return 1

end

end

doPlayerFeed(cid,food)

doRemoveItem(item.uid,1)

doPlayerSay(cid, som..'.', 16)

return 1

end

e em actions.xml

-- Foods

<action itemid="2328" script="food.lua" />

<action itemid="2362" script="food.lua" />

<action itemid="2363" script="food.lua" />

<action itemid="2666" script="food.lua" />

<action itemid="2667" script="food.lua" />

<action itemid="2668" script="food.lua" />

<action itemid="2669" script="food.lua" />

<action itemid="2670" script="food.lua" />

<action itemid="2671" script="food.lua" />

<action itemid="2672" script="food.lua" />

<action itemid="2673" script="food.lua" />

<action itemid="2674" script="food.lua" />

<action itemid="2675" script="food.lua" />

<action itemid="2676" script="food.lua" />

<action itemid="2677" script="food.lua" />

<action itemid="2678" script="food.lua" />

<action itemid="2679" script="food.lua" />

<action itemid="2680" script="food.lua" />

<action itemid="2681" script="food.lua" />

<action itemid="2682" script="food.lua" />

<action itemid="2683" script="food.lua" />

<action itemid="2684" script="food.lua" />

<action itemid="2685" script="food.lua" />

<action itemid="2686" script="food.lua" />

<action itemid="2687" script="food.lua" />

<action itemid="2688" script="food.lua" />

<action itemid="2689" script="food.lua" />

<action itemid="2690" script="food.lua" />

<action itemid="2691" script="food.lua" />

<action itemid="2695" script="food.lua" />

<action itemid="2696" script="food.lua" />

<action itemid="2787" script="food.lua" />

<action itemid="2788" script="food.lua" />

<action itemid="2789" script="food.lua" />

<action itemid="2790" script="food.lua" />

<action itemid="2791" script="food.lua" />

<action itemid="2792" script="food.lua" />

<action itemid="2793" script="food.lua" />

<action itemid="2794" script="food.lua" />

<action itemid="2795" script="food.lua" />

<action itemid="2796" script="food.lua" />

<action itemid="5097" script="food.lua" />

<action itemid="5678" script="food.lua" />

<action itemid="6501" script="food.lua" />

<action itemid="6278" script="food.lua" />

<action itemid="6279" script="food.lua" />

<action itemid="6280" script="food.lua" />

flws :bye:

Link para o comentário
Compartilhar em outros sites

lol vc fez a msm coisa que eu no [site Removido] xD

mas eu postei antes la muahah >D

esses sao meus primeiros posts nesse forum, pq eu frequento + o [site Removido], q ainda eh um forum pequeno

o meu ta assim lah (nao sei se ta igual):

 

--New food system by Ta4e, vomit system by Colex, both systems fusion by Sun--MAX_FOOD = 1200function onUse(cid, item, frompos, item2, topos)if item.itemid == 5678 then food = 96doPlayerSay(cid, "Gulp.", 16)elseif item.itemid == 2362 then food = 96doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2666 then food = 180                   doPlayerSay(cid, "Munch.", 16)elseif item.itemid == 2667 then food = 144doPlayerSay(cid, "Munch.", 16)elseif item.itemid == 2668 then food = 120doPlayerSay(cid, "Mmmm.", 16)elseif item.itemid == 2669 then food = 254doPlayerSay(cid, "Munch.", 16)elseif item.itemid == 2670 then food = 196doPlayerSay(cid, "Munch.", 16)elseif item.itemid == 2671 then food = 360doPlayerSay(cid, "Chomp.", 16)elseif item.itemid == 2672 then food = 720doPlayerSay(cid, "Chomp.", 16)elseif item.itemid == 2673 then food = 56doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2674 then food = 72doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2675 then food = 156doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2676 then food = 96elseif item.itemid == 2677 then food = 12doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2678 then food = 160doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2679 then food = 12doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2680 then food = 24doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2681 then food = 108doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2682 then food = 240doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2683 then food = 240doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2684 then food = 96doPlayerSay(cid, "Runch.", 16)elseif item.itemid == 2685 then food = 46doPlayerSay(cid, "Yum.", 16)elseif item.itemid == 2686 then food = 108elseif item.itemid == 2687 then food = 24doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2688 then food = 126elseif item.itemid == 2689 then food = 120doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2690 then food = 72doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2691 then food = 96doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2695 then food = 96doPlayerSay(cid, "Gulp.", 16)elseif item.itemid == 2696 then food = 108doPlayerSay(cid, "Smack.", 16)elseif item.itemid == 2787 then food = 72doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2788 then food = 48doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2789 then food = 264doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2790 then food = 84doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2791 then food = 84doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2792 then food = 140doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2793 then food = 126doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2794 then food = 111doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2795 then food = 136doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 2796 then food = 60doPlayerSay(cid, "Crunch.", 16)elseif item.itemid == 5097 then food = 48doPlayerSay(cid, "Yum.", 16)else return 0endvomit = math.random(1,50)if (getPlayerFood(cid) + food > MAX_FOOD) thenif getPlayerAccess(cid) > 2 thendoPlayerFeed(cid,food)doRemoveItem(item.uid,1)return 1elseif vomit == 1 thendoPlayerSendCancel(cid,"You are full, You have vomited.")doSendMagicEffect(getPlayerPosition(cid),8)doPlayerAddHealth(cid,-vomit)vom = doCreateItem(2025,4,getPlayerPosition(cid))doRemoveItem(item.uid,1)doSetItemSpecialDescription(vom,"vomit")doDecayItem(vom)elsedoPlayerSendCancel(cid,"You are full.")endreturn 1endenddoPlayerFeed(cid,food)doRemoveItem(item.uid,1)return 1end

 

link da pagina:[site Removido](juro que nao eh propaganda =X)

Data do meu post:

Posted: Dec 24 2006, 07:22 PM

Data do seu post:

Hoje, 03:15

nesse caso eu postei primeiro, mas e dai? lol, axo q o seu ta ateh melhor apesar de parece igual (vc pode ver na minha sign la que eu so seu fan =D)

Link para o comentário
Compartilhar em outros sites

Esse seu ai peos creditos se tinha pegado do q eu fiz antigamente ?

+ ele é ruim pq o player fala msm estando full...

e esse axo q falta as novas food :p

peço q retire o outro site pq eu axo q é proibido e eu ja vi

e comprovei :D

flws :bye:

Link para o comentário
Compartilhar em outros sites

vlw pelo aviso.. ja retirei..

eu nao tinha pensado nisso, colocar pro player nao dizer nada msm estando full

mas.. tipo, qd vc da look, ele diz:

17:00 You see a pool of slime.

vomit

sera q nao tem como arruma isso?

ah eh! as "novas ids" que vc falou sao de 7.9 que vc quer dizer, mas eu fosse usar em um ot 7.8, que nao tem essas foods, seria assim o script:

 

--New food system by Ta4e (thx for SoulBlaster for correct function)----Vomit system by colex Adapted for 7.9 by ta4e----Gm never full by frerety--MAX_FOOD = 1200function onUse(cid, item, frompos, item2, topos)if item.itemid == 2666 thenfood = 180som = "Munch."elseif item.itemid == 2667 thenfood = 144som = "Munch."elseif item.itemid == 2668 thenfood = 120som = "Mmmm."elseif item.itemid == 2669 thenfood = 254som = "Munch."elseif item.itemid == 2670 thenfood = 196som = "Munch."elseif item.itemid == 2671 thenfood = 360som = "Chomp."elseif item.itemid == 2672 thenfood = 720som = "Chomp."elseif item.itemid == 2673 thenfood = 56som = "Yum."elseif item.itemid == 2674 thenfood = 72som = "Yum."elseif item.itemid == 2675 thenfood = 156som = "Yum."elseif item.itemid == 2676 thenfood = 96som = "Yum."elseif item.itemid == 2677 thenfood = 12som = "Yum."elseif item.itemid == 2678 thenfood = 160som = "Yum."elseif item.itemid == 2679 thenfood = 12som = "Yum."elseif item.itemid == 2680 thenfood = 24som = "Yum."elseif item.itemid == 2681 thenfood = 108som = "Yum."elseif item.itemid == 2682 thenfood = 240som = "Yum."elseif item.itemid == 2683 thenfood = 240som = "Yum."elseif item.itemid == 2684 thenfood = 96som = "Crunch."elseif item.itemid == 2685 thenfood = 46som = "Yum."elseif item.itemid == 2686 thenfood = 108som = "Crunch."elseif item.itemid == 2687 thenfood = 24som = "Crunch."elseif item.itemid == 2688 thenfood = 126som = "Mmmm."elseif item.itemid == 2689 thenfood = 120som = "Crunch."elseif item.itemid == 2690 thenfood = 72som = "Crunch."elseif item.itemid == 2691 thenfood = 96som = "Crunch."elseif item.itemid == 2695 thenfood = 96som = "Gulp."elseif item.itemid == 2696 thenfood = 108som = "Smack."elseif item.itemid == 2787 thenfood = 72som = "Crunch."elseif item.itemid == 2788 thenfood = 48som = "Crunch."elseif item.itemid == 2789 thenfood = 264som = "Crunch."elseif item.itemid == 2790 thenfood = 84som = "Crunch."elseif item.itemid == 2791 thenfood = 84som = "Crunch."elseif item.itemid == 2792 thenfood = 140som = "Crunch."elseif item.itemid == 2793 thenfood = 126som = "Crunch."elseif item.itemid == 2794 thenfood = 111som = "Crunch."elseif item.itemid == 2795 thenfood = 136som = "Crunch."elseif item.itemid == 2796 thenfood = 60som = "Crunch."elseif item.itemid == 5097 thenfood = 48som = "Yum."else  return 0endvomit = math.random(1,50)if (getPlayerFood(cid) + food > MAX_FOOD) thenif getPlayerAccess(cid) > 2 thendoPlayerFeed(cid, food)doRemoveItem(item.uid, 1)doPlayerSay(cid, som..'.', 16)return 1elseif vomit == 1 thendoPlayerSendCancel(cid,"You are full, You have vomited.")doSendMagicEffect(getPlayerPosition(cid),8)doPlayerAddHealth(cid,-vomit)vom = doCreateItem(2025,4,getPlayerPosition(cid))doRemoveItem(item.uid,1)doSetItemSpecialDescription(vom,"vomit")doDecayItem(vom)elsedoPlayerSendCancel(cid,"You are full.")endreturn 1endenddoPlayerFeed(cid,food)doRemoveItem(item.uid,1)doPlayerSay(cid, som..'.', 16)return 1end

 

tudo q eu fiz foi tirar alguns elseifs, pois os ids 6000~~ e 4000~~ sao de monsters, e outras coisas (em 7.8)

Link para o comentário
Compartilhar em outros sites

  • 1 month later...
×
×
  • Criar Novo...