MQ2Labels

From the wonderful RedGuides Wiki
MQ2Labels
Allows you to use MQ2Data within your EQ UI.
View details
Authors lax, amadeus, brainiac, eqmule, alynel, Knightly, dannuic
Software type Plugin



Links

🏠Resource (review)
🤝Support •🛠️Repository

This plugin allows you to use MacroQuest data within your EverQuest UI.

  • It provides a number of EQTypes which can be used exactly as you use the built-in EQTypes.
  • If there is not suitable EQType for your use, you can use ToolTips to display custom information.

Commands

MQ EQTypes

$char()

  • 1000: ${Me.CurrentMana}
  • 1001: ${Me.MaxMana}
  • 1002: ${Me.State}
  • 1003: ${Me.Speed}
  • 1004: ${Me.Heading}
  • 1005: ${Me.X}
  • 1006: ${Me.Y}
  • 1007: ${Me.Z}
  • 1008: ${Me.Dar}
  • 1009: ${Me.Cash}
  • 1010: ${Me.CashBank}
  • 1011: ${Me.Platinum)
  • 1012: ${Me.PlatinumShared}
  • 1013: ${Me.Gold}
  • 1014: ${Me.SilverBank}
  • 1015: ${Me.CopperBank}

$target()

  • 2000: ${Target.Level}
  • 2001: ${Target.Class}
  • 2002: ${Target.Race}
  • 2003: ${Target.Distance}
  • 2004: $target(lastattacked)
  • 2005: ${Target.State}
  • 2006: ${Target.X}
  • 2007: ${Target.Y}
  • 2008: ${Target.Z}
  • 2009: ${Target.Heading}
  • 2010: ${Target.Speed}
  • 2011: ${Target.ID}

misc

  • 3000: ${Zone}
  • 3001: ---
  • 3002: ${Me.Bound}
  • 3003: ${Time.Time24}
  • 3004: ${Time.Hour}
  • 3005: ${Time.Minute}
  • 3006: ${Time.Second}
  • 3007: ${Time.Date}
  • 3008: ${Time.Year}
  • 3009: ${Time.Month}
  • 3010: ${Time.Day}
  • 3011: ${If[${Spawn[gm].ID},TRUE,FALSE]}
  • 3012: ${Me.FreeInventory}

custom (TooltipReference)

  • 9999: BrokenParser

Example

<Label item ="Target_Level">
    <ScreenID>TargetLevel</ScreenID>
    <EQType>2000</EQType>
    <Font>2</Font>
    <RelativePosition>true</RelativePosition>
    <Location>
       <X>24</X>
       <Y>33</Y>
    </Location>
    <Size>
       <CX>22</CX>
       <CY>14</CY>
    </Size>
    <Text>0</Text>
    <TextColor>
       <R>255</R>
       <G>255</G>
       <B>0</B>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>false</AlignCenter>
    <AlignRight>true</AlignRight>
    <AlignLeft>false</AlignLeft>
 </Label>

Using Tooltips

Tooltips can be used to add any information (even information from plugins or macros) that doesn't have a built-in EQType. You add the EQType of 9999 and then add the MQ2Data string that gives you your required information within the <TooltipReference> tags.

<EQType>9999</EQType>
 <TooltipReference>${variable}</TooltipReference>

Example

<Label item ="BW_Buff0_Duration">
    <ScreenID>Buff0Duration</ScreenID>
    <EQType>9999</EQType>
    <TooltipReference>${Me.Buff1.Duration}</TooltipReference>
    <Font>2</Font>
    <RelativePosition>true</RelativePosition>
    <Location>
       <X>23</X>
       <Y>3</Y>
    </Location>
    <Size>
       <CX>153</CX>
       <CY>14</CY>
    </Size>
    <Text></Text>
    <TextColor>
       <R>255</R>
       <G>255</G>
       <B>255</B>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>false</AlignCenter>
    <AlignRight>false</AlignRight>
 </Label>

Note about ToolTipReference

There are certain characters that are used in XML Code that are reserved. If these characters are used in the tooltipreference they will cause errors and the UI to fail loading. Most noteable of these characters is the "<" symbol. The ">" symbol can still be used for comparisons. So In cases where you would use "<", rephase the statement to use ">" instead. The "&" character also causes problems. In case where you use a "&&" in your if statements use nested ifs to get around the problem.

Example

<TooltipReference>${If[${Target.ID} && ${Target.Casting},${Target.CleanName} is casting.,]}</TooltipReference>

would become

<TooltipReference>${If[${Target.ID},${If[${Target.Casting},${Target.CleanName} is casting.,]},]}</TooltipReference>

See also