*UPDATED* SOES MQ2ed - (01-26-2005)

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

Moderator: MacroQuest Developers

User avatar
SukMage
a ghoul
a ghoul
Posts: 88
Joined: Fri Jun 04, 2004 5:08 pm

Post by SukMage » Sat Aug 14, 2004 12:58 am

Very nice. That'd make a great addition (and I too enlarged the spell names. I'm about half blind and /chatfont 4 or 5 my windows anyway). :)

User avatar
Aarrow
a lesser mummy
a lesser mummy
Posts: 30
Joined: Thu Aug 12, 2004 2:38 pm

HUD

Post by Aarrow » Sat Aug 14, 2004 1:47 am

Uploaded the Spell Window file to my site, you can download it here.
Thought I might post my HUD here also.
Download it here.
Image
Here's the code if you don't want to download it, or just want to take certain parts out:

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}]}%
          AAXP=3,415,122,240,240,0,A.A. XP - ${Float[${Me.PctAAExp}]}%
       GroupXP=3,415,134,0,255,255,Group Leader XP - ${Float[${Me.PctGroupLeaderExp}]}%
         Bound=3,415,146,100,255,100,Bound in ${Me.Bound}
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
  AttackSpeed1=3,575,62,255,255,0,${If[${Me.AttackSpeed}>100,Haste - ${Int[${Math.Calc[${Me.AttackSpeed}-100]}]}% (${Me.AttackSpeed}),]}
  AttackSpeed2=3,575,62,255,255,255,${If[${Me.AttackSpeed}==0,Haste - ${Int[${Me.AttackSpeed}]}%,]}
  AttackSpeed3=3,575,62,255,0,0,${If[${Math.Calc[${Me.AttackSpeed}*-1]}>-100,Haste - ${Int[${Math.Calc[${Me.AttackSpeed}]}]}% (${Me.AttackSpeed}),]}
            NS=3,720,38,255,0,0,~~~~ Named Spawns ~~~~
        Spawn1=3,720,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,720,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,720,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,720,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},]}
        Spawn5=3,720,104,255,255,0,#5    ${If[${NearestSpawn[5,npc #].Name.NotEqual["NULL"]},${NearestSpawn[5,npc #].Level},]} - ${If[${NearestSpawn[5,npc #].Name.NotEqual["NULL"]},${NearestSpawn[5,npc #].Name},]}
        Spawn6=3,720,116,255,255,0,#6    ${If[${NearestSpawn[6,npc #].Name.NotEqual["NULL"]},${NearestSpawn[6,npc #].Level},]} - ${If[${NearestSpawn[6,npc #].Name.NotEqual["NULL"]},${NearestSpawn[6,npc #].Name},]}
        Spawn7=3,720,128,255,255,0,#7    ${If[${NearestSpawn[7,npc #].Name.NotEqual["NULL"]},${NearestSpawn[7,npc #].Level},]} - ${If[${NearestSpawn[7,npc #].Name.NotEqual["NULL"]},${NearestSpawn[7,npc #].Name},]}
        Spawn8=3,720,140,255,255,0,#8    ${If[${NearestSpawn[8,npc #].Name.NotEqual["NULL"]},${NearestSpawn[8,npc #].Level},]} - ${If[${NearestSpawn[8,npc #].Name.NotEqual["NULL"]},${NearestSpawn[8,npc #].Name},]}
        Spawn9=3,720,152,255,255,0,#9    ${If[${NearestSpawn[9,npc #].Name.NotEqual["NULL"]},${NearestSpawn[9,npc #].Level},]} - ${If[${NearestSpawn[9,npc #].Name.NotEqual["NULL"]},${NearestSpawn[9,npc #].Name},]}
        Spawn0=3,720,164,255,255,0,#10  ${If[${NearestSpawn[0,npc #].Name.NotEqual["NULL"]},${NearestSpawn[0,npc #].Level},]} - ${If[${NearestSpawn[0,npc #].Name.NotEqual["NULL"]},${NearestSpawn[0,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,870,38,255,255,0,Zone - ${Zone}
 ShortZoneName=3,870,50,255,255,255,Short Zone Name - ${Zone.ShortName}
   HPNotifier1=3,720,424,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier2=3,720,436,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier3=3,720,448,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier4=3,720,460,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier5=3,720,472,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier6=3,720,484,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier7=3,720,496,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier8=3,720,508,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
   HPNotifier9=3,720,520,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
  HPNotifier10=3,720,532,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
  HPNotifier11=3,720,544,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
  HPNotifier12=3,720,556,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
  HPNotifier13=3,720,568,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
  HPNotifier14=3,720,580,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
  HPNotifier15=3,720,592,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]}
 ManaNotifier1=3,575,424,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier2=3,575,436,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier3=3,575,448,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier4=3,575,460,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier5=3,575,472,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier6=3,575,484,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier7=3,575,496,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier8=3,575,508,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
 ManaNotifier9=3,575,520,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
