Hello,
I create script - food on tree (etc. mango).
When I click, it keeps creating food on the tree.
What to do so that after creating food, it can be eaten and only after eating, for example, new ones can be created?
I create script - food on tree (etc. mango).
When I click, it keeps creating food on the tree.
What to do so that after creating food, it can be eaten and only after eating, for example, new ones can be created?
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 5157 then
doCreateItem(5097, math.random(1, 3), fromPosition)
return true
end