• 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
Resource icon

Utility MQ2WorstHurt

Other Authors
Included in Very Vanilla
Very Vanilla Included! No need to download.
Server Type
🏢 Live Test
Documentation
Read📖Guides
Source Repository
https://github.com/RedGuides/MQ2WorstHurt
This plugin was made by alynel, paid for by toots.

In short the plugin replaces the forloops to find the worsthurt member of your party, xtar list or pet. You call the TLO with the parameters and it returns a spawns name, which can be manipulated for any usage.

For example, this is all the code I have in my kiss mods to handle all single target healing, and it covers a full xtar list, party members and pets. It is incredibly fast.

Rich (BB code):
/if ((${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.NotEqual[Pet]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.NotEqual[Corpse]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].PctHPs} <= ${Math.Calc[${${Spawn[${WorstHurt[both,1,200,TRUE]}].Class.ShortName}Point}*.${tmpHealOverride}]}) || (${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.Equal[Pet]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.NotEqual[Corpse]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].PctHPs} <= ${Math.Calc[${PetPoint}*.${tmpHealOverride}]})) {
        /call newSingleHeal "${Spawn[${WorstHurt[both,1,200,TRUE]}].CleanName}" "${Spawn[${WorstHurt[both,1,200,TRUE]}].Type}" ${Spawn[${WorstHurt[both,1,200,TRUE]}].PctHPs} 1 G
    }
Below is the usage.

Rich (BB code):
${WorstHurt[<group|xtarget|both>,<n>,<radius>,<includePets>]}
It will default to both, n = 1, radius = 999999, and includePets = TRUE. So the following are all the same:

Rich (BB code):
${WorstHurt[both,1,999999,TRUE]}
${WorstHurt[both,1,999999}
${WorstHurt[both,1]}
${WorstHurt[both]}
${WorstHurt}
Parameter ordering can be whatever you like, the more often it'll be changed from the default the further to the left it should be to make the macro lines shorter. If you think you're more likely to want to change includePets than radius, for example, they could be swapped.

It returns a spawn type, so you'll have access to all the usual spawn members. Basically if you can do ${Spawn[whatever].Something}, you can do ${WorstHurt.Something}. Class.ShortName will be fine

TLOData Type(s)Description
WorstHurtspawnHelps find the "worst hurt" member of your party, xtar list or pet.
Author
Sic
Watchers
40
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Sic

Share this resource

Latest updates

  1. 20231020

    〰️Commits Cleanup closes #2 (17fc7f1) ~Sic Merge branch 'update' into 'master' Cleanup closes...
  2. 20230219

    〰️Commits Update for v143 Addresses https://github.com/macroquest/macroquest/issues/635...
  3. htw's crash fix for missing group members

    fixes the issue here, https://gitlab.com/redguides/plugins/MQ2WorstHurt/-/issues/1
Back
Top
Cart