Page 1 of 4

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

Posted: Sun Aug 14, 2005 1:46 am
by Bardlover
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

Posted: Sun Aug 14, 2005 2:07 am
by TheUnholy
MQ2HUD

Posted: Sun Aug 14, 2005 11:30 am
by Bardlover
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},]} 

Posted: Sun Aug 14, 2005 12:03 pm
by KokoNutz
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

Getting "Unparsable in Calculation: 'C'

Posted: Thu Aug 18, 2005 12:33 pm
by Fammaman
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]} 

Posted: Mon Aug 22, 2005 7:06 pm
by MIG_11
EDIT: removed becuase it didn't fix the problem and used previously removed TLO.

Posted: Mon Aug 22, 2005 7:39 pm
by gimp
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.

Posted: Mon Aug 22, 2005 8:43 pm
by Night Hawk
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 ;)

Posted: Mon Aug 22, 2005 9:23 pm
by gimp
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

Posted: Tue Aug 23, 2005 1:46 am
by Night Hawk
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:

Posted: Tue Aug 23, 2005 5:56 am
by gimp
lol
not even sure if we're helpful or making people confused right now NH

Posted: Sun Aug 28, 2005 12:15 am
by DuckN'Run
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: :(

Posted: Thu Sep 08, 2005 5:34 pm
by WizeOne
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)

Posted: Wed Sep 14, 2005 3:10 pm
by KokoNutz
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

Posted: Wed Sep 14, 2005 7:11 pm
by DigitalMocking
It wasn't really Me.Bound that was part of the exploit, but another part of that structure and offset.