View Single Post
  #1  
Unread 06-26-2012, 05:18 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default Fun with macro icons

More macro icons? Here you go, no mod required. Any spell icon foreground with any spell icon background for your use.

(There are other posts that go into the details of how to get and use the id #s.)

The formula for an icon is:
backgroundIconOffset * 2^16 + foregroundIconOffset

The space for each background is 2^16.
Icons are zero-indexed, and there are currently 954 of them.

The offsets for the colored backgrounds are:
312 green
313 blue
314 purple
315 red
316 orange
317 yellow

If you have a known SpellIconID like 20709646 (Destructive Mind). As a single target buff, it has an orange background. I have two of them on my hotbar. One macro'd to me, and another for my current target. Since self-buffs have a yellow background, I'm going to change the icon on the self-target to yellow. Two ways to do it.

Method 1:
Since orange is offset 316 and yellow is 317 I can just add 2^16 (65536) to the id to move to the next background.
OldID + 65536 = NewID
20709646 + 65536 = 20775182

For red (from orange) it would be id-65536
20709646 - 65536 = 20644110

Blue (from orange) id-65536*3 = 20513038

Method 2:
Find the background icon offset: 20709646/65536=316.004119 (Only the whole # matters)
Our bg is 316.

Now find the foreground icon offset: 316*65536=20709376 (Which is the start of the icons with that bg)
OriginalId - (BackGroundId * 65536)
20709646 - 20709376 = 270 (So my icon is offset 270).

Now I can put any background I want on it.
BackgroundOffset * 66536 + 270

For yellow: 317*65536+270=20775182 (which is exactly what we found in method #1)

For a music note: 515*65536+270=33751310

When it's all done, you can put it in a text file and use /loadhotkeys. Once they're on your hotbar, they can be dragged to the macro editor.



This is the code I put into the textfile to load up the attached icons.

4 3 macro 33751310 1 1 blah0
b
4 4 macro 20775182 1 1 blah1
b
4 5 macro 20709646 1 1 Destructive Mind V
/useability 84402331
4 6 macro 20644110 1 1 blah2
b
4 7 macro 20513038 1 1 blah3
b

Have fun. Oh, and I recommend using /savehotkeys someuniquefilename before messing with any of this so you don't lose your hotkeys.
Attached Thumbnails
Click image for larger version

Name:	dmindicons.jpg
Views:	1861
Size:	5.2 KB
ID:	7912  

Last edited by pooka : 06-26-2012 at 05:30 PM. Reason: typos
Reply With Quote