• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - How to check distance to a target

Joined
May 4, 2017
RedCents
77¢
Is there a way to check distance to a target? I sssume you can use mq2nav, but how would you do so without navigating to the target?
 
Since you mention MQ2Nav, I assume you want the distance you would actually travel rather than just plain ${Target.Distance} (or ${Target.Distance3D}, note both can be done with ${Spawn[]} so you don't need to /tar), which you can get with ${Navigation.PathLength[foo]} where foo is just the normal stuff passed to /nav. (Or I think that should work :P)
 
Actually I just want the distance not necessarily for pulling. I want to keep my healers outside the distance of a dot spell a mob casts. It would be Line Of Sight.
 
I use this as my HUD.ini file and it gives you the distance to the target as part of it built in. I have been using this one for over 10 years I just copy and paste it back into the file after every patch because it will overwrite the file. I especially like it in big open zones like FM or back in the day when kiting knowing the distance helps a lot.


Rich (BB code):
[Elements] 

;Player info:
;----------------
myinfos=3,133,5,155,52,50,~~Player~~
Myname=3,136,15,255,255,255,${Me.Name}
mylvl=3,136,27,155,122,50,Level: ${Me.Level} 
hpmaen=3,5,35,155,122,50,H:${Me.PctHPs} M:${Me.PctMana} E:${Me.PctEndurance}
myXP=3,136,45,255,255,0,XP : ${Me.PctExp}% 
meAAExp=3,136,55,255,255,0,AA: ${Me.AAPointsTotal}   Free: ${Me.AAPoints} 
meAApct=3,228,55,255,255,100,${Int[${Math.Calc[(100-(100.00-${Me.PctAAExp}))]}]}%
myLoc=3,5,65,0,210,100,Loc: ${Me.Y}   ${Me.X}   ${Me.Z}
FHP=3,5,45,44,110,200,Full HP in  - ${Int[${Math.Calc[(${Me.MaxHPs}-${Me.CurrentHPs})/(${Me.HPRegen}|1)/10]}]}m${Int[${Math.Calc[(${Me.MaxHPs}-${Me.CurrentHPs})/(${Me.HPRegen}|1)%10*6]}]}s
FM=3,5,55,44,110,200,Full Mana in  - ${Int[${Math.Calc[(${Me.MaxMana}-${Me.CurrentMana})/(${Me.ManaRegen}|1)/10]}]}m${Int[${Math.Calc[(${Me.MaxMana}-${Me.CurrentMana})/(${Me.ManaRegen}|1)%10*6]}]}s

;Target info:
;----------------
Target=3,290,5,155,52,50,~~Target~~
Tname=3,270,15,255,255,255,${If[${Target.ID},${Target.CleanName},]} 
tlvl=3,270,25,155,122,50,${If[${Target.ID},Level: ${Target.Level}   HP: ${Target.PctHPs},]}
tclass=3,270,35,155,122,50,${If[${Target.ID},Class: ${Target.Class},]}
TLoc=3,270,45,0,210,100,${If[${Target.ID},Loc: ${Target.Y}   ${Target.X}   ${Target.Z},]}
TDist=3,270,55,0,210,100,${If[${Target.ID},Distance: ${Target.Distance},]}
TDirect=3,270,65,200,150,0,${If[${Target.ID}==NULL,"",${If[${Math.Calc[((${Me.Heading.Degrees}-${Target.HeadingTo.Degrees}+375)%360)*-1]}>-30,"Straight Ahead",${If[${Math.Calc[((${Me.Heading.Degrees}-${Target.HeadingTo.Degrees}+360)%360)*-1]}>-180,"To your left","To your right"]}]}]}

;Time info:
;---------------------
RLT=3,435,5,155,52,50,~~Earth Time~~
Time=3,450,15,150,150,110,${Time.Time24} 
GT=3,552,5,155,52,50,~~Game Time~~
GameTime=3,570,15,150,150,110,${If[${GameTime.Night},AM,PM]}: ${GameTime.Hour}:${GameTime.Minute} 

;Spawn info:
;---------------------
Spawnlist=3,670,5,155,52,50,~~Spawn List~~
Spawn1=3,650,15,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,650,25,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,650,35,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,650,45,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},]} 

;Other info:
;---------------------
Infos=3,855,5,155,52,50,~~Other Info~~
GLeader=3,835,15,255,0,255,${If[(${Group}>0),Group Leader: ${Group.Leader},]}
Macro=3,835,25,150,150,110,Macro Running: ${Macro.Name}
LastTell=3,835,35,255,0,255,LastTell - ${If[${MacroQuest.LastTell.NotEqual["NULL"]},${MacroQuest.LastTell},]} 
GMInd1=3,835,45,255,0,0,${If[${Spawn[gm].ID},GM,]} 
GMInd2=3,835,45,150,150,110,${If[${Spawn[gm].ID},,GM:]}               
GMInd3=3,860,45,255,0,0,${If[${Spawn[gm].ID},${NearestSpawn[GM]},]} 
GMInd4=3,860,45,150,150,110,${If[${Spawn[gm].ID},,None In Zone]}

[MQ2HUD]
Last=elements
SkipParse=1
CheckINI=10
UpdateInBackground=on
ClassHUD=on
ZoneHUD=on
UseFontSize=off
 
Question - How to check distance to a target

Users who are viewing this thread

Back
Top
Cart