• 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

Request - Just a bit of help with this simple mac

Ordell

Well-known member
I found this macro years ago. Real simple, kill everything around you. But for some odd reason it ignores pets. Could someone take a look as to why? Thanks.
 

Attachments

just a quick guess without testing, but its using
/target npc
there's a
/target pet
though I don't know if this will mess up if there's a PC pet.
so maybe add a section for if no id then /target pet
 
Not home right now to try it, but 'Target.Type' can take on the following: PC NPC Untargetable Mount Pet Corpse Chest Trigger Trap Timer Item.

So in general from a coding perspective, you will want to modify all locations referencing the target type to check for both NPC and Pet. You will also need to check for pets when attempting to acquire a target. There are likely better ways than the brute force approach (I think .Equal can be replaces with a set search), but here is what I came up with:

INI:
Sub Main
    /echo Kill All activated
    :mainLoop
    /if (${Target.ID} && (${Target.Type.NotEqual[NPC]} && ${Target.Type.NotEqual[Pet]}) || ${Target.Distance} > 75) {
        /squelch /target clear
        /delay 2s !${Target.ID}
    }
    /if (!${Target.ID}) {
        /squelch /target npc radius 40
        /delay 2s ${Target.ID}
    }
    /if (!${Target.ID}) {
        /squelch /target pet radius 40
        /delay 2s ${Target.ID}
    }
    /if (${Target.ID} && (${Target.Type.Equal[NPC]} || ${Target.Type.Equal[Pet]}) && ${Target.Distance} <= 40) {
        /if (${Stick.Status.NotEqual[ON]}) /squelch /stick 10
        /if (!${Me.Combat}) /attack on
     }
    /if (!${Spawn[NPC radius 40].ID} && !${Spawn[Pet radius 40].ID} && !${Target.ID}) {
        /echo ALL DEAD!!!!
        /endm
    }
    /goto :mainLoop
    /return
 
Request - Just a bit of help with this simple mac

Users who are viewing this thread

Back
Top
Cart