• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Request - Just a bit of help with this simple mac

Joined
Sep 25, 2017
RedCents
3,230¢
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

Oh come now, I'm not asking for much, just that this macro kills pets as well as mobs.
Ill look tomorrow.

Chose a bad time. Patch ciming so most of the devs were checking test to figure out how to fix what dbg breaks
 
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