Santy
Member
- Joined
- Aug 14, 2007
- Messages
- 654
- Reaction score
- 22
Ok, this is a script of a magical food tree that it never ends. It feeds you like a ham, its basically for training monks (I use it there )
Here is the script:
Here is the script:
Code:
local text = ""
local nutrition = 0
local effect = 50
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2699 then
nutrition = 30
text = "Crump."
effect = 27
end
if (getPlayerFood(cid) + nutrition > 400) then
doPlayerSendCancel(cid,"Other people want to eat too...")
else
doPlayerFeed(cid, nutrition * 4)
doPlayerSay(cid, text, 16)
if effect < 31 then
doSendMagicEffect(getPlayerPosition(cid), 27)
end
end
return 1
end