• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Tree give you food!!!!

Bogart

...has super panda powers
Senator
Joined
Jun 21, 2009
Messages
8,007
Solutions
27
Reaction score
566
Location
Panda Land!
First go to data\actions\scripts and make new lue whit name
Food Tree.lua
and put this
\/
---- By Bogart-----


function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5390 then
doTransformItem(item.uid,5390)
doPlayerAddItem(cid,2674,100)
doSendAnimatedText(frompos,'Apples Mmmm', TEXTCOLOR_RED)
doDecayItem(item.uid)
end
return 1
end


then go to data\actions and open actions XML and add this
<action itemid="5390" script="Food Tree.lua"/>

and it give you Red Apples the tree id is : 5390
and that is all if I helped you rep++ :thumbup: ^_^
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition) return TRUE, doTransformItem(item.uid, 5390) and doPlayerAddItem(cid, 2674, 100) and doSendAnimatedText(fromPosition, 'Apples Mmmm', TEXTCOLOR_RED) and doDecayItem(item.uid) end
 
Last edited:
i made this before -.- lol with mango tree, and mangos :D

ty anyway :d
 
Back
Top