MQ2Timer - MMOBugs Wiki

Plugin Info
Name MQ2Timer
Author Koad
Link Forum Link
Commands None
Source Available Yes
Uses INI File Yes





Description

MQ2Timer This plugin allows you to create custom displayed timers based on incomming chat events.

UI XML

<?xml version = "1.0"?>
<XML ID = "EQInterfaceDefinitionLanguage">
   <Schema xmlns = "EverQuestData" xmlns:dt = "EverQuestDataTypes"/>


   <Listbox item = "TW_TimerList">
      <ScreenID>TW_TimerList</ScreenID>
      <Font>2</Font>
      <RelativePosition>true</RelativePosition>
      <AutoStretch>true</AutoStretch>
      <DrawTemplate>WDT_Inner</DrawTemplate>
      <LeftAnchorOffset>2</LeftAnchorOffset>
      <TopAnchorOffset>2</TopAnchorOffset>
      <RightAnchorOffset>2</RightAnchorOffset>
      <BottomAnchorOffset>24</BottomAnchorOffset>
      <RightAnchorToLeft>false</RightAnchorToLeft>
      <BottomAnchorToTop>false</BottomAnchorToTop>
      <TopAnchorToTop>true</TopAnchorToTop>
      <LeftAnchorToLeft>true</LeftAnchorToLeft>
      <Columns>
         <Width>150</Width>
      </Columns>
      <Style_Border>true</Style_Border>
      <Style_VScroll>true</Style_VScroll>
   </Listbox>

   <Button item = "TW_LoadButton">
      <ScreenID>TW_LoadButton</ScreenID>
      <Font>1</Font>
      <RelativePosition>true</RelativePosition>
      <AutoStretch>true</AutoStretch>
      <TopAnchorOffset>20</TopAnchorOffset>
      <LeftAnchorOffset>3</LeftAnchorOffset>
      <RightAnchorOffset>62</RightAnchorOffset>
      <BottomAnchorOffset>0</BottomAnchorOffset>
        <TopAnchorToTop>false</TopAnchorToTop>
        <TopAnchorToBottom>true</TopAnchorToBottom>
        <BottomAnchorToTop>false</BottomAnchorToTop>
        <BottomAnchorToBottom>false</BottomAnchorToBottom>
        <LeftAnchorToLeft>true</LeftAnchorToLeft>
        <LeftAnchorToRight>false</LeftAnchorToRight>
        <RightAnchorToLeft>true</RightAnchorToLeft>
        <RightAnchorToLeft>false</RightAnchorToLeft>

      <Style_Transparent>false</Style_Transparent>
      <Style_Checkbox>false</Style_Checkbox>
      <Text>Load</Text>
      <TooltipReference>Reload timer configurations from INI file.</TooltipReference>
      <TextColor>
         <R>40</R>
         <G>180</G>
         <B>40</B>
      </TextColor>
      <ButtonDrawTemplate>
         <Normal>A_BtnNormal</Normal>
         <Pressed>A_BtnPressed</Pressed>
         <Flyby>A_BtnFlyby</Flyby>
         <Disabled>A_BtnDisabled</Disabled>
         <PressedFlyby>A_BtnPressedFlyby</PressedFlyby>
      </ButtonDrawTemplate>
   </Button>

   <Button item = "TW_StopButton">
      <ScreenID>TW_StopButton</ScreenID>
      <Font>1</Font>
      <RelativePosition>true</RelativePosition>
      <AutoStretch>true</AutoStretch>
      <TopAnchorOffset>20</TopAnchorOffset>
      <LeftAnchorOffset>64</LeftAnchorOffset>
      <RightAnchorOffset>123</RightAnchorOffset>
      <BottomAnchorOffset>0</BottomAnchorOffset>
        <TopAnchorToTop>false</TopAnchorToTop>
        <TopAnchorToBottom>true</TopAnchorToBottom>
        <BottomAnchorToTop>false</BottomAnchorToTop>
        <BottomAnchorToBottom>false</BottomAnchorToBottom>
        <LeftAnchorToLeft>true</LeftAnchorToLeft>
        <LeftAnchorToRight>false</LeftAnchorToRight>
        <RightAnchorToLeft>true</RightAnchorToLeft>
        <RightAnchorToLeft>false</RightAnchorToLeft>

      <Style_Transparent>false</Style_Transparent>
      <Style_Checkbox>false</Style_Checkbox>
      <Text>Pause</Text>
      <TooltipReference>Pause timers.</TooltipReference>
      <TextColor>
         <R>40</R>
         <G>180</G>
         <B>40</B>
      </TextColor>
      <ButtonDrawTemplate>
         <Normal>A_BtnNormal</Normal>
         <Pressed>A_BtnPressed</Pressed>
         <Flyby>A_BtnFlyby</Flyby>
         <Disabled>A_BtnDisabled</Disabled>
         <PressedFlyby>A_BtnPressedFlyby</PressedFlyby>
      </ButtonDrawTemplate>
   </Button>

   <Screen item = "TimerWnd">
      <RelativePosition>false</RelativePosition>
      <Location>
         <X>50</X>
         <Y>100</Y>
      </Location>
      <Size>
         <CX>206</CX>
         <CY>242</CY>
      </Size>
      <Text>Active Timers</Text>
      <Style_VScroll>false</Style_VScroll>
      <Style_HScroll>false</Style_HScroll>
      <Style_Transparent>false</Style_Transparent>
      <!--<TooltipReference>This is the active Timers Window.</TooltipReference>-->
      <DrawTemplate>WDT_Def</DrawTemplate>
      <Style_Titlebar>true</Style_Titlebar>
      <Style_Closebox>true</Style_Closebox>
      <Style_Minimizebox>true</Style_Minimizebox>
      <Style_Border>true</Style_Border>
      <Style_Sizable>true</Style_Sizable>
      <Pieces>TW_TimerList</Pieces>
      <Pieces>TW_LoadButton</Pieces>
      <Pieces>TW_StopButton</Pieces>
   </Screen>

</XML>

Configuration

MQ2Timer is configured via the [MQ2Timer] section of the server_toonname.ini file. The default settings in the ini are are for configuring the timer window:

[MQ2Timer]
winActive=1
ChatTop=357
ChatBottom=620
ChatLeft=164
ChatRight=375
Locked=0
WindowTitle=Active Timers
Fades=1
Delay=0
Duration=500
Alpha=255
FadeToAlpha=255
BGType=1
BGTint.red=255
BGTint.green=255
BGTint.blue=255


Timer events are added to the ini formated like so:

T0_Spell=Spell Name
T0_duration=<timer duration in ticks>
T0_event="<chat event text to match>"


.ini Examples

Enchanter

T0_Spell=Forlorn Deeds 
T0_duration=35 
T0_event="slows down."

T1_Spell=Howl of Tashan 
T1_duration=140
T1_event="glances nervously about."

T2_Spell=Sleep
T2_duration=9
T2_event="falls asleep."

T3_Spell=Bliss
T3_duration=9
T3_event="jaw falls as they begin to drool."

Availability

This plugin is included with the MMOBugs Compile.