Saw a UI I loved but not sure which, anyone help? Pic includ

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

Moderator: MacroQuest Developers

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

Saw a UI I loved but not sure which, anyone help? Pic includ

Post by Bardlover » Sun Aug 14, 2005 1:46 am

Saw this somewhere I really like the features of this where I can see spawns and Locs, saw a couple like UI for all classes, but the base file was missing and just had a bunch of follow up edits without supplying the foundation. Appreciate any hints.

Image

User avatar
TheUnholy
a hill giant
a hill giant
Posts: 269
Joined: Wed Mar 03, 2004 11:59 pm

Post by TheUnholy » Sun Aug 14, 2005 2:07 am

MQ2HUD

Bardlover
a lesser mummy
a lesser mummy
Posts: 52
Joined: Sun Oct 10, 2004 5:32 pm

Post by Bardlover » Sun Aug 14, 2005 11:30 am

Thank you, and found the Ini file for it too once we knew what we were looking for.

Code: Select all

[Elements] 
   GMIndicator=3,415,38,255,255,255,GM - ${NearestSpawn[GM]} 
      GameTime=3,415,50,255,255,255,GameTime: ${GameTime.Hour}:${GameTime.Minute} - ${If[${String[${GameTime.Night}].Equal["TRUE"]},Night,Day]} 
         Speed=3,415,62,0,240,0,Speed - ${Int[${Me.Speed}]} 
      BankCash=3,415,74,240,127,0,Bank - ${Me.PlatinumShared} Platinum 
      LastTell=3,415,86,215,0,215,LastTell - ${If[${MacroQuest.LastTell.NotEqual["NULL"]},${MacroQuest.LastTell},]} 
 TributePoints=3,415,98,0,240,0,Tribute - ${Me.CurrentFavor} 
            XP=3,415,110,200,200,200,XP - ${Float[${Me.PctExp}]}% into ${Me.Level} 
          AAXP=3,415,122,240,240,0,A.A. XP - ${Float[${Me.PctAAExp}]}%         Points Available: ${Me.AAPoints}        Spent:${Me.AAPointsSpent}      Total: ${Math.Calc[${Me.AAPoints} + ${Me.AAPointsSpent}]} 
          HP=3,415,134,100,255,100,Current HPs: ${Me.CurrentHPs} of ${Me.MaxHPs}
         Mana=3,415,146,100,255,100,Current Mana: ${Me.CurrentMana} of ${Me.MaxMana}
    Macro=3,415,160,215,0,215,Macro Running: ${Macro.Name}
