Bard Macros: Difference between revisions

From CLUMP
Jump to navigationJump to search
m (fixed spaces)
(→‎Example Use of Grab/Store Macro: added a few more examples)
 
(4 intermediate revisions by the same user not shown)
Line 25: Line 25:
  }
  }


"/store" call STORE //Stores what instrument is in your hand
STORE
{
if @my.left_item != "instrument case"
setglobal lSave @my.left_item
"/equip instrument case\r"
"/useitem instrument case /add " @my.right_item "\r"
pause 10
"/equip " lSave "\r"
end if
}
==Auto Grab, Play, & Store==
/*First, add the following to your song macro file, or character file*/
/*First, add the following to your song macro file, or character file*/
  grabInstrument
  grabInstrument
Line 32: Line 46:
  "/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
  setglobal rSave @my.right_item
  "/equip " songInstrument "\r"
  "/equip " songInstrument "\r"
  "/equip " lSave " \r"
  "/equip " lSave " \r"
Line 44: Line 58:
  "/equip instrument case\r"
  "/equip instrument case\r"
  "/useitem instrument case /add " songInstrument "\r"
  "/useitem instrument case /add " songInstrument "\r"
  "/equip " rSave "\r"
  if rSave != "Nothing"
"/equip " rSave "\r"
end if
  pause 5
  pause 5
  "/equip " lSave "\r"
  if lSave != "Nothing"
"/equip " lSave "\r"
end if
  end if
  end if
  }
  }


/*Then add the following to the top of song macros*/
/*Then add the following to the top of song macros*/
  setglobal songInstrument "pine flute" //<—Change this to instrument wanted
  setglobal songInstrument "starbuck harp" //<—Change this to instrument wanted
  call grabInstrument
  call grabInstrument
/*And finally, add the following to the end of your song macro*/
/*And finally, add the following to the end of your song macro*/
  call storeInstrument
  call storeInstrument
==Examples of Grab/Store Macro==
"/charge"
{
setglobal songInstrument "pine flute"
call grabInstrument
"/use @136 \b1b1b1/D6\b1/d=\r"
call storeInstrument
end if
}
"/start"
{
set songInstrument "luckylyra"
call grabInstrument
"/use @136
<20230304:CM:Lyra>CCeDEdeCCdC\bB=EEgFGfgEEfEdDGGbABabGGaGfFCcDAaBCCdc\B=CC\B8=CCD8EEF8EEF8CD8EEC8CCE\r"
call storeInstrument
end if
}
"/ww" //Windweft Agronox Transport Tune
{
setglobal songInstrument "pine flute"
call grabInstrument
message "Windweft Song: cfedcgdec"
"/useitem pine cfedcgdec" "\r"
pause 10
"/equip " rSave "\r"
"/useitem instrument case /add pine\r"
"/equip " lSave "\r"
}
"/fh" //Foghaven Agronox Transport Tune
{
setglobal songInstrument "pine flute"
call grabInstrument
message "Foghaven Song: efefedefa"
"/useitem pine efefedefa" "\r"
pause 10
"/equip " rSave "\r"
"/useitem instrument case /add pine\r"
}

Latest revision as of 12:07, 8 September 2024

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"
}
"/store" call STORE //Stores what instrument is in your hand

STORE
{
if @my.left_item != "instrument case"
	setglobal lSave @my.left_item
	"/equip instrument case\r"
	"/useitem instrument case /add " @my.right_item "\r"
	pause 10
	"/equip " lSave "\r"
end if
}

Auto Grab, Play, & Store[edit]

/*First, 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 @my.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"
	if rSave != "Nothing"
		"/equip " rSave "\r"
	end if
	pause 5
	if lSave != "Nothing"
		"/equip " lSave "\r"
	end if
end if
}

/*Then add the following to the top of song macros*/

setglobal songInstrument "starbuck harp" //<—Change this to instrument wanted
call grabInstrument

/*And finally, add the following to the end of your song macro*/

call storeInstrument

Examples of Grab/Store Macro[edit]

"/charge"
{
setglobal songInstrument "pine flute"
call grabInstrument
	"/use @136 \b1b1b1/D6\b1/d=\r"
call storeInstrument
end if
}
"/start"
{
set songInstrument "luckylyra"
call grabInstrument
	"/use @136 
<20230304:CM:Lyra>CCeDEdeCCdC\bB=EEgFGfgEEfEdDGGbABabGGaGfFCcDAaBCCdc\B=CC\B8=CCD8EEF8EEF8CD8EEC8CCE\r"
call storeInstrument
end if
}
"/ww" //Windweft Agronox Transport Tune
{
setglobal songInstrument "pine flute"
call grabInstrument
message "Windweft Song: cfedcgdec"
"/useitem pine cfedcgdec" "\r"
pause 10
"/equip " rSave "\r"
"/useitem instrument case /add pine\r"
"/equip " lSave "\r"
}
"/fh" //Foghaven Agronox Transport Tune
{
setglobal songInstrument "pine flute"
call grabInstrument
message "Foghaven Song: efefedefa"
"/useitem pine efefedefa" "\r"
pause 10
"/equip " rSave "\r"
"/useitem instrument case /add pine\r"
}