• 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

Target sub

Could someone help me with a sub that will:

1. /echo npc_name of npcs within 200 radius of toon running mac
2. If npc within 200 radius and has pc targetted /echo "npc_name" is attacking "pc_name" whos health is "pc_name_hp%"
3. If npc within 200 radius and does not have pc targetted then /echo Ignore "npc_name"

I have Hott.

npc_name needs to be the unique name for the npc not just "a dragorn" for example.

Is there any way to determine if a npc is snared,rooted or mezzed other than chatbox messages? Chatbox messages do not seem to specify which "a dragorn" is snared.

I have tried taking parts from others macros to get this to work and keep having problems. I am hoping someone can write something basic to help me understand how to add this to my current macros. In my macros I won't be echoing the info, I will be using it to make decisions on what sub to go to.

TIA
 
IamBigDaddy said:
Is there any way to determine if a npc is snared,rooted or mezzed
No to all accounts.

This sub should in theory work. But you may need to add a delay after the targeting portion (line bolded where you would change delay) if it is not detecting the hott portion (due to eq's slow responce to get you an accurate hott).

Rich (BB code):
sub npccheck
	/declare npccount int local
	/declare targetcheck int local

	/for npccount 1 to ${SpawnCount[npc radius 200]}
		/varset targetcheck ${NearestSpawn[${npccount},npc radius 200].ID}
		/target ID ${targetcheck}
		/delay 1s (${Target.ID}==${targetcheck})
		/echo Checking ${NearestSpawn[${npccount},npc radius 200]}...
		/delay 1
		/if (${Me.TargetOfTarget.ID}) /echo ${NearestSpawn[${npccount},npc radius 200]} (${NearestSpawn[${npccount},npc radius 200].Distance3D} range) is attacking ${Me.TargetOfTarget} who is at ${Me.TargetOfTarget.PctHPs}% hp.
		/if (!${Me.TargetOfTarget.ID}) /echo ${NearestSpawn[${npccount},npc radius 200]} (${NearestSpawn[${npccount},npc radius 200].Distance3D} range) is Idle.
	/next npccount
/return
 
Only able to partially test because I did not have 3 in group.

Now I have a hang up after my bard casts a spell on npc. Since a bard spell continues the mac freezes until the current npc is dead or I manually click a spell...
 
IamBigDaddy said:
Only able to partially test because I did not have 3 in group.

Now I have a hang up after my bard casts a spell on npc. Since a bard spell continues the mac freezes until the current npc is dead or I manually click a spell...

Sounds like a problem with the macro you might be inserting this into. Wouldnt be able to assist without seeing it as a whole to get an idea of what its doing.
 
Thx for your help. I have not put this into my mac yet but when I do I will post it. I am still working on pieces. I am pretty sure this is just a bard casting issue. Once a bard begins to sing a song it continues until something stops it. So now I am busy in Faydark just testing different ways to cycle between npc's.

I was using spell_routines.inc but trying others now.
 
Target sub

Users who are viewing this thread

Back
Top
Cart