ManaNotifier10=3,575,532,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
ManaNotifier11=3,575,544,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
ManaNotifier12=3,575,556,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
ManaNotifier13=3,575,568,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
ManaNotifier14=3,575,580,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
ManaNotifier15=3,575,592,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}
The HP Notifier and Mana Notifier just puts up 15 lines in the middle of the screen saying either low HP (Below 20%) or low Mana (Below 15%), delete those lines if you'd like. Nothing really unique here, just thought I'd post it if anyone was interested in using it.

Here is a screen shot of my whole UI set up, so you can get an idea of what it looks like together. I added an MQ2ItemDisplay Add-on which is what the item Efficiency and Ratio is from... That add-on is found here. (1600x1200, and the full screen shot may take a while to load).
Edit: Just added direction to target to HUD.
Last edited by Aarrow on Sun Aug 15, 2004 11:04 pm, edited 4 times in total.

Abrasive
orc pawn
orc pawn
Posts: 11
Joined: Sat Sep 20, 2003 3:44 am
Location: Baghdad

Post by Abrasive » Sat Aug 14, 2004 3:22 am

Excellent work Aarrow and great contribution.

I like it!

Fortgeorge
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Aug 13, 2004 11:48 pm

Post by Fortgeorge » Tue Aug 17, 2004 10:12 pm

Aww, been enjoying this for awhile and HDD died, needed to download it and the links are broke. :(

Great UI while I was able to use it though, thanks SCA.

User avatar
SukMage
a ghoul
a ghoul
Posts: 88
Joined: Fri Jun 04, 2004 5:08 pm

Post by SukMage » Sun Aug 22, 2004 8:49 pm

Aarrow... After downloading the spell bar from you, I noticed after rez I get the divide by zero error again...

I haven't died yet but if I remember correctly the Code:

Code: Select all

${Int[${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[8].Mana}==0,,${Me.Gem[8].Mana}]}]}]} 
that is currently in there needed to be changed to the Code:

Code: Select all

${If[${Me.Gem[1].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[1].Mana},${Me.Gem[1].Mana},9999999999]}].Int},]} 
This will fix the 6 seconds of spamming of the divide by 0 error. I'll have to kill myself later to test for sure but the original code kills any macro that was running such as genbot when it gets the yesres command or Wait4rez.mac: consent, accept rez then loot

Nightshift
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Oct 13, 2003 8:52 am

Addition to EQUI_BuffWindow.xml

Post by Nightshift » Mon Aug 23, 2004 12:47 pm

something isn't right, will repost if I can figure it out..

oopps..

${Me.PetBuff[1].Duration.Time} can't have anything but NULL.. Only the server knows this, maybe Sony will pass that on to the client some day.

I'll keep my code stored until then I guess :)

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Mon Aug 23, 2004 3:26 pm

${Me.PetBuff[1].Duration.Time} can't have anything but NULL..
It's not so much that it can't have anything but NULL as that it doesn't exist. PetBuff returns type spell rather than buff (at least according to TFM) and thus lacks Duration. Are you certain that the server isn't sending this, and slight change to the source isn't what's needed? (I myself am ignorant, though curious)

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 23, 2004 4:55 pm

${Me.PetBuff[1]} will return the name of the first buff your pet has.

${Me.PetBuff["buff name"]} either like that or with .ID returns the slot ID of that buff.

Thats the only info that gets sent to the client about pet buffs as far as I know. But I'm sure if enough people begged and whined on the eqlive forums that may in 5 more years change it.

Mimatas
a hill giant
a hill giant
Posts: 262
Joined: Wed Mar 10, 2004 4:22 pm

Post by Mimatas » Mon Aug 23, 2004 5:12 pm

