Ir para conteúdo

Food System 7.9 2.1


tibiaa4e

Posts Recomendados

Uptade da action de food

versão 2.1 100% rl tibia

Segundos corigidos e falas

ta ai

 

food.lua

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

--Version 2.1 by ta4e all foods rl tibia 11/1/07--

--For tibia 7.92--

 

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."

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)

doPlayerSay(cid, som, 16)

return 1

end

 

e em actions.xml add ou substitua

-- 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="6393" script="food.lua" />

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

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

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

 

comentem

 

flws :hi:

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...