My Hud - Various MQ2 Info Displayed.

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

My Hud - Various MQ2 Info Displayed.

Post by Fuergrissa » Mon May 10, 2004 10:30 am

Ok my Huds Display, Shows Title and result on the top left of screen.

Gametime (regardless of zone) also a True/False indicator if Night
Is GM in Zone (Not that accurate)
Cursor Item name (Lax's Default guide)
Speed of your character
Name of person who sent Last tell
How much PLAT you have in the BANK
Any Named mobs in zone (#) targets anything with a # before its name (Pets as well)
Total LDoN points to spend (Not working yet waiting for Struct)
Where you are currently Bound
Current Group Leadership XP Total
Name of Currently running Macro.

Code: Select all

[Elements] 
     GameTime=3,5,35,255,255,255,GameTime - ${GameTime} - Night=${GameTime.Night}
     GMIndicator=3,5,45,255,0,0,GM - ${Spawn[gm]}
     CursorItemName=7,-15,-15,255,255,255,${If[${Cursor.ID},${Cursor},]}
     Speed=3,5,55,255,255,255,Speed - ${Int[${Me.Speed}]}
     LastTell=3,5,65,255,255,255,LastTell - ${If[${MacroQuest.LastTell.NotEqual["NULL"]},${MacroQuest.LastTell},]}
     BankCash=3,5,75,255,255,255,Bank - ${Me.PlatinumBank} Platinum
     Named=3,5,85,255,255,255,Named - ${Spawn[#]}
     LDoNPoints=3,5,95,255,255,255,LDoN Points - ${Int[${Me.LDoNPoints}]}
     Bound=3,5,105,255,255,255,Bound in ${Me.Bound}
     GroupXP=3,5,115,255,255,255,Group LeaderXP - ${Float[${Me.PctGroupLeaderExp}]}%
     Macro=3,5,125,255,255,255,Macro - ${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]}

Draimen
a lesser mummy
a lesser mummy
Posts: 69
Joined: Sun Jan 25, 2004 3:13 pm

Post by Draimen » Mon May 10, 2004 2:51 pm

I use a similar set up. Here is my code for Day/Night and GM.

Code: Select all

Night =3,212,70,255,255,0,${If[${String[${GameTime.Night}].Equal["TRUE"]},Night Time,]}${If[${String[${GameTime.Night}].NotEqual["TRUE"]},Day Time,]}

Code: Select all

GM1 =3,212,100,255,0,0,${NearestSpawn[1,GM]}

GM2 =3,212,115,255,0,0,${NearestSpawn[2,GM]}

GM3 =3,212,130,255,0,0,${NearestSpawn[3,GM]}
MGB Ready/Timer

Code: Select all

MGB =3,212,85,255,255,0,${If[${String[${Me.AltAbilityReady[Mass Group Buff]}].Equal["TRUE"]},MGB Ready,]}${If[${String[${Me.AltAbilityReady[Mass Group Buff]}].Equal["FALSE"]},MGB Not Ready - ${Me.AltAbilityTimer[Mass Group Buff]},]}
Raid # and avg lvl

Code: Select all

Raid =3,180,770,255,0,0,${If[${Raid.Members}>0,In Raid - ${Raid.Members},]}    ${If[${Raid.Members}>0,Raid Level - ${Raid.AverageLevel},]}

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Mon May 10, 2004 3:25 pm

I'm interested in this. Where would I place this code, and how does it show. Also, can it be moved around? (without changing all the X/Y variables)

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Mon May 10, 2004 3:37 pm

For most of your questiosn everything is listed in Changes.Txt for the rescent release.

For the question "Can these be moved without changing..." the answer is not at this time. Lax has some ingame commands to change the mq2hud.ini on-the-fly but they don't exist at this time.

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Mon May 10, 2004 3:58 pm

just cut and paste my post in the "code" section into a file called MQ2hud.ini and place that ini in your release folder, but as Preocts says it is all documented in the Announcement thread and also in changes.txt.
- New Plugin MQ2HUD. Edit MQ2HUD.INI to add custom elements to your HUD. You pick the spot
on the screen, the color, and what gets displayed. Every element gets parsed for MQ2Data
each time it is displayed.
Example MQ2HUD.INI:
[Elements]
TargetInfo=3,5,35,255,255,255,${Target}
GMIndicator=3,5,45,0,0,255,${Spawn[gm]}
CursorItemName=7,-15,-15,255,255,255,${If[${Cursor.ID},${Cursor},]}
ClickMeForFun=6,-25,-25,255,255,255,${If[!${Cursor.ID},click me,]}
The order is TYPE,X,Y,RED,GREEN,BLUE,TEXT.
Type is currently any combination of the following:
1 - Display in non-full screen mode
2 - Display in full screen mode ("f10 mode")
4 - X,Y is based on cursor location
e.g. 1+2+4=7. 7 means all 3 of the above. 6 means 2 and 4. 3 means 1 and 2. Just add them
together. There is no way to end up with a number that could mean two different
combinations.
Red, Green and Blue are each from 0 to 255. 255,255,255 is white, 0,0,0 is black.
** There is currently not a command to add or remove these from inside the game. One will
probably be added soon. The plugin will automatically re-load the list from the .ini
when you modify and save the .ini.
Last edited by Fuergrissa on Thu May 13, 2004 8:59 am, edited 1 time in total.

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Mon May 10, 2004 4:08 pm

Ah thank you. I totally missed that in the changes, because I 'was' looking for it :)

Pheph
a hill giant
a hill giant
Posts: 196
Joined: Thu Oct 09, 2003 8:15 pm

Post by Pheph » Fri May 14, 2004 9:54 pm

Draimen wrote: MGB Ready/Timer

Code: Select all

MGB =3,212,85,255,255,0,${If[${String[${Me.AltAbilityReady[Mass Group Buff]}].Equal["TRUE"]},MGB Ready,]}${If[${String[${Me.AltAbilityReady[Mass Group Buff]}].Equal["FALSE"]},MGB Not Ready - ${Me.AltAbilityTimer[Mass Group Buff]},]}
Why not just:

Code: Select all

MGB=3,212,85,255,255,255,${If[${String[${Me.AltAbilityReady[Mass Group Buff]}].Equal["TRUE"]},MGB Not Ready - ${Me.AltAbilityTimer[Mass Group Buff]}]}

Pheph
a hill giant
a hill giant
Posts: 196
Joined: Thu Oct 09, 2003 8:15 pm

Post by Pheph » Sat May 15, 2004 10:46 am

Code: Select all

[Elements] 
     GameTime=3,945,205,255,255,255,GameTime: ${GameTime.Hour}:${GameTime.Minute} - ${If[${String[${GameTime.Night}].Equal["TRUE"]},Night,Day]}
     Time=3,945,215,255,255,255,Time: ${Time.Hour}:${Time.Minute}
     Speed=3,945,225,255,255,255,Speed - ${Int[${Me.Speed}]} 
     LastTell=3,945,235,255,255,255,LastTell - ${If[${MacroQuest.LastTell.NotEqual["NULL"]},${MacroQuest.LastTell},]} 
     Named=3,945,245,255,255,255,Named - ${Spawn[#]} 
     TributePoints=3,945,255,255,255,255,Tribute - ${Me.CurrentFavor}
     Bound=3,945,265,255,255,255,Bound in ${Me.Bound} 
     GroupXP=3,945,275,255,255,255,Group LeaderXP - ${Float[${Me.PctGroupLeaderExp}]}% 
     Macro=3,945,285,255,255,255,Macro - ${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]} 
     MGB=3,945,295,255,255,255,${If[${String[${Me.AltAbilityReady[Mass Group Buff]}].Equal["TRUE"]},MGB Ready,MGB available in ${Me.AltAbilityTimer[Mass Group Buff].TimeHMS}]}
Took some pieces from here and there and tweaked them to fit my needs.
You'll more than likely need to change the coordinates as I have them next to a window on the righthand side of my screen.

Basically just some tweaks on some of the if-statements and stuff like that, plus utilizing the new way of showing time left on AA-timers that Lax kindly implemented on my request. (AltAbilityTimer now returns a ticks-element so you can format it better).

I also just put in CurrentFavor instead of LDoN-points. LDoN-points is static enough that I don't need to be able to see it all the time, whereas CurrentFavor will change every 10 minutes or so if you're using favors.

Klodderik
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon May 17, 2004 8:00 am

Post by Klodderik » Fri May 21, 2004 2:35 am

I like your idea Pheph - gonna try it later.
What about adding more than just MGB? Like Radiant Cure or other often used aa's? (I'm using Celestial Regen alot!)

Gabby
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Mar 13, 2004 10:35 am

Post by Gabby » Fri May 21, 2004 11:49 am

Just a heads up for those useing the spawn info in their HUDs

If you replace

Code: Select all

${Spawn[#]}
With

Code: Select all

${Spawn[NPC #]}
You will find it will filter out the Warders and Familiars of PCs

Example of my hud
Spawn1-4 Will show the nearest NPC, with # in its ID, in order from closest to farthest in the current zone

Code: Select all

     Night =3,955,245,255,255,0,${If[${String[${GameTime.Night}].Equal["TRUE"]},Night Time,]}${If[${String[${GameTime.Night}].NotEqual["TRUE"]},Day Time,]}
     Raid =3,955,265,255,0,0,${If[${Raid.Members}>0,In Raid - ${Raid.Members},]}    ${If[${Raid.Members}>0,Raid Level - ${Raid.AverageLevel},]}
     Spawn1=3,955,275,255,255,0,${If[${NearestSpawn[1,npc #].Name.NotEqual["NULL"]},${NearestSpawn[1,npc #].Level},]} - ${If[${NearestSpawn[1,npc #].Name.NotEqual["NULL"]},${NearestSpawn[1,npc #].Name},]}
     Spawn2=3,955,285,255,255,0,${If[${NearestSpawn[2,npc #].Name.NotEqual["NULL"]},${NearestSpawn[2,npc #].Level},]} - ${If[${NearestSpawn[2,npc #].Name.NotEqual["NULL"]},${NearestSpawn[2,npc #].Name},]}
     Spawn3=3,955,295,255,255,0,${If[${NearestSpawn[3,npc #].Name.NotEqual["NULL"]},${NearestSpawn[3,npc #].Level},]} - ${If[${NearestSpawn[3,npc #].Name.NotEqual["NULL"]},${NearestSpawn[3,npc #].Name},]}
     Spawn4=3,955,305,255,255,0,${If[${NearestSpawn[4,npc #].Name.NotEqual["NULL"]},${NearestSpawn[4,npc #].Level},]} - ${If[${NearestSpawn[4,npc #].Name.NotEqual["NULL"]},${NearestSpawn[4,npc #].Name},]}
     GroupLeader =3,955,325,180,180,180,Group Leader : ${GroupLeader.Name}
     GroupMember1 =3,955,335,255,234,8, ${If[${Group[1].Name.NotEqual["NULL"]},${Group[1]},]} - ${If[${Group[1].Name.NotEqual["NULL"]},${Group[1].Level},]} - ${If[${Group[1].Name.NotEqual["NULL"]},${Group[1].Class},]}
     GroupMember2 =3,955,345,255,234,8, ${If[${Group[2].Name.NotEqual["NULL"]},${Group[2]},]} - ${If[${Group[2].Name.NotEqual["NULL"]},${Group[2].Level},]} - ${If[${Group[2].Name.NotEqual["NULL"]},${Group[2].Class},]}
     GroupMember3 =3,955,355,255,234,8, ${If[${Group[3].Name.NotEqual["NULL"]},${Group[3]},]} - ${If[${Group[3].Name.NotEqual["NULL"]},${Group[3].Level},]} - ${If[${Group[3].Name.NotEqual["NULL"]},${Group[3].Class},]}
     GroupMember4 =3,955,365,255,234,8, ${If[${Group[4].Name.NotEqual["NULL"]},${Group[4]},]} - ${If[${Group[4].Name.NotEqual["NULL"]},${Group[4].Level},]} - ${If[${Group[4].Name.NotEqual["NULL"]},${Group[4].Class},]}
     GroupMember5 =3,955,375,255,234,8, ${If[${Group[5].Name.NotEqual["NULL"]},${Group[5]},]} - ${If[${Group[5].Name.NotEqual["NULL"]},${Group[5].Level},]} - ${If[${Group[5].Name.NotEqual["NULL"]},${Group[5].Class},]}
     Bound=3,955,385,255,255,255,Bound in ${Me.Bound}
     Macro=3,955,395,255,255,255,Macro - ${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]}
     TributePoints=3,935,657,255,255,255,Tribute - ${Me.CurrentFavor}

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Fri May 21, 2004 3:00 pm

Some stuff from my Hud. Yes, others have this, but mine is positioned to show the results at the same spot as other (vertical line up), and it's color coded based on the result.

Code: Select all

     GMInd1=3,5,65,255,0,0,${If[${Spawn[gm].ID},GM,]}
     GMInd2=3,5,65,0,255,0,${If[${Spawn[gm].ID},,GM]}
     GMInd3=3,90,65,255,0,0,${If[${Spawn[gm].ID},- YES,]}
     GMInd4=3,90,65,0,255,0,${If[${Spawn[gm].ID},,- NO]}

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Mon May 24, 2004 9:43 pm

Created MQ2HUD.ini in my /Release folder

with:

Code: Select all

[Elements]
     GMIndicator=3,5,45,255,0,0,GM - ${NearestSpawn[GM]}
     Macro=3,5,55,255,255,255,Macro - ${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]}
     Speed=3,5,65,255,255,255,Speed - ${Int[${Me.Speed}]}
     LastTell=3,5,75,255,255,255,LastTell - ${If[${MacroQuest.LastTell.NotEqual["NULL"]},${MacroQuest.LastTell},]}
     BankCash=3,5,85,255,255,255,Bank - ${Me.PlatinumBank} Platinum
     Named=3,5,95,255,255,255,Named - ${Spawn[npc #]}
     LDoNPoints=3,5,105,255,255,255,LDoN Points - ${Int[${Me.LDoNPoints}]}
     Bound=3,5,115,255,255,255,Bound in ${Me.Bound}
     Raid =3,5,125,255,0,0,${If[${Raid.Members}>0,In Raid - ${Raid.Members},]}   ${If[${Raid.Members}>0,Raid Level - ${Raid.AverageLevel},]}
     MGB=3,5,135,255,255,255,${If[${String[${Me.AltAbilityReady[Mass Group Buff]}].Equal["TRUE"]},MGB Ready,MGB available in ${Me.AltAbilityTimer[Mass Group Buff].TimeHMS}]}
     CursorItemName=7,-15,-15,255,255,255,${If[${Cursor.ID},${Cursor},]}
Nothing shows :?

Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Mon May 24, 2004 9:48 pm

Code: Select all

/plugin mq2hud

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Mon May 24, 2004 9:52 pm

Already did that :roll:

Still nothing...

Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Mon May 24, 2004 9:57 pm

Did you F10 to see if its hidden under something?