${Me.PetBuff[1].Duration.Time} can't have anything but NULL.. Only the server knows this, maybe Sony will pass that on to the client some day.
We had buff.duration.Time long before SoE started showing that info in the client... I'd venture to guess pet.buff.duration is even accessable to non-MQ people using the tooltips (just like it is for player buffs). if I were a pet class, I'd check this out when I got home. Has anyone tried to mouseover the pet buff?

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 23, 2004 5:15 pm

Uhh yeah. The second the patch got done I checked pet buffs. Like I said, people have been complaining about it too at eqlive.

It's the same thing about not being able to click off pet buffs, being the other complaint of many.

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

My take on the hud ...........

Post by Gabby » Mon Aug 23, 2004 7:41 pm

Here's my hud that I use (Modified from existing huds posted)

Many elements are dependent on certain windows being open (Documented)

Code: Select all

   GMIndicator=3,5,38,255,255,255,GM - ${NearestSpawn[GM]} 
   
      GameTime=3,5,50,255,255,255,GameTime: ${GameTime.Hour}:${GameTime.Minute} - ${If[${String[${GameTime.Night}].Equal["TRUE"]},Night,Day]}  
         
      BankCash=3,175,219,240,127,0,${If[${Window[InventoryWindow].Open},Bank - ${Me.PlatinumShared} Platinum,]} 
      
      LastTell=3,1000,616,215,0,215,LastTell - ${If[${MacroQuest.LastTell.NotEqual["NULL"]},${MacroQuest.LastTell},]} 
      
;-----Following line dependent on your Spell Book Window being open -------   
   
 TributePoints=3,390,728,0,240,0,${If[${Window[SpellBookWnd].Open},Tribute - ${Me.CurrentFavor},]} 
 
            XP=3,5,70,200,200,200,XP - ${Float[${Me.PctExp}]}% 
            
          AAXP=3,5,82,240,240,0,A.A. XP - ${Float[${Me.PctAAExp}]}% 
          
       GroupXP=3,5,94,0,255,255,Group Leader XP - ${Float[${Me.PctGroupLeaderExp}]}%
        
;-----Following line dependent on your Inventory Window being open -------    
   
         Bound=3,310,393,100,255,100,${If[${Window[InventoryWindow].Open},Bound in ${Me.Bound},]}
          
  CursorFollow=7,40,40,0,240,0,${If[${Cursor.ID},${Cursor},]} 
  
        Hunger=3,550,794,255,255,255,Hunger - ${Me.Hunger}/6000 
        Thirst=3,660,794,255,255,255,Thirst - ${Me.Thirst}/6000 
        
  AttackSpeed1=3,5,326,255,255,0,${If[${Me.AttackSpeed}>100,Haste - ${Int[${Math.Calc[${Me.AttackSpeed}-100]}]}% (${Me.AttackSpeed}),]} 
  AttackSpeed2=3,5,338,255,255,255,${If[${Me.AttackSpeed}==0,Haste - ${Int[${Me.AttackSpeed}]}%,]} 
  AttackSpeed3=3,5,350,255,0,0,${If[${Math.Calc[${Me.AttackSpeed}*-1]}>-100,Haste - ${Int[${Math.Calc[${Me.AttackSpeed}]}]}% (${Me.AttackSpeed}),]}
  
