Beta 12 crashes when you try to play a song without an instrument equipped. I have a macro that automatically removes an instrument and equips it before each song and re-stores it when the notes are done being input. The problem is, if your pack is full you can’t remove t he instrument, making either the music or the store instrument macro causing the crash:
grabInstrument
{
if @my.right_item != songInstrument
setglobal lSave @my.left_item
"/equip instrument case\r"
"/useitem instrument case /remove " songInstrument "\r"
setglobal rSave @my.right_item
"/equip " songInstrument "\r"
"/equip " lSave " \r"
end if
}
this is the store instrument macro:
storeInstrument
{
if @my.left_item != "instrument case"
setglobal lSave @my.left_item
"/equip instrument case\r"
"/useitem instrument case /add " songInstrument "\r"
if rSave != "Nothing"
"/equip " rSave "\r"
end if
pause 5
if lSave != "Nothing"
"/equip " lSave "\r"
end if
end if
}
and a song would use this:
"/charge"
{
set songInstrument "pine flute"
call grabInstrument
"/use @136 \b1b1b1/D6\b1/d=\r"
call storeInstrument
end if
}
Beta 12 crashes when you try to play a song without an instrument equipped. I have a macro that automatically removes an instrument and equips it before each song and re-stores it when the notes are done being input. The problem is, if your pack is full you can’t remove t he instrument, making either the music or the store instrument macro causing the crash:
grabInstrument { if @my.right_item != songInstrument setglobal lSave @my.left_item "/equip instrument case\r" "/useitem instrument case /remove " songInstrument "\r" setglobal rSave @my.right_item "/equip " songInstrument "\r" "/equip " lSave " \r" end if }
this is the store instrument macro:
storeInstrument { if @my.left_item != "instrument case" setglobal lSave @my.left_item "/equip instrument case\r" "/useitem instrument case /add " songInstrument "\r" if rSave != "Nothing" "/equip " rSave "\r" end if pause 5 if lSave != "Nothing" "/equip " lSave "\r" end if end if }
and a song would use this:
"/charge" { set songInstrument "pine flute" call grabInstrument "/use @136 \b1b1b1/D6\b1/d=\r" call storeInstrument end if }