Toggle Merc Status with a single hotkey

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Rakzan
decaying skeleton
decaying skeleton
Posts: 1
Joined: Tue Jul 18, 2006 11:30 pm

Toggle Merc Status with a single hotkey

Post by Rakzan » Sun Jun 21, 2009 9:04 pm

I'm looking for a way to, with a single hotkey, either set my merc to passive if reactive, or reactive if passive. Alternatively, a key that would cycle through the four stances would work too.

I've searched, and came up with nothing so far. Anyone have ideas?

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Post by dewey2461 » Sun Jun 21, 2009 11:51 pm

I don't remember seeing code wise added for dealing with merc's. So your need to delve though the windows to find the things you want directly.

Doing a quick look at the title of the window "Manage Mercenary" and looking in the default UI folder shows a "EQUI_MecenaryManageWnd.xml".

When you open that and look at the top open it is named "MMGW_ManageWnd" and doing a simple test like :

/echo ${Window[MMGW_ManageWnd].Open} shows me this is likely the thing you want.

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Post by dewey2461 » Sun Jun 21, 2009 11:56 pm

Here is the reference for the TLO

http://www.macroquest2.com/wiki/index.php/TLO:Window

http://www.macroquest2.com/wiki/index.p ... ype:window

Shows what fields are available.

I use FirstChild , Next , Name , and Text a lot when trying to figure it out. Alternately you can go to the xlm and look there.

Use notify to manipulate the window
http://www.macroquest2.com/wiki/index.php/Notify

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Post by dewey2461 » Mon Jun 22, 2009 12:13 am

Looks like the following will change the list box.

Code: Select all

/notify MMGW_ManageWnd MMGW_StanceListBox listselect 1
/notify MMGW_ManageWnd MMGW_StanceListBox listselect 2
/notify MMGW_ManageWnd MMGW_StanceListBox listselect 3
/notify MMGW_ManageWnd MMGW_StanceListBox listselect 4
and this applies the set stance.

Code: Select all

/notify MMGW_ManageWnd MMGW_SetActiveStanceButton leftmouseup
Now how you go about telling what stance your merc is currently in , and which you need to swap to is up to you.

I did notice that I got a yellow message like :

"Your active mercenary stance is now: Balanced."

so you have a trigger set and capture the stance.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Jun 22, 2009 7:21 am

/stance passive
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Post by dewey2461 » Mon Jun 22, 2009 8:15 pm

Rofl - and once again fearless gives a one line answer ....

FrankJScott
naggy
naggy
Posts: 2353
Joined: Sun Feb 19, 2023 7:11 am

Top Rated Workspace Management And Moving Solutions Site

Post by FrankJScott » Mon Aug 11, 2025 10:22 pm

why not just google it

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 4:38 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 4:39 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 4:40 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 4:42 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 5:19 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 5:20 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 5:21 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Toggle Merc Status with a single hotkey

Post by xyilla » Thu Sep 11, 2025 5:22 am