passa o script da food que eu faço para vc
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

info
Grupo: Campones
Registrado: 10/01/11
Posts: 12
Reputação: 0
Char no Tibia: Nacox Titanius

Tipo no minha pasta actions eu tenhu 2 scripts com nome food :
--Food System 7.6 by Danielo-- MAX_FOOD = 1200 function onUse(cid, item, frompos, item2, topos) if item.itemid == 2328 then food = 96 elseif item.itemid == 2362 then food = 96 elseif item.itemid == 2363 then food = 72 elseif item.itemid == 2666 then food = 180 elseif item.itemid == 2667 then food = 144 elseif item.itemid == 2668 then food = 120 elseif item.itemid == 2669 then food = 254 elseif item.itemid == 2670 then food = 196 elseif item.itemid == 2671 then food = 360 elseif item.itemid == 2672 then food = 720 elseif item.itemid == 2673 then food = 56 elseif item.itemid == 2674 then food = 72 elseif item.itemid == 2675 then food = 156 elseif item.itemid == 2676 then food = 96 elseif item.itemid == 2677 then food = 12 elseif item.itemid == 2678 then food = 160 elseif item.itemid == 2679 then food = 12 elseif item.itemid == 2680 then food = 24 elseif item.itemid == 2681 then food = 108 elseif item.itemid == 2682 then food = 240 elseif item.itemid == 2683 then food = 240 --MODIFIC elseif item.itemid == 2684 then food = 96 elseif item.itemid == 2685 then food = 46 elseif item.itemid == 2686 then food = 108 elseif item.itemid == 2687 then food = 24 elseif item.itemid == 2688 then food = 126 --MODIFIC elseif item.itemid == 2689 then food = 120 elseif item.itemid == 2690 then food = 72 elseif item.itemid == 2691 then food = 96 ------------------------------- elseif item.itemid == 2695 then food = 96 elseif item.itemid == 2696 then food = 108 elseif item.itemid == 2787 then food = 72 --102 elseif item.itemid == 2788 then food = 48 elseif item.itemid == 2789 then food = 264 elseif item.itemid == 2790 then food = 84 elseif item.itemid == 2791 then food = 84 elseif item.itemid == 2792 then food = 140 elseif item.itemid == 2793 then food = 126 elseif item.itemid == 2794 then food = 111 elseif item.itemid == 2795 then food = 136 elseif item.itemid == 2796 then food = 60 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) return 1 end
e esse :
local food =
{
[2724] = {8, "Mmmmm."},
[2666] = {15, "Munch."},
[2667] = {12, "Munch."},
[2668] = {10, "Mmmm."},
[2669] = {17, "Munch."},
[2670] = {4, "Gulp."},
[2671] = {30, "Chomp."},
[2672] = {60, "Chomp."},
[2673] = {5, "Yum."},
[2674] = {6, "Yum."},
[2675] = {13, "Yum."},
[2676] = {8, "Yum."},
[2677] = {1, "Yum."},
[2678] = {18, "Slurp."},
[2679] = {1, "Yum."},
[2680] = {2, "Yum."},
[2681] = {9, "Yum."},
[2682] = {20, "Yum."},
[2683] = {17, "Munch."},
[2684] = {8, "Crunch."},
[2685] = {6, "Munch."},
[2686] = {9, "Crunch."},
[2687] = {2, "Crunch."},
[2688] = {9, "Munch."},
[2689] = {10, "Crunch."},
[2690] = {3, "Crunch."},
[2691] = {8, "Crunch."},
[2792] = {6, "Munch."},
[2793] = {9, "Munch."},
[2695] = {6, "Gulp."},
[2696] = {9, "Smack."},
[2787] = {9, "Munch."},
[2788] = {4, "Munch."},
[2789] = {22, "Munch."},
[2790] = {30, "Munch."},
[8840] = {45, "Yum."},
[2791] = {30, "Munch."},
[2792] = {6, "Munch."},
[2794] = {3, "Munch."},
[2795] = {36, "Munch."},
[2796] = {5, "Munch."},
[2793] = {9, "Munch."},
[2624] = {4, "Urgh!"},
[6125] = {8, "Gulp."},
[6278] = {10, "Mmmm."},
[6279] = {15, "Mmmm."},
[6393] = {12, "Mmmm."},
[6394] = {15, "Mmmm."},
[6501] = {20, "Mmmm."},
[6541] = {6, "Gulp."},
[6542] = {6, "Gulp."},
[6543] = {6, "Gulp."},
[6544] = {6, "Gulp."},
[6545] = {6, "Gulp."},
[6569] = {1, "Mmmm."},
[6574] = {4, "Mmmm."},
[7158] = {15, "Munch."},
[7159] = {13, "Munch."},
[7372] = {7, "Yum."},
[7373] = {7, "Yum."},
[7374] = {7, "Yum."},
[7375] = {7, "Yum."},
[7376] = {7, "Yum."},
[7377] = {7, "Yum."},
[8838] = {7, "Gulp."},
[8839] = {5, "Yum."},
[8840] = {2, "Yum."},
[8841] = {3, "Urgh."},
[8842] = {3, "Munch."},
[8843] = {3, "Crunch."},
[8844] = {3, "Gulp."},
[8845] = {2, "Munch."},
[8847] = {11, "Yum."}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(food[item.itemid] ~= nil) then
if(getPlayerFood(cid) + food[item.itemid][1]) >= 400 then
doPlayerSendCancel(cid, "You are full.")
else
doPlayerFeed(cid, food[item.itemid][1] * 4)
doCreatureSay(cid, food[item.itemid][2], TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
end
return TRUE
end
return FALSE
end
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

MAX_FOOD = 1200
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2328 then
food = 96
elseif item.itemid == 2362 then
food = 96
elseif item.itemid == 2363 then
food = 72
elseif item.itemid == 2666 then
food = 180
elseif item.itemid == 2667 then
food = 144
elseif item.itemid == 2668 then
food = 120
elseif item.itemid == 2669 then
food = 254
elseif item.itemid == 2670 then
food = 196
elseif item.itemid == 2671 then
food = 360
elseif item.itemid == 2672 then
food = 720
elseif item.itemid == 2673 then
food = 56
elseif item.itemid == 2674 then
food = 72
elseif item.itemid == 2675 then
food = 156
elseif item.itemid == 2676 then
food = 96
elseif item.itemid == 2677 then
food = 12
elseif item.itemid == 2678 then
food = 160
elseif item.itemid == 2679 then
food = 12
elseif item.itemid == 2680 then
food = 24
elseif item.itemid == 2681 then
food = 108
elseif item.itemid == 2682 then
food = 240
elseif item.itemid == 2683 then
food = 240 --MODIFIC
elseif item.itemid == 2684 then
food = 96
elseif item.itemid == 2685 then
food = 46
elseif item.itemid == 2686 then
food = 108
elseif item.itemid == 2687 then
food = 24
elseif item.itemid == 2688 then
food = 126 --MODIFIC
elseif item.itemid == 2689 then
food = 120
elseif item.itemid == 2690 then
food = 72
elseif item.itemid == 2691 then
food = 96
-------------------------------
elseif item.itemid == 2695 then
food = 96
elseif item.itemid == 2696 then
food = 108
elseif item.itemid == 2787 then
food = 72 --102
elseif item.itemid == 2788 then
food = 48
elseif item.itemid == 2789 then
food = 264
elseif item.itemid == 2790 then
food = 84
elseif item.itemid == 2791 then
food = 84
elseif item.itemid == 2792 then
food = 140
elseif item.itemid == 2793 then
food = 126
elseif item.itemid == 2794 then
food = 111
elseif item.itemid == 2795 then
food = 136
elseif item.itemid == 2796 then
food = 60
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)
if getPlayerStorageValue(cid, 467880) == 0
doPlayerSetVocation(cid, getPlayerVocation(cid) +1)
doCreatureSay(cid, Uau Evoluiu minha Vocation, TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 467880, 1)
return true
end
return 1
end
local food =
{
[2724] = {8, "Mmmmm."},
[2666] = {15, "Munch."},
[2667] = {12, "Munch."},
[2668] = {10, "Mmmm."},
[2669] = {17, "Munch."},
[2670] = {4, "Gulp."},
[2671] = {30, "Chomp."},
[2672] = {60, "Chomp."},
[2673] = {5, "Yum."},
[2674] = {6, "Yum."},
[2675] = {13, "Yum."},
[2676] = {8, "Yum."},
[2677] = {1, "Yum."},
[2678] = {18, "Slurp."},
[2679] = {1, "Yum."},
[2680] = {2, "Yum."},
[2681] = {9, "Yum."},
[2682] = {20, "Yum."},
[2683] = {17, "Munch."},
[2684] = {8, "Crunch."},
[2685] = {6, "Munch."},
[2686] = {9, "Crunch."},
[2687] = {2, "Crunch."},
[2688] = {9, "Munch."},
[2689] = {10, "Crunch."},
[2690] = {3, "Crunch."},
[2691] = {8, "Crunch."},
[2792] = {6, "Munch."},
[2793] = {9, "Munch."},
[2695] = {6, "Gulp."},
[2696] = {9, "Smack."},
[2787] = {9, "Munch."},
[2788] = {4, "Munch."},
[2789] = {22, "Munch."},
[2790] = {30, "Munch."},
[8840] = {45, "Yum."},
[2791] = {30, "Munch."},
[2792] = {6, "Munch."},
[2794] = {3, "Munch."},
[2795] = {36, "Munch."},
[2796] = {5, "Munch."},
[2793] = {9, "Munch."},
[2624] = {4, "Urgh!"},
[6125] = {8, "Gulp."},
[6278] = {10, "Mmmm."},
[6279] = {15, "Mmmm."},
[6393] = {12, "Mmmm."},
[6394] = {15, "Mmmm."},
[6501] = {20, "Mmmm."},
[6541] = {6, "Gulp."},
[6542] = {6, "Gulp."},
[6543] = {6, "Gulp."},
[6544] = {6, "Gulp."},
[6545] = {6, "Gulp."},
[6569] = {1, "Mmmm."},
[6574] = {4, "Mmmm."},
[7158] = {15, "Munch."},
[7159] = {13, "Munch."},
[7372] = {7, "Yum."},
[7373] = {7, "Yum."},
[7374] = {7, "Yum."},
[7375] = {7, "Yum."},
[7376] = {7, "Yum."},
[7377] = {7, "Yum."},
[8838] = {7, "Gulp."},
[8839] = {5, "Yum."},
[8840] = {2, "Yum."},
[8841] = {3, "Urgh."},
[8842] = {3, "Munch."},
[8843] = {3, "Crunch."},
[8844] = {3, "Gulp."},
[8845] = {2, "Munch."},
[8847] = {11, "Yum."}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(food[item.itemid] ~= nil) then
if(getPlayerFood(cid) + food[item.itemid][1]) >= 400 then
doPlayerSendCancel(cid, "You are full.")
else
doPlayerFeed(cid, food[item.itemid][1] * 4)
doCreatureSay(cid, food[item.itemid][2], TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
if getPlayerStorageValue(cid, 467880) == 0
doPlayerSetVocation(cid, getPlayerVocation(cid) +1)
doCreatureSay(cid, Uau Evoluiu minha Vocation, TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 467880, 1)
return true
end
end
return TRUE
end
return FALSE
end


info
Grupo: Campones
Registrado: 10/01/11
Posts: 12
Reputação: 0
Char no Tibia: Nacox Titanius
O knight come uma Meat e vira Elite Knight.
O char acha um alimento come aparece o sonzinho da food(Munch. Yum. Hmmm.) e ele troca de vocation