MACRO castglyph

From Warcraft Wiki
Jump to navigation Jump to search

Puts a glyph into a specific slot.

/castglyph glyph slot

Arguments

glyph
String or Number - Either the name of a glyph or a glyphID
slot
String or Number - Either a slot token or a glyph SocketID. Slot tokens are:
  • minor1, minor2, minor3 : Minor glyph slots
  • major1, major2, major3 : Major glyph slots
  • prime1, prime2, prime3 : Prime glyph slots (removed in Patch 5.0)

Example

This will put the  [Glyph of the Penguin] into the first minor glyph slot:

/castglyph Penguin minor1

Notes

  • This was added in patch 4.0
  • This function is broken due to a bad pattern-matching string in its handler in FrameXML\ChatFrame.lua. Currently it uses "^(%S+)%s+(%S+)$" (i.e. only allows single-word glyph names), but it should be something like "^%s*(.+)%s+(%S+)%s*$".