Post by Neffi
Taking the above further, here's something to auto-switch titles properly,
I'm going to assume you're equipping a fishing pole when you change to the fishing set. You can do a little trickery with the API. Unfortunately there's no straightforward
IsItemEquipped function, so you'll have to know the item ID:
/run SetCurrentTitle(GetInventoryItemID('player',16)==
6256 and
x or
y)
The
6245 is the item ID of your fishing pole. In this case it's the standard
Fishing Pole. If you have a different fishing pole, change the ID accordingly. You can get an item ID at the end of a Wowhead URL, in this case:
http://www.wowhead.com/item=6256Or you can equip your pole and run the following to print its ID:
/run print('Your main hand's ID is: '..tostring(GetInventoryItemID('player',16)))
will print 'nil' if you have nothing equipped. Change the
x and
y to the relevant titles.
Edit: You can find a list of title IDs here:
http://www.wowwiki.com/TitleId If they turn out to be incorrect, you can find the ID of a title by setting it, then running:
/run print('Your current title ID is: '..tostring(GetCurrentTitle()))
will probably print 'nil' (or possibly 0) if you have no title set. Note: Because this depends on the fishing pole already being equipped, you will need to put the
/run line at the end of the macro (after the Fishing Pole is equipped).