;-----Each of the following lines will only appear if there is a named spawn in the zone (up to 18 spawns) ------ 
  
            NS=3,5,106,255,0,0,~~~~ Named Spawns ~~~~ 
        Spawn1=3,5,118,255,255,0,${If[${NearestSpawn[1,npc named].Name.NotEqual["NULL"]},#1,]}    ${If[${NearestSpawn[1,npc named].Name.NotEqual["NULL"]},${NearestSpawn[1,npc named].Level},]}   ${If[${NearestSpawn[1,npc named].Name.NotEqual["NULL"]},${NearestSpawn[1,npc named].CleanName},]} 
        Spawn2=3,5,130,255,255,0,${If[${NearestSpawn[2,npc named].Name.NotEqual["NULL"]},#2,]}    ${If[${NearestSpawn[2,npc named].Name.NotEqual["NULL"]},${NearestSpawn[2,npc named].Level},]}   ${If[${NearestSpawn[2,npc named].Name.NotEqual["NULL"]},${NearestSpawn[2,npc named].CleanName},]} 
        Spawn3=3,5,142,255,255,0,${If[${NearestSpawn[3,npc named].Name.NotEqual["NULL"]},#3,]}    ${If[${NearestSpawn[3,npc named].Name.NotEqual["NULL"]},${NearestSpawn[3,npc named].Level},]}   ${If[${NearestSpawn[3,npc named].Name.NotEqual["NULL"]},${NearestSpawn[3,npc named].CleanName},]} 
        Spawn4=3,5,154,255,255,0,${If[${NearestSpawn[4,npc named].Name.NotEqual["NULL"]},#4,]}    ${If[${NearestSpawn[4,npc named].Name.NotEqual["NULL"]},${NearestSpawn[4,npc named].Level},]}   ${If[${NearestSpawn[4,npc named].Name.NotEqual["NULL"]},${NearestSpawn[4,npc named].CleanName},]} 
        Spawn5=3,5,166,255,255,0,${If[${NearestSpawn[5,npc named].Name.NotEqual["NULL"]},#5,]}    ${If[${NearestSpawn[5,npc named].Name.NotEqual["NULL"]},${NearestSpawn[5,npc named].Level},]}   ${If[${NearestSpawn[5,npc named].Name.NotEqual["NULL"]},${NearestSpawn[5,npc named].CleanName},]} 
        Spawn6=3,5,178,255,255,0,${If[${NearestSpawn[6,npc named].Name.NotEqual["NULL"]},#6,]}    ${If[${NearestSpawn[6,npc named].Name.NotEqual["NULL"]},${NearestSpawn[6,npc named].Level},]}   ${If[${NearestSpawn[6,npc named].Name.NotEqual["NULL"]},${NearestSpawn[6,npc named].CleanName},]} 
        Spawn7=3,5,190,255,255,0,${If[${NearestSpawn[7,npc named].Name.NotEqual["NULL"]},#7,]}    ${If[${NearestSpawn[7,npc named].Name.NotEqual["NULL"]},${NearestSpawn[7,npc named].Level},]}   ${If[${NearestSpawn[7,npc named].Name.NotEqual["NULL"]},${NearestSpawn[7,npc named].CleanName},]} 
        Spawn8=3,5,202,255,255,0,${If[${NearestSpawn[8,npc named].Name.NotEqual["NULL"]},#8,]}    ${If[${NearestSpawn[8,npc named].Name.NotEqual["NULL"]},${NearestSpawn[8,npc named].Level},]}   ${If[${NearestSpawn[8,npc named].Name.NotEqual["NULL"]},${NearestSpawn[8,npc named].CleanName},]} 
        Spawn9=3,5,214,255,255,0,${If[${NearestSpawn[9,npc named].Name.NotEqual["NULL"]},#9,]}    ${If[${NearestSpawn[9,npc named].Name.NotEqual["NULL"]},${NearestSpawn[9,npc named].Level},]}   ${If[${NearestSpawn[9,npc named].Name.NotEqual["NULL"]},${NearestSpawn[9,npc named].CleanName},]}
       Spawn10=3,5,226,255,255,0,${If[${NearestSpawn[10,npc named].Name.NotEqual["NULL"]},#10,]}  ${If[${NearestSpawn[10,npc named].Name.NotEqual["NULL"]},${NearestSpawn[10,npc named].Level},]}   ${If[${NearestSpawn[10,npc named].Name.NotEqual["NULL"]},${NearestSpawn[10,npc named].CleanName},]}
       Spawn11=3,5,238,255,255,0,${If[${NearestSpawn[11,npc named].Name.NotEqual["NULL"]},#11,]}  ${If[${NearestSpawn[11,npc named].Name.NotEqual["NULL"]},${NearestSpawn[11,npc named].Level},]}   ${If[${NearestSpawn[11,npc named].Name.NotEqual["NULL"]},${NearestSpawn[11,npc named].CleanName},]}
       Spawn12=3,5,250,255,255,0,${If[${NearestSpawn[12,npc named].Name.NotEqual["NULL"]},#12,]}  ${If[${NearestSpawn[12,npc named].Name.NotEqual["NULL"]},${NearestSpawn[12,npc named].Level},]}   ${If[${NearestSpawn[12,npc named].Name.NotEqual["NULL"]},${NearestSpawn[12,npc named].CleanName},]}
       Spawn13=3,5,262,255,255,0,${If[${NearestSpawn[13,npc named].Name.NotEqual["NULL"]},#13,]}  ${If[${NearestSpawn[13,npc named].Name.NotEqual["NULL"]},${NearestSpawn[13,npc named].Level},]}   ${If[${NearestSpawn[13,npc named].Name.NotEqual["NULL"]},${NearestSpawn[13,npc named].CleanName},]}
       Spawn14=3,5,274,255,255,0,${If[${NearestSpawn[14,npc named].Name.NotEqual["NULL"]},#14,]}  ${If[${NearestSpawn[14,npc named].Name.NotEqual["NULL"]},${NearestSpawn[14,npc named].Level},]}   ${If[${NearestSpawn[14,npc named].Name.NotEqual["NULL"]},${NearestSpawn[14,npc named].CleanName},]}
       Spawn15=3,5,286,255,255,0,${If[${NearestSpawn[15,npc named].Name.NotEqual["NULL"]},#15,]}  ${If[${NearestSpawn[15,npc named].Name.NotEqual["NULL"]},${NearestSpawn[15,npc named].Level},]}   ${If[${NearestSpawn[15,npc named].Name.NotEqual["NULL"]},${NearestSpawn[15,npc named].CleanName},]}
       Spawn16=3,5,298,255,255,0,${If[${NearestSpawn[16,npc named].Name.NotEqual["NULL"]},#16,]}  ${If[${NearestSpawn[16,npc named].Name.NotEqual["NULL"]},${NearestSpawn[16,npc named].Level},]}   ${If[${NearestSpawn[16,npc named].Name.NotEqual["NULL"]},${NearestSpawn[16,npc named].CleanName},]}
       Spawn17=3,5,310,255,255,0,${If[${NearestSpawn[17,npc named].Name.NotEqual["NULL"]},#17,]}  ${If[${NearestSpawn[17,npc named].Name.NotEqual["NULL"]},${NearestSpawn[17,npc named].Level},]}   ${If[${NearestSpawn[17,npc named].Name.NotEqual["NULL"]},${NearestSpawn[17,npc named].CleanName},]}
       Spawn18=3,5,322,255,255,0,${If[${NearestSpawn[18,npc named].Name.NotEqual["NULL"]},#18,]}  ${If[${NearestSpawn[18,npc named].Name.NotEqual["NULL"]},${NearestSpawn[18,npc named].Level},]}   ${If[${NearestSpawn[18,npc named].Name.NotEqual["NULL"]},${NearestSpawn[18,npc named].CleanName},]} 
       
        
     Direction=3,890,794,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,"<--","      -->"]}]}]} 

;-----Following line dependent on your Map Window being open -------     

      ZoneName=3,800,278,255,255,0,${If[${Window[MapViewWnd].Open},Zone - ${Zone},]} 
 ShortZoneName=3,800,290,255,255,255,${If[${Window[MapViewWnd].Open},Short Zone Name - ${Zone.ShortName},]} 
 
   HPNotifier9=3,720,690,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]} 
  HPNotifier15=3,720,762,255,0,0,${If[${Math.Calc[${Me.PctHPs}*-1]}>=-20,<***!LOW HP!***>,]} 

 ManaNotifier9=3,575,690,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]} 
ManaNotifier15=3,575,762,0,0,255,${If[${Math.Calc[${Me.PctMana}*-1]}>=-15,<***!LOW MANA!***>,]}

;-----Following lines dependent on your Spells Window being open (For you folks that play a caster/hybrid and switch to a Caster-------

         LOSCheck=1,65,550,255,234,8,${If[${Window[CastSpellWnd].Open},Line of Sight:,]} 
LOSCheckResponseT=1,135,550,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Target.ID},${If[${Target.LineOfSight},TRUE,]},]},]} 
LOSCheckResponseF=1,135,550,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Target.ID},${If[${Target.LineOfSight},,FALSE]},]},]}

     RangeFinder1=1,140,585,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[1].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[1].Range}]},Y,]},]},]},]}  
  RangeFinder1OOR=1,140,585,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[1].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[1].Range}]},N,]},]},]},]} 
   RangeFinder1NA=1,140,585,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[1].Range}==0,NA,]},]} 

