# MQ2Labels

## Description

This plugin allows you to use MQ2Data within your EQ UI.

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

## MQ EQTypes

* **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}

\* **2000:** ${Target.Level}

* **2001:** ${Target.Class}
* **2002:** ${Target.Race}
* **2003:** ${Target.Distance}
* **2004:** *none*
* **2005:** ${Target.State}
* **2006:** ${Target.X}
* **2007:** ${Target.Y}
* **2008:** ${Target.Z}
* **2009:** ${Target.Heading}
* **2010:** ${Target.Speed}
* **2011:** ${Target.ID}

\* **3000:** ${Zone}

* **3001:** *none*
* **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}

### Example

TargetLevel2000 2true243322140255255 **0**truefalsetruefalse

## 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

tags.\`9999\`\`${variable}\`

### Example

Buff0Duration9999${Me.Buff1.Duration} 2true23315314255255 **255**truefalsefalse

### 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 will fail to load. The most notable 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 the case where you use a "&&" in your if statements use nested ifs to get around the problem.

#### Example

${If\[${Target.ID} && ${Target.Casting},${Target.CleanName} is casting.,]}

would become

${If\[${Target.ID},${If\[${Target.Casting},${Target.CleanName} is casting.,]},]}

## See Also

* [Plugins](broken://pages/-Me4I94WGlOtA0pQ_0oB)
* [Custom UIs](/macroquest/documentation/custom-uis.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/plugins/core-plugins/mq2labels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
