• 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 - Check for Damage Shield

Soandso2

Well-known member
Is there an easy way to check if target / pet / myself has a damage shield without looping through a butt load of buffs by name? Something like mq,TLO,.Me.DamageShield() or mq.TLO.Me.DS()
 
I don;t know if its worth your time, you can have it added to a BoxHud, so its always on display and easy to see. Or make a ButtonMaster button if you only need to check it occasionally
 
The SPA list sure seems interesting and useful for a great many things, but whilst trying to figure out how to actually use it, I came upon this:
(under the target datatype description)
spell DSed
Returns the name of the Damage Shield spell if the Target has one

Without being able to test for the time being, surely this could be used somewhat like this (not sure what it returns if there is no DS on the target, assuimg null for this post)

Lua:
if not mq.TLO.Target.DSed() then'
    whatever
end

EDIT: I see a possible flaw in the above reasoning, if the target has a spell effect that perhaps does not count exclusively as a DS but just have a damage shield as "part" of the entire buff. Not sure if that is line of thought is accurate, though.
EDIT 2: I realised that I need to have the pet targeted in order to use this, as DSed only seems to exist on the character datatype, not the pet datatype. A bit annoying but I guess switching target to check for a DS and then back again, isnt too big of a deal, since mages don't melee.

I am not sure how to user the SPA-thing above. In order to just see what happens, I wrote /echo ${Me.SPA[0]} which gives me 222, but I have no idea what that means. Other number within the square brackets give me various numbers, including some negative, so I am not really sure what is going on here. :)
 
Last edited:
Question - Check for Damage Shield

Users who are viewing this thread

Back
Top
Cart