Bard Music Macro

macros macros macros

Moderators: Phineas, noivad

Post Reply
User avatar
Baby
Higgrus Trainer
Posts: 50
Joined: Fri May 13, 2005 4:20 pm
Profession: Healer
Race: Sylvan
Player Status: Spambot
Location: Puddleby
Contact:

Bard Music Macro

Post by Baby » Sun Oct 24, 2010 3:05 pm

Got frustrated trying to play music when out and about, having to stop and take instruments out and put them away, so I had Shadowsky make me a music macro that automatically takes out a pre-designated instrument when you type /play #.

Didn't see anything for this in the Bard's section or the macro section, so thought I'd share it here; if one already exist then feel free to post it! :)

"/play"
{
set @CurrentRightHandItem @my.right_item
set @CurrentLeftHandItem @my.left_item

if @text == "1"
set @CurrentDesiredInstrument "a"
set @CurrentDesiredSongNumber @text
else if @text == "2"
set @CurrentDesiredInstrument "b"
set @CurrentDesiredSongNumber @text
else if @text == "3"
set @CurrentDesiredInstrument "c"
set @CurrentDesiredSongNumber @text

end if

"/equip instrument case \r"
"/useitem left /remove " @CurrentDesiredInstrument "\r"
"/equip " @CurrentDesiredInstrument "\r"

"/equip music folder \r"
"/useitem left " @CurrentDesiredSongNumber "\r"

"/equip instrument case \r"
"/useitem left /add" @CurrentDesiredInstrument "\r"

"/equip " @CurrentRightHandItem "\r"
"/equip " @CurrentLeftHandItem "\r"
}

Basically the numbers represent the song numbers in your music book and the letters represent the instrument that corresponds with that song.

For example:

"/play"
{
set @CurrentRightHandItem @my.right_item
set @CurrentLeftHandItem @my.left_item

if @text == "22"
set @CurrentDesiredInstrument "starbuckharp"
set @CurrentDesiredSongNumber @text
else if @text == "21"
set @CurrentDesiredInstrument "vibra"
set @CurrentDesiredSongNumber @text
else if @text == "20"
set @CurrentDesiredInstrument "gitor"
set @CurrentDesiredSongNumber @text

end if

"/equip instrument case \r"
"/useitem left /remove " @CurrentDesiredInstrument "\r"
"/equip " @CurrentDesiredInstrument "\r"

"/equip music folder \r"
"/useitem left " @CurrentDesiredSongNumber "\r"

"/equip instrument case \r"
"/useitem left /add" @CurrentDesiredInstrument "\r"

"/equip " @CurrentRightHandItem "\r"
"/equip " @CurrentLeftHandItem "\r"
}

You can add as many songs as you'd like, just copy/paste:

else if @text == "2"
set @CurrentDesiredInstrument "b"
set @CurrentDesiredSongNumber @text

Again, the number representing your song, and the letter your instrument.

The only issue we've ran into is that it doesn't seem to work if there's a space in the instrument name, such as starbuck harp. You also cannot /stop the music from playing once you've started without manually taking out an instrument and equipping it first. But that probably wouldn't be too hard to add in (SS is just lazy).

Also, does anyone have a link to a working CLTH for the mac? All the links I can find seem to be broken.

User avatar
xepel
Trainer
Posts: 3697
Joined: Fri Apr 04, 2003 4:20 pm
Profession: Bard
Race: Sylvan
Player Status: Active
Contact:

Re: Bard Music Macro

Post by xepel » Sun Oct 24, 2010 5:35 pm

Baby wrote:Also, does anyone have a link to a working CLTH for the mac? All the links I can find seem to be broken.
The old CLTH can be found here: http://www.dwarvenmilitia.com/downloads.html

A "new" tunehelper (for 10.5 or 10.6?) was semi-recently posted by Maz (who apparently still exists in the void somewhere!) and is located here: http://oomz.net/TuneHelper20.dmg
Helpful GM exclaims, "Mystics can fly and walk through walls. They don't need boats on the water, and they can teleport at will!"

User avatar
Borzon
Arilon Legacy
Arilon Legacy
Posts: 666
Joined: Sat Aug 28, 2010 5:29 am
Profession: Bloodmage
Race: Sylvan
Player Status: Inactive

Re: Bard Music Macro

Post by Borzon » Sun Oct 24, 2010 11:16 pm

I also made something like this a while ago.

Post Reply