Spell1CastAmmount=1,160,585,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[1].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[1].Mana},${Me.Gem[1].Mana},9999999999]}].Int},]},]}

     RangeFinder2=1,140,610,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[2].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[2].Range}]},Y,]},]},]},]} 
  RangeFinder2OOR=1,140,610,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[2].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[2].Range}]},N,]},]},]},]} 
   RangeFinder2NA=1,140,610,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[2].Range}==0,NA,]},]} 

Spell2CastAmmount=1,160,610,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[2].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[2].Mana},${Me.Gem[2].Mana},9999999999]}].Int},]},]} 

     RangeFinder3=1,140,634,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[3].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[3].Range}]},Y,]},]},]},]} 
  RangeFinder3OOR=1,140,634,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[3].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[3].Range}]},N,]},]},]},]} 
   RangeFinder3NA=1,140,634,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[3].Range}==0,NA,]},]} 

Spell3CastAmmount=1,160,634,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[3].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[3].Mana},${Me.Gem[3].Mana},9999999999]}].Int},]},]}

     RangeFinder4=1,140,658,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[4].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[4].Range}]},Y,]},]},]},]} 
  RangeFinder4OOR=1,140,658,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[4].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[4].Range}]},N,]},]},]},]} 
   RangeFinder4NA=1,140,658,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[4].Range}==0,NA,]},]} 