**Target Loc**=3,900,178,150,250,150,${If[${Target.ID},**Target Loc**  ${Target.Y}  ${Target.X}  ${Target.Z},]}  
**Me Loc**=3,900,190,150,250,150,**Me Loc** ${Me.Y}    ${Me.X}    ${Me.Z}
TargetLevel=3,415,178,255,255,255,${If[${Target.ID},${Target.Name}'s Level is ${Target.Level} - ${Target.Class} - ${Target.Race} - ${Target.PctHPs}% Health,]} 
CursorItemName=3,415,158,0,240,0,${If[${Cursor.ID},Cursor - ${Cursor},]} 
  CursorFollow=7,40,40,0,240,0,${If[${Cursor.ID},${Cursor},]} 
          Raid=3,415,170,255,0,0,${If[${Raid.Members}>0,In Raid - ${Raid.Members},]}   ${If[${Raid.Members}>0,Raid Level - ${Raid.AverageLevel},]} 
        Hunger=3,575,38,255,255,255,Hunger - ${Me.Hunger}/6000 
        Thirst=3,575,50,255,255,255,Thirst - ${Me.Thirst}/6000 
  
            NS=3,700,38,255,0,0,~~~~ Named Spawns ~~~~ 
        Spawn1=3,700,56,255,255,0,#1    ${If[${NearestSpawn[1,npc #].Name.NotEqual["NULL"]},${NearestSpawn[1,npc #].Level},]} - ${If[${NearestSpawn[1,npc #].Name.NotEqual["NULL"]},${NearestSpawn[1,npc #].Name},]} 
        Spawn2=3,700,68,255,255,0,#2    ${If[${NearestSpawn[2,npc #].Name.NotEqual["NULL"]},${NearestSpawn[2,npc #].Level},]} - ${If[${NearestSpawn[2,npc #].Name.NotEqual["NULL"]},${NearestSpawn[2,npc #].Name},]} 
        Spawn3=3,700,80,255,255,0,#3    ${If[${NearestSpawn[3,npc #].Name.NotEqual["NULL"]},${NearestSpawn[3,npc #].Level},]} - ${If[${NearestSpawn[3,npc #].Name.NotEqual["NULL"]},${NearestSpawn[3,npc #].Name},]} 
        Spawn4=3,700,92,255,255,0,#4    ${If[${NearestSpawn[4,npc #].Name.NotEqual["NULL"]},${NearestSpawn[4,npc #].Level},]} - ${If[${NearestSpawn[4,npc #].Name.NotEqual["NULL"]},${NearestSpawn[4,npc #].Name},]} 
      
     Direction=3,720,200,200,150,0,${If[${Target.ID}==NULL,"",${If[${Math.Calc[((${Me.Heading.Degrees}-${Target.HeadingTo.Degrees}+375)%360)*-1]}>-30,"   ^^^",${If[${Math.Calc[((${Me.Heading.Degrees}-${Target.HeadingTo.Degrees}+360)%360)*-1]}>-180,"<--","      -->"]}]}]} 
      ZoneName=3,900,38,255,255,0,Zone - ${Zone} 
 ShortZoneName=3,900,50,255,255,255,Short Zone Name - ${Zone.ShortName} 
 Bound=3,900,62,200,160,225,Bound:
 GroupLeader=3,900,74,255,255,255,${If[(${Group}>0),GroupLeader ${Group.Leader},]} 

KokoNutz
orc pawn
orc pawn
Posts: 20
Joined: Sat Aug 13, 2005 4:59 pm

Post by KokoNutz » Sun Aug 14, 2005 12:03 pm

Sweet mother of Christ, who wrote that crap?

I cleaned it up for you and since you're gonna ask anyway, I took out the ${String} TLO calls.

Code: Select all

[Elements]
   GMIndicator=3,415,38,255,255,255,GM - ${NearestSpawn[GM]}
      GameTime=3,415,50,255,255,255,GameTime: ${GameTime.Hour}:${GameTime.Minute} - ${If[${GameTime.Night},Night,Day]}
         Speed=3,415,62,0,240,0,Speed - ${Int[${Me.Speed}]}
      BankCash=3,415,74,240,127,0,Bank - ${Me.PlatinumShared} Platinum
      LastTell=3,415,86,215,0,215,LastTell - ${If[${MacroQuest.LastTell},${MacroQuest.LastTell},]}
 TributePoints=3,415,98,0,240,0,Tribute - ${Me.CurrentFavor}
            XP=3,415,110,200,200,200,XP - ${Float[${Me.PctExp}]}% into ${Me.Level}
          AAXP=3,415,122,240,240,0,A.A. XP - ${Float[${Me.PctAAExp}]}%         Points Available: ${Me.AAPoints}        Spent:${Me.AAPointsSpent}      Total: ${Math.Calc[${Me.AAPoints} + ${Me.AAPointsSpent}]}
          HP=3,415,134,100,255,100,Current HPs: ${Me.CurrentHPs} of ${Me.MaxHPs}
         Mana=3,415,146,100,255,100,Current Mana: ${Me.CurrentMana} of ${Me.MaxMana}
    Macro=3,415,160,215,0,215,Macro Running: ${Macro.Name}
**Target Loc**=3,900,178,150,250,150,${If[${Target.ID},**Target Loc**  ${Target.Y}  ${Target.X}  ${Target.Z},]} 
**Me Loc**=3,900,190,150,250,150,**Me Loc** ${Me.Y}    ${Me.X}    ${Me.Z}
TargetLevel=3,415,178,255,255,255,${If[${Target.ID},${Target.Name}'s Level is ${Target.Level} - ${Target.Class} - ${Target.Race} - ${Target.PctHPs}% Health,]}
CursorItemName=3,415,158,0,240,0,${If[${Cursor.ID},Cursor - ${Cursor},]}
  CursorFollow=7,40,40,0,240,0,${If[${Cursor.ID},${Cursor},]}
          Raid=3,415,170,255,0,0,${If[${Raid.Members}>0,In Raid - ${Raid.Members},]}   ${If[${Raid.Members}>0,Raid Level - ${Raid.AverageLevel},]}
        Hunger=3,575,38,255,255,255,Hunger - ${Me.Hunger}/6000
        Thirst=3,575,50,255,255,255,Thirst - ${Me.Thirst}/6000
 
            NS=3,700,38,255,0,0,~~~~ Named Spawns ~~~~
        Spawn1=3,700,56,255,255,0,#1    ${If[${NearestSpawn[1,npc #]},${NearestSpawn[1,npc #].Level},]} - ${If[${NearestSpawn[1,npc #]},${NearestSpawn[1,npc #].Name},]}
        Spawn2=3,700,68,255,255,0,#2    ${If[${NearestSpawn[2,npc #]},${NearestSpawn[2,npc #].Level},]} - ${If[${NearestSpawn[2,npc #]},${NearestSpawn[2,npc #].Name},]}
        Spawn3=3,700,80,255,255,0,#3    ${If[${NearestSpawn[3,npc #]},${NearestSpawn[3,npc #].Level},]} - ${If[${NearestSpawn[3,npc #]},${NearestSpawn[3,npc #].Name},]}
        Spawn4=3,700,92,255,255,0,#4    ${If[${NearestSpawn[4,npc #]},${NearestSpawn[4,npc #].Level},]} - ${If[${NearestSpawn[4,npc #]},${NearestSpawn[4,npc #].Name},]}
     
     Direction=3,720,200,200,150,0,${If[${Target.ID}==NULL,"",${If[${Math.Calc[((${Me.Heading.Degrees}-${Target.HeadingTo.Degrees}+375)%360)*-1]}>-30,"   ^^^",${If[${Math.Calc[((${Me.Heading.Degrees}-${Target.HeadingTo.Degrees}+360)%360)*-1]}>-180,"<--","      -->"]}]}]}
      ZoneName=3,900,38,255,255,0,Zone - ${Zone}
 ShortZoneName=3,900,50,255,255,255,Short Zone Name - ${Zone.ShortName}
 Bound=3,900,62,200,160,225,Bound:
 GroupLeader=3,900,74,255,255,255,${If[(${Group}>0),GroupLeader ${Group.Leader},]}
-KoKo

Fammaman
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sun Jul 03, 2005 5:03 pm
Location: Norway
Contact:

Getting "Unparsable in Calculation: 'C'

Post by Fammaman » Thu Aug 18, 2005 12:33 pm

Have looked at the various calculations in this, and really can't determine what is specifically wrong.

I THINK It's this line here:

Code: Select all

      GameTime=3,415,50,255,255,255,GameTime: ${GameTime.Hour}:${GameTime.Minute} - ${If[${GameTime.Night},Night,Day]} 

MIG_11
orc pawn
orc pawn
Posts: 25
Joined: Thu Feb 10, 2005 9:10 pm

Post by MIG_11 » Mon Aug 22, 2005 7:06 pm

EDIT: removed becuase it didn't fix the problem and used previously removed TLO.
Last edited by MIG_11 on Wed Aug 24, 2005 11:14 pm, edited 1 time in total.

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Post by gimp » Mon Aug 22, 2005 7:39 pm

Fammaman: the following line triggers your error message:

Code: Select all

LastTell=3,415,86,215,0,215,LastTell - ${If[${MacroQuest.LastTell},${MacroQuest.LastTell},]}
because ${MacroQuest.LastTell} is a string containing the name of last player you recieved a tell from.

change it to:

Code: Select all

LastTell=3,415,86,215,0,215,LastTell - ${If[${MacroQuest.LastTell[b].Length[/b]},${MacroQuest.LastTell},]}
should work, because String.Length is a integer & can be used in a ${If[]} comparsion

MIG_11: if that works for you it would be about time to update to a current MQ. you are using ${String} incorrectly, and unnessecary. ${GameTime.Night} is a boolean and there is no reason to convert it to a string to check it's value.

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Mon Aug 22, 2005 8:43 pm

I'm pretty sure you can just get rid of the If statement if you wanted to.

${MacroQuest.LastTell}, at defualt, just displays a dash "-". But up to you ;)

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Post by gimp » Mon Aug 22, 2005 9:23 pm

okay, ignore my previous post then, i wasn't aware that LastTell contained data at all times.

Code: Select all

LastTell=3,415,86,215,0,215,LastTell - ${MacroQuest.LastTell}
would be the simplest version of them all then, as night hawk says

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Tue Aug 23, 2005 1:46 am

Nevermind, I was mistaken. Was just working off memory. Still need the If statement.

Code: Select all

- ${If[${MacroQuest.LastTell.NotEqual["NULL"]},${MacroQuest.LastTell},]}
My line just had a dash at the begining of it :roll:

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Post by gimp » Tue Aug 23, 2005 5:56 am

lol
not even sure if we're helpful or making people confused right now NH

DuckN'Run
orc pawn
orc pawn
Posts: 21
Joined: Fri Mar 04, 2005 5:29 pm
Contact:

Post by DuckN'Run » Sun Aug 28, 2005 12:15 am

definatly making me confused...... but one day I shall figure this stuff out and then I will know wth you guys are saying,lol.

:back to trying to fix my jacked up HUD: :(

WizeOne
a hill giant
a hill giant
Posts: 207
Joined: Tue Jul 12, 2005 12:36 pm

Post by WizeOne » Thu Sep 08, 2005 5:34 pm

Bound=3,900,62,200,160,225,Bound:

how do you get it to display your bind location(zone)?

total MQ noob here. starting small by playing with hud..8)

KokoNutz
orc pawn
orc pawn
Posts: 20
Joined: Sat Aug 13, 2005 4:59 pm

Post by KokoNutz » Wed Sep 14, 2005 3:10 pm

You can't... someone removed that element because it was being used for some sort of exploit... I have absolutely no CLUE what good such a variable could be for an exploit, but whatever... I can just set ${Bound} to the zone I am bound in if I ever needed that for some reason, which I wouldn't... lol

-Koko

DigitalMocking
a grimling bloodguard
a grimling bloodguard
Posts: 620
Joined: Mon Apr 04, 2005 5:53 pm

Post by DigitalMocking » Wed Sep 14, 2005 7:11 pm

It wasn't really Me.Bound that was part of the exploit, but another part of that structure and offset.