• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Question - Adding named spawn to hud?

CdnBacon

Member
Anyone able to help me with adding named mobs up in zone to the bottom of the hud i am using? This is the one i use. its from mmobugs. i just want at the bottom of this ini to have 4 of the closest named to show on my hud. but cannot seem to figure out how or where to add the code.

Attached is the Hud.ini i am using. Anyone able to help me? I'm not good with any of this and can really use a hand.
 

Attachments

You dont want to do it. I did this added every named from all zones into my hud and it is a HUGE CPU issue. Went from 2% to 45% for one instance of EQ.
 
I wrote and use the following. If there is an NPC that you don't want to show, simply /alert add 1 Name of NPC

for this, once copied to your MQ2HUD.ini, you'll want to type /loadhud nearest

if once loaded, it's not where you want it you can use mq2hudmove plugin to move the element around.

/plugin mq2hudmove

/hudmove nearest left 10
will move it left 10 pixels.

The below code puts it left of my XTarget Window in the bottom right hand corner of the UI assuming you're using 1920/1080.

This doesn't cause a CPU issue for me at all.



Rich (BB code):
[Nearest]
    LineBreak4a=                    3,1600,808    ,255,255,0            ,${If[${NearestSpawn[1,npc named noalert 1].Name.NotEqual["NULL"]} ,___________________________,]}
    SpawnLocationText=                3,1600,808    ,255,255,0            ,             ${If[${NearestSpawn[1,npc named noalert 1].Name.NotEqual["NULL"]} ,NEAREST NAMED,]}
    LineBreak4b=                    3,1600,796    ,255,255,0            ,${If[${NearestSpawn[1,npc named noalert 1 noalert 1].Name.NotEqual["NULL"]} ,___________________________,]}
    Spawn1=                            3,1600,820    ,255,255,0            ,${If[${NearestSpawn[1,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[1,npc named noalert 1].Level},]} - ${If[${NearestSpawn[1,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[1,npc named noalert 1].CleanName},]} 
    Spawn2=                            3,1600,832    ,255,255,0            ,${If[${NearestSpawn[2,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[2,npc named noalert 1].Level},]} - ${If[${NearestSpawn[2,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[2,npc named noalert 1].CleanName},]} 
    Spawn3=                            3,1600,844    ,255,255,0            ,${If[${NearestSpawn[3,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[3,npc named noalert 1].Level},]} - ${If[${NearestSpawn[3,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[3,npc named noalert 1].CleanName},]} 
    Spawn4=                            3,1600,856    ,255,255,0            ,${If[${NearestSpawn[4,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[4,npc named noalert 1].Level},]} - ${If[${NearestSpawn[4,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[4,npc named noalert 1].CleanName},]} 
    Spawn5=                            3,1600,868    ,255,255,0            ,${If[${NearestSpawn[5,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[5,npc named noalert 1].Level},]} - ${If[${NearestSpawn[5,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[5,npc named noalert 1].CleanName},]}
    Spawn6=                            3,1600,880    ,255,255,0            ,${If[${NearestSpawn[6,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[6,npc named noalert 1].Level},]} - ${If[${NearestSpawn[6,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[6,npc named noalert 1].CleanName},]}
    Spawn7=                            3,1600,892    ,255,255,0            ,${If[${NearestSpawn[7,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[7,npc named noalert 1].Level},]} - ${If[${NearestSpawn[7,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[7,npc named noalert 1].CleanName},]}
    Spawn8=                            3,1600,904    ,255,255,0            ,${If[${NearestSpawn[8,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[8,npc named noalert 1].Level},]} - ${If[${NearestSpawn[8,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[8,npc named noalert 1].CleanName},]}
    Spawn9=                            3,1600,916    ,255,255,0            ,${If[${NearestSpawn[9,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[9,npc named noalert 1].Level},]} - ${If[${NearestSpawn[9,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[9,npc named noalert 1].CleanName},]}
    Spawn10=                        3,1600,928    ,255,255,0            ,${If[${NearestSpawn[10,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[10,npc named noalert 1].Level},]} - ${If[${NearestSpawn[10,npc named noalert 1].Name.NotEqual["NULL"]} ,${NearestSpawn[10,npc named noalert 1].CleanName},]}
    SpawnHeaderbg=                    3,1600,808    ,0,0,0                ,${If[${NearestSpawn[1,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn1bg=                        3,1600,820    ,0,0,0                ,${If[${NearestSpawn[1,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn2bg=                        3,1600,832    ,0,0,0                ,${If[${NearestSpawn[2,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn3bg=                        3,1600,844    ,0,0,0                ,${If[${NearestSpawn[3,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn4bg=                        3,1600,856    ,0,0,0                ,${If[${NearestSpawn[4,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn5bg=                        3,1600,868    ,0,0,0                ,${If[${NearestSpawn[5,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn6bg=                        3,1600,880    ,0,0,0                ,${If[${NearestSpawn[6,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn7bg=                        3,1600,892    ,0,0,0                ,${If[${NearestSpawn[7,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn8bg=                        3,1600,904    ,0,0,0                ,${If[${NearestSpawn[8,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn9bg=                        3,1600,916    ,0,0,0                ,${If[${NearestSpawn[9,npc named noalert 1].Name.NotEqual["NULL"]} ,████████████████████,]}
    Spawn10bg=                        3,1600,928    ,0,0,0                ,${If[${NearestSpawn[10,npc named noalert 1].Name.NotEqual["NULL"]},████████████████████,]}
 
Please change all
Rich (BB code):
.Name.NotEqual["NULL"]}
to
Rich (BB code):
.ID}!=0
parsing Name is incredibly expensive but more so it will never ever return a string that's actually "NULL" it might return NULL but that's a different thing...
 
Question - Adding named spawn to hud?

Users who are viewing this thread

Back
Top
Cart