Difference between revisions of "MQ2Labels" - MMOBugs Wiki

 
(2 intermediate revisions 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=/command
+
| commands=None
 
| source = Yes
 
| source = Yes
| usesini = Yes
+
| usesini = No
 
}}
 
}}
 +
 +
 +
 +
 
==Description==
 
==Description==
This plugin allows you to use MQ2Data within your EQ UI.
+
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.
 
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.
+
If there is not suitable EQType for your use, you can use ToolTips to display custom information within your custom UI.
 +
 
 +
 
 
==MQ2 EQTypes==
 
==MQ2 EQTypes==
  
     * 1000: ${Me.CurrentMana}
+
    '''EQType: MQ2Data'''
 +
     * 1000: ${Me.CurrentMana}
 
     * 1001: ${Me.MaxMana}
 
     * 1001: ${Me.MaxMana}
 
     * 1002: ${Me.State}
 
     * 1002: ${Me.State}
Line 30: 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 44: Line 49:
 
     * 2010: ${Target.Speed}
 
     * 2010: ${Target.Speed}
 
     * 2011: ${Target.ID}  
 
     * 2011: ${Target.ID}  
 
 
 
     * 3000: ${Zone}
 
     * 3000: ${Zone}
 
     * 3001: none
 
     * 3001: none
Line 59: Line 62:
 
     * 3011: ${If[${Spawn[gm].ID},TRUE,FALSE]}
 
     * 3011: ${If[${Spawn[gm].ID},TRUE,FALSE]}
 
     * 3012: ${Me.FreeInventory}
 
     * 3012: ${Me.FreeInventory}
 +
 +
==Example UI XML==
 +
<pre><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></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>
  
 
==Availability==
 
==Availability==
  
 
This plugin is included with the MMOBugs Compile.
 
This plugin is included with the MMOBugs Compile.

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.