Merc Snippets

Moongaden

New member
Joined
Sep 1, 2008
Messages
250
Reaction score
2
Points
0
Is there any merc snippets or commands out there that will put away/take out your merc?

For the rare afk macro where i need a merc, ive found that he can affect the level range of fhalls (as a pc thats not in zone), so i need a command that puts him away and then gets him back when the timer is up.

Anyone developed anything for this yet?

Thank you
 
1 Line, suspends if up, unsuspends if down.

Code:
/notify MMGW_ManageWnd MMGW_SuspendButton leftmouseup
 
Actually, down wont unsuspend, since the button pops back up labelled "Unsuspend".

Its the same code to suspend as unsuspend unfortunately. This makes it hard to code "Only unsuspend if he's not unsuspended already"

Maybe if there's a snippet using ${Group.Members} < 2. I'll play with it.
 
or you can hardcore in mec's name i don't think mec name changes except when u buy a new one i could be wroung on this though.

This should unsuspend merc:
Code:
/If (!${Spawn[[B][U][COLOR="Red"]insert name of merc here[/COLOR][/U][/B]].ID}) /notify MMGW_ManageWnd MMGW_SuspendButton leftmouseup

This should suspend it:
Code:
/If (${Spawn[[B][U][COLOR="Red"]insert name of merc here[/COLOR][/U][/B]].ID}) /notify MMGW_ManageWnd MMGW_SuspendButton leftmouseup
not sure if that is right or not but you should get the idea.
 
Example without hard coding.

Code:
/if (${Me.Mercenary.Equal[SUSPENDED]} && ${Window[MMGW_ManageWnd].Open}) {
/nomodkey /shift /notify MMGW_ManageWnd MMGW_SuspendButton leftmouseup 
}
 
Example without hard coding.

Code:
/if (${Me.Mercenary.Equal[SUSPENDED]} && ${Window[MMGW_ManageWnd].Open}) {
/nomodkey /shift /notify MMGW_ManageWnd MMGW_SuspendButton leftmouseup 
}

this doesnt do anything, whether the merc is out or not
 
The code works, it was an example for when your mercenary is already suspended, this will only be the case if you suspended your mercenary during that eq session, otherwise it will report NULL and the code won't work...

/echo ${Me.Mercenary}
 
anyone know how to auto revive on death? I tried

Code:
/If (!${Spawn[insert name of merc here].ID}) /notify MMGW_ManageWnd MMGW_ReviveButton leftmouseup

but it didn't work =[ any help is appreciated thx
 
Pretty sure that's because the revive button doesn't technically exist, they just set the text to that on the suspend button, so try that.
 
suspend, unsuspend, and revive will use the same command:
Code:
/nomodkey /shift /notify MMGW_ManageWnd MMGW_SuspendButton leftmouseup
you want to have an /if statment looking to see if the button says revive:
Code:
(${Window[MMGW_ManageWnd].Child[MMGW_SuspendButton].Text.Equal[Revive]})
 
Anyone know how to get a merc's HPs and target it? The merc would belong to someone else and be outside of my group. This code works only if the merc is in the group.

Code:
sub CheckMerc
    /if (!${Me.SpellReady[${HealSpell2}]} || !${Spawn[MERC NAME HERE].ID}) /return
	/if (${Spawn[MERC NAME HERE].ID} && ${Spawn[MERC NAME HERE].PctHPs}<${MeleeHeal}) {
		/target ID ${Spawn[MERC NAME HERE].ID}
	    /delay 1s ${Target.ID}==${Spawn[MERC NAME HERE].ID}
	    /delay 1
		/cast "${HealSpell2}" -targetid|${Spawn[MERC NAME HERE].ID} -maxtries|10
		/delay 2s ${Me.Casting.ID}
		/delay 10s !${Me.Casting.ID}
		/delay 3
		/sit
	}
/return
 
Last edited:
You would have to target the merc and then check it's hp.