AdiMit
c(;
- Joined
- May 2, 2016
- Messages
- 70
- Solutions
- 2
- Reaction score
- 3
Hello dear OtLanders,
I'm currently using the [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8 by Printer, from the thread: [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8;
I've been recently wanting to remake various fruit bushes/trees so that they would work the same way blueberry bushes do...
The only problem is that they do not decay back to the unharvested form (e.g. 5156->5157); however, it is not the case for the blueberry bushes, which work alright.
I've remade quite a few ones (banana, plum, mango trees, etc.), but I'll just post the mango example, because the only difference in the scripts is the respective ID.
0) ...\data\actions\scripts\other\blueberrybush.lua: <-- the one I have based the rest of the scripts on.
1) ...\data\actions\scripts\other\mangotree.lua:
2) ...\data\actions\actions.xml:
Once again, everything except the plant decaying back to the original ID works just right.
If you have any ideas how to fix this little issue, I'd be more than happy to try them out!
Thank you in advance!
Best regards,
I'm currently using the [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8 by Printer, from the thread: [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8;
I've been recently wanting to remake various fruit bushes/trees so that they would work the same way blueberry bushes do...
The only problem is that they do not decay back to the unharvested form (e.g. 5156->5157); however, it is not the case for the blueberry bushes, which work alright.
I've remade quite a few ones (banana, plum, mango trees, etc.), but I'll just post the mango example, because the only difference in the scripts is the respective ID.
0) ...\data\actions\scripts\other\blueberrybush.lua: <-- the one I have based the rest of the scripts on.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreateItem(2677, 3, fromPosition)
doTransformItem(item.uid, 2786)
doDecayItem(item.uid)
return true
end
1) ...\data\actions\scripts\other\mangotree.lua:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreateItem(5097, 3, fromPosition)
doTransformItem(item.uid, 5156)
doDecayItem(item.uid)
return true
end
2) ...\data\actions\actions.xml:
Lua:
...
<action itemid="2785" event="script" value="other/blueberrybush.lua"/>
<action itemid="5157" event="script" value="other/mangotree.lua"/>
...
Once again, everything except the plant decaying back to the original ID works just right.
If you have any ideas how to fix this little issue, I'd be more than happy to try them out!
Thank you in advance!
Best regards,