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

Release Assist Macro 2

No permission to download
Joined
May 27, 2013
RedCents
2,040¢
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.

[CODE lang="ini" highlight="6, 7, 14, , 51, 52, 60"]#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
|=============================================================[/CODE]
 
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