Spell4CastAmmount=1,160,658,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[4].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[4].Mana},${Me.Gem[4].Mana},9999999999]}].Int},]},]} 

     RangeFinder5=1,140,680,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[5].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[5].Range}]},Y,]},]},]},]} 
  RangeFinder5OOR=1,140,680,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[5].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[5].Range}]},N,]},]},]},]} 
   RangeFinder5NA=1,140,680,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[5].Range}==0,NA,]},]} 
 
Spell5CastAmmount=1,160,680,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[5].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[5].Mana},${Me.Gem[5].Mana},9999999999]}].Int},]},]} 

     RangeFinder6=1,140,702,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[6].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[6].Range}]},Y,]},]},]},]} 
  RangeFinder6OOR=1,140,702,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[6].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[6].Range}]},N,]},]},]},]} 
   RangeFinder6NA=1,140,702,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[6].Range}==0,NA,]},]} 
 
Spell6CastAmmount=1,160,702,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[6].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[6].Mana},${Me.Gem[6].Mana},9999999999]}].Int},]},]} 

     RangeFinder7=1,140,724,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[7].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[7].Range}]},Y,]},]},]},]} 
  RangeFinder7OOR=1,140,724,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[7].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[7].Range}]},N,]},]},]},]} 
   RangeFinder7NA=1,140,724,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[7].Range}==0,NA,]},]} 

Spell7CastAmmount=1,160,724,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[7].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[7].Mana},${Me.Gem[7].Mana},9999999999]}].Int},]},]} 

     RangeFinder8=1,140,747,0,255,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[8].Range}>0,${If[${Target.ID},${If[${Target.Distance}<=${Math.Calc[1.00*${Me.Gem[8].Range}]},Y,]},]},]},]} 
  RangeFinder8OOR=1,140,747,255,0,0,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[8].Range}>0,${If[${Target.ID},${If[${Target.Distance}>${Math.Calc[1.00*${Me.Gem[8].Range}]},N,]},]},]},]} 
   RangeFinder8NA=1,140,747,255,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[8].Range}==0,NA,]},]} 

Spell8CastAmmount=1,160,747,0,255,255,${If[${Window[CastSpellWnd].Open},${If[${Me.Gem[8].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[8].Mana},${Me.Gem[8].Mana},9999999999]}].Int},]},]} 

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Mon Aug 23, 2004 8:02 pm

I'm starting to believe we need a forum for Huds. LOL
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

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 23, 2004 9:00 pm

HUDs fit into Custom UI just fine.

User avatar
Aarrow
a lesser mummy
a lesser mummy
Posts: 30
Joined: Thu Aug 12, 2004 2:38 pm

Post by Aarrow » Mon Aug 23, 2004 10:11 pm

SukMage wrote:Aarrow... After downloading the spell bar from you, I noticed after rez I get the divide by zero error again...

I haven't died yet but if I remember correctly the Code:

Code: Select all

${Int[${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[8].Mana}==0,,${Me.Gem[8].Mana}]}]}]} 
that is currently in there needed to be changed to the Code:

Code: Select all

${If[${Me.Gem[1].ID},${Math.Calc[${Me.CurrentMana}/${If[${Me.Gem[1].Mana},${Me.Gem[1].Mana},9999999999]}].Int},]} 
I didn't modify that part of the code, that part was written by SCA... If you can confirm that the second code works, I will correct it and re-upload the file. Thanks

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Mon Aug 23, 2004 10:39 pm

There is a post on the boards about the divide by zero issue, and it does require those 9s to prevent it. Can't remember the exact code line but that one is probably right.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!