• 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
Assist Macro

Release Assist Macro 2

num1pkfutura submitted a new resource:

Assist Macro - Assist, Merc Assist, Merc Rez and Exp Tracking Macro

This is a simple macro that will have any character running macro assist either the groups main assist or a specific character listed in the event you wish to have out of group DPS.

Features:
Player running macro assists MA or Named Character
Merc assists MA or Named Character
Constantly checks for new target
Reses Merc if it dies
Tracks kills per hour, total number of kills and time run.

How to use:
simple run macro via "/mac mercassist2" on any character you wish to use it on. Can be...

Read more about this resource...
 
Hi this is great but I tried adapting to suit my own circumstance.

I run on the emulated servers which makes Mule and Kiss problematic for me, so I tried to adjust this to suit a Pet not a Merc firstly - that failed!
Then was wondering how to add a follow with a tell if it could be done.

INI:
#event MobKilled      "You gain#*#experience#*#"

Sub Main
/declare kills int outer
/declare CombatStart int outer
/declare PetAssisting int outer
/declare PetAssistAt string outer 96

/declare mainassist string outer [name removed]

/echo Assist macro now running!

/echo Assist set to ${mainassist}
/echo Pet will assist at ${PetAssistAt}

:Looping
/doevents
/delay 1s

 /if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Target.Type.Equal[Corpse]} && ${Target.PctHPs}<=${PetAssistAt}) {
    /call Fight
  }
/if (!${Target.ID}) /call Gettarget
/goto :Looping
/return

|=============================================================
|Get target of Assist.
|=============================================================
Sub Gettarget
|let us get a target?
/assist ${mainassist}
/delay 1s ${Target.ID}
/if (${Target.ID}) {
    /varset CombatStart 1
}

/return

|=============================================================
|Send Pet.
|=============================================================
Sub Fight
    /if (${Target.ID}) {
        /attack on
        :fighting
            /if (${Target.Type.Equal[corpse]}) /target clear
            /delay 1
            /if (${Me.Sitting}) /squelch /stand
                    /if (${CombatStart} && !${PetAssisting}) {
            /Pet Attack
            /varset PetAssisting 1
        }
    }

|=============================================================
|Make sure we still have right target.
|=============================================================
/if (!${Target.ID}) {
    /varset PetAssisting 0
    /varset CombatStart 0
    /attack off
    /return
    }
    /if (${Target.ID}) {
        /goto :fighting
    }
/return

|Count Kills Per Hour.
|=============================================================

Sub Event_MobKilled
/varset kills ${Math.Calc[${kills}+1]}
/echo Your kills per hour is ${Math.Calc[${kills}/${Macro.RunTime}*60*60]}
/echo You have killed ${kills} mobs in ${Math.Calc[${Macro.RunTime}/60]} Minutes
/return

|=============================================================
|Follow Main Assist
|=============================================================
 
FYI for those who were a bit lost (like I was), you have to go into the file and edit the assist to your character you want to assist or it won't work.
 
Just a tip you can use ${Target.CleanName} as the assist declare that way just target who you want to assist before starting the macro and you have no need to edit that part again. Or set it as Group.MainAssist
 
Changed what needed to be changed, I think, unfortunately they just sit there. Macro doesn't throw any errors that I can see. Tells me it will assist tankname and at 90%, but nada. Did I change the wrong thing for the target.cleanname piece? Trying to get an oog toon to assist the tank in main group. I run the macro on the oog toon, targeting the tank. No merc out, so perhaps thats the issue if this requires a merc to be out to be used. Thank you for any help!

INI:
#event MobKilled      "You gain#*#experience#*#"

Sub Main
/declare kills int outer
/declare CombatStart int outer
/declare MercAssisting int outer
/declare MercAssistAt string outer 90
/declare MercOn int outer 1
/declare MercInGroup int outer 0
/declare MercWaitTimer string local 20
|=============================================================
|Auto assists your groups Main Assist.
|Delete "${Group.MainAssist.Name}" and replace with characters
|name for out of group assist.
|=============================================================
/declare mainassist string outer ${Target.CleanName}

/echo Assist macro now running!

|=============================================================
|Echo Settings on Startup.
|=============================================================
/echo Assist set to ${mainassist}
/echo Merc will assist at ${MercAssistAt}

:Looping
/doevents
/delay 1s

|=============================================================
|Check HP of Assists Target.
|=============================================================
 /if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Target.Type.Equal[Corpse]} && ${Target.PctHPs}<=${MercAssistAt}) {
    /call Fight
  }
/if (!${Target.ID}) /call Gettarget
/goto :Looping
/return

|=============================================================
|Get target of Assist.
|=============================================================
Sub Gettarget
|let us get a target?
/assist ${mainassist}
/delay 1s ${Target.ID}
/if (${Target.ID}) {
    /varset CombatStart 1
}

/return

|=============================================================
|Send Merc.
|=============================================================
Sub Fight
    /if (${Target.ID}) {
        /attack on
        :fighting
            /if (${Target.Type.Equal[corpse]}) /target clear
            /delay 1
            /if (${Me.Sitting}) /squelch /stand
                    /if (${CombatStart} && !${MercAssisting}) {
            /mercassist
            /varset MercAssisting 1
        }
    }

|=============================================================
|Make sure we still have right target.
|=============================================================
/if (!${Target.ID}) {
    /varset MercAssisting 0
    /varset CombatStart 0
    /attack off
    /return
    }
    /if (${Target.ID}) {
        /goto :fighting
    }
/return

|=============================================================
|Count Kills Per Hour.
|=============================================================

Sub Event_MobKilled
/varset kills ${Math.Calc[${kills}+1]}
/echo Your kills per hour is ${Math.Calc[${kills}/${Macro.RunTime}*60*60]}
/echo You have killed ${kills} mobs in ${Math.Calc[${Macro.RunTime}/60]} Minutes
/return

|=============================================================
|Is Merc Dead? Revive!
|=============================================================
Sub MercsDoWhat
        
    :MercReviveLoop
    /if (!${Mercenary.State.Equal[ACTIVE]}) {
        /echo Attempting to revive my mercenary.
        /nomodkey /notify MMGW_ManageWnd MMGW_SuspendButton LeftMouseUp
        /delay 3s
    }
    /if (!${Mercenary.State.Equal[ACTIVE]}) {
        /echo Waiting ${MercWaitTimer}s until mercenary can be revivied.
        /delay ${MercWaitTimer}s
        /goto :MercReviveLoop
    } else {
        /if (${Mercenary.State.Equal[ACTIVE]}) /goto :MercReviveLoop
        /varset MercClass ${Mercenary.Class}
        /echo My mercenary's class is (${MercClass}).
    }
/return
 
Release Assist Macro

Users who are viewing this thread

Back
Top
Cart