Bard Macros: Difference between revisions
From CLUMP
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
| Line 25: | Line 25: | ||
} | } | ||
/*Add the following to your song macro file, or character file*/ | /*Add the following to your song macro file, or character file*/ | ||
grabInstrument | |||
{ | { | ||
if @my.right_item != songInstrument | if @my.right_item != songInstrument | ||
| Line 32: | Line 32: | ||
"/equip instrument case\r" | "/equip instrument case\r" | ||
"/useitem instrument case /remove " songInstrument "\r" | "/useitem instrument case /remove " songInstrument "\r" | ||
setglobal rSave @mt.right_item | |||
"/equip " songInstrument "\r" | "/equip " songInstrument "\r" | ||
"/equip " | "/equip " lSave " \r" | ||
end if | |||
} | |||
storeInstrument | |||
{ | |||
if @my.left_item != "instrument case" | |||
setglobal lSave @my.left_item | |||
"/equip instrument case\r" | |||
"/useitem instrument case /add " songInstrument "\r" | |||
"/equip " rSave "\r" | |||
pause 5 | |||
"/equip " lSave "\r" | |||
end if | end if | ||
} | } | ||
Revision as of 09:42, 1 March 2023
Type /add <instrument name> and /remove <instrument name> and these macros will equip your instrument bag, remove or add an item and then re-equip what you had in your left hand.
/* ********* Instrument Case Uses ********* */
"/remove" call REMOVE
REMOVE
{
setglobal lSave @my.left_item
"/equip instrument case\r"
"/useitem instrument case /remove " @text "\r"
pause 10
"/equip " lSave "\r"
"/equip " @text "\r"
}
"/add" call ADD
ADD
{
setglobal lSave @my.left_item
"/equip instrument case\r"
"/useitem instrument case /add " @text "\r"
pause 10
"/equip " lSave "\r"
}
/*Add the following to your song macro file, or character file*/
grabInstrument
{
if @my.right_item != songInstrument
setglobal lSave @my.left_item
"/equip instrument case\r"
"/useitem instrument case /remove " songInstrument "\r"
setglobal rSave @mt.right_item
"/equip " songInstrument "\r"
"/equip " lSave " \r"
end if
}
storeInstrument
{
if @my.left_item != "instrument case"
setglobal lSave @my.left_item
"/equip instrument case\r"
"/useitem instrument case /add " songInstrument "\r"
"/equip " rSave "\r"
pause 5
"/equip " lSave "\r"
end if
}
/*Add the following to the top of song macros*/
setglobal songInstrument "pine flute" //<—Change this to instrument wanted call grabInstrument