• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Action Magical Food Tree

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 :p)

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
 
Hey Santy, I posted in tibiafans but noone answered me, maybe you will here: 'it wont work... Im setting the tree with unique id in map editor and putting everything right in actions.xml and it won't work... using TFS 0.2.6'
 
Back
Top