Page 1 of 3

Toggle Merc Status with a single hotkey

Posted: Sun Jun 21, 2009 9:04 pm
by Rakzan
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?

Posted: Sun Jun 21, 2009 11:51 pm
by dewey2461
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.

Posted: Sun Jun 21, 2009 11:56 pm
by dewey2461
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

Posted: Mon Jun 22, 2009 12:13 am
by dewey2461
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.

Posted: Mon Jun 22, 2009 7:21 am
by fearless
/stance passive

Posted: Mon Jun 22, 2009 8:15 pm
by dewey2461
Rofl - and once again fearless gives a one line answer ....

Top Rated Workspace Management And Moving Solutions Site

Posted: Mon Aug 11, 2025 10:22 pm
by FrankJScott
why not just google it

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 4:38 am
by xyilla

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 4:39 am
by xyilla

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 4:40 am
by xyilla

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 4:42 am
by xyilla

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 5:19 am
by xyilla

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 5:20 am
by xyilla

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 5:21 am
by xyilla

Re: Toggle Merc Status with a single hotkey

Posted: Thu Sep 11, 2025 5:22 am
by xyilla