Difference between revisions of "MQ2Labels" - MMOBugs Wiki

 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
{{Pluginbox
 
{{Pluginbox
 
| name = MQ2Labels
 
| name = MQ2Labels
| author=[[User: Baby Jesus ]]
+
| author=[http://www.macroquest2.com MQ2 Devs]
| link = [http://www.mmobugs.com/wiki Wiki Link]
+
| link = [http://www.macroquest2.com/wiki MQ2]
 
| commands=None
 
| commands=None
 
| source = Yes
 
| source = Yes
 
| usesini = No
 
| usesini = No
 
}}
 
}}
 +
 +
  
  
Line 18: Line 20:
 
==MQ2 EQTypes==
 
==MQ2 EQTypes==
  
      EQType: MQ2Data
+
    '''EQType: MQ2Data'''
 
     * 1000: ${Me.CurrentMana}
 
     * 1000: ${Me.CurrentMana}
 
     * 1001: ${Me.MaxMana}
 
     * 1001: ${Me.MaxMana}
Line 35: Line 37:
 
     * 1014: ${Me.SilverBank}
 
     * 1014: ${Me.SilverBank}
 
     * 1015: ${Me.CopperBank}  
 
     * 1015: ${Me.CopperBank}  
 
 
 
     * 2000: ${Target.Level}
 
     * 2000: ${Target.Level}
 
     * 2001: ${Target.Class}
 
     * 2001: ${Target.Class}
Line 49: Line 49:
 
     * 2010: ${Target.Speed}
 
     * 2010: ${Target.Speed}
 
     * 2011: ${Target.ID}  
 
     * 2011: ${Target.ID}  
 
 
 
     * 3000: ${Zone}
 
     * 3000: ${Zone}
 
     * 3001: none
 
     * 3001: none
Line 65: Line 63:
 
     * 3012: ${Me.FreeInventory}
 
     * 3012: ${Me.FreeInventory}
  
==Example XML==
+
==Example UI XML==
 
<pre><Label item ="Target_Level">
 
<pre><Label item ="Target_Level">
 
     <ScreenID>TargetLevel</ScreenID>
 
     <ScreenID>TargetLevel</ScreenID>
Line 89: Line 87:
 
     <AlignRight>true</AlignRight>
 
     <AlignRight>true</AlignRight>
 
     <AlignLeft>false</AlignLeft>
 
     <AlignLeft>false</AlignLeft>
 +
</Label></pre>
 +
 +
==Creating new EQTypes with ToolTip==
 +
 +
If there is not a direct EQType available you can use the <EQType>9999</EQType> tag to specify a new EQType and then code in your MQ2Data string.
 +
 +
<pre><EQType>9999</EQType>
 +
<TooltipReference>${Cast.Ready[myitem]}</TooltipReference></pre>
 +
 +
==Example UI ToolTip XML==
 +
<pre> <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></pre>
 
  </Label></pre>
  

Latest revision as of 12:50, 8 July 2010

Plugin Info
Name MQ2Labels
Author MQ2 Devs
Link MQ2
Commands None
Source Available Yes
Uses INI File No



Description

This plugin allows you to use MQ2Data within your Custom EQ 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 within your custom UI.


MQ2 EQTypes

    EQType: MQ2Data
   * 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 UI XML

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

Creating new EQTypes with ToolTip

If there is not a direct EQType available you can use the <EQType>9999</EQType> tag to specify a new EQType and then code in your MQ2Data string.

<EQType>9999</EQType>
<TooltipReference>${Cast.Ready[myitem]}</TooltipReference>

Example UI ToolTip XML

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

Availability

This plugin is included with the MMOBugs Compile.