I have a problem with this post
https://www.pokecommunity.com/showpost.php?p=8515307&postcount=64
I convert the script in XSE but it doesn't work in game

(and the original script too...)
This is the script decompilated (I insert the routines' pointer+1 in my script, here not)
Code:
#dynamic 0x900000
#org @start
lock
copyvar 0x8002 0x800D
callasm 0xOffset +1'set tree data
callasm 0xOffset + 1 'get tree data
compare 0x8005 0x0
if 0x1 goto @nonePlanted
compare 0x8005 0x1
if 0x1 goto @fresh
compare 0x8005 0x2
if 0x1 goto @sprouted
compare 0x8005 0x3
if 0x1 goto @growing
compare 0x8005 0x4
if 0x1 goto @blooming
callasm 0xOffset +1 'get yeild
buffernumber 0x0 0x800D
buffernumber 0x1 0x8009
additem 0x8009 0x800D
msgbox @recieved 0x2
setvar 0x8005 0x0
setvar 0x8006 0x0
setvar 0x8007 0x0
setvar 0x8008 0x0
setvar 0x8009 0x0
callasm 0xOffset +1 'set tree data
msgbox @returned 0x2
release
end
#org @nonePlanted
msgbox @none 0x5
compare LASTRESULT 0x0
if 0x1 goto @end
fadescreen 0x1
setvar 0x8000 0x7E
setvar 0x800E 0x0
callasm 0x0A1881
waitmsg
setvar 0x8000 0x0
compare 0x800E 0x0
if 0x1 goto @end
copyvar 0x8009 0x800E
bufferitem 0x0 0x8009
msgbox @addedBerry 0x2
setvar 0x8005 0x1
setvar 0x8007 0x0
setvar 0x8008 0x0
callasm 0xOffset +1' set time
callasm 0xOffset +1' set tree data
removeitem 0x8009 0x1
release
end
#org @fresh
bufferitem 0x0 0x8009
msgbox @newplant 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end
#org @sprouted
bufferitem 0x0 0x8009
msgbox @sprouting 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end
#org @growing
bufferitem 0x0 0x8009
msgbox @tall 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end
#org @blooming
bufferitem 0x0 0x8009
msgbox @bloom 0x2
compare 0x8007 0x0
if 0x0 goto @water
msgbox @wateredAlready 0x2
release
end
#org @water
checkitem 0x1 0x1 'checks you have one masterball. Change 0x1 to your watering item
compare LASTRESULT 0x1
if 0x0 goto @end
msgbox @wantWater 0x5
compare LASTRESULT 0x0
if 0x1 goto @end
msgbox @finishedWatering 0x2
addvar 0x8007 0x1
addvar 0x8008 0x1
copyvar 0x800D 0x8005
callasm 0x800001 'set tree data
release
end
#org @end
release
end
#org @addedBerry
= Hai piantato una \v\h02 qui.
#org @returned
= Il terreno è tornato al suo\nstato originario.
#org @newplant
= Qui è coltivata una [buffer1].
#org @none
= Il terreno sembra fertile.\nVuoi piantare una bacca?
#org @bloom
= Hai piantato una [buffer1].
#org @tall
= La [buffer1] sta\ncrescendo forte e rigogliosa.
#org @sprouting
= La [buffer1] è in fioritura!
#org @wantWater
= Il terreno ha bisogno di acqua[.]\nVuoi annaffiarlo?
#org @wateredAlready
= Il terreno è già umido.\nMeglio non esagerare con l'acqua!
#org @recieved
= \v\h01 raccoglie \v\h02 \v\h03!
#org @finishedWatering
= Il terreno adesso è umido.\nLa bacca sembra beneficiarne!
When I use ingame the script freez all...
The ShinyQuagsire's berry bag hack works perfectly and I install the JPAN's save block hack.