• 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
MQ2Yes

Release MQ2Yes

Siddin

Rikk-tikk-tikki-tikki-tchk!
Joined
Feb 6, 2005
RedCents
504¢
Basically I got tired of telling my characters to hit confirmation boxes so here's what the plugin does.
Command = /yes
Rich (BB code):
 /squelch /notify LargeDialogWindow LDW_YesButton leftmouseup
 /squelch /notify ConfirmationDialogBox Yes_Button leftmouseup
 /squelch /notify ConfirmationDialogBox OK_Button leftmouseup
 /squelch /notify TradeWND TRDW_Trade_Button leftmouseup
 /squelch /notify GiveWnd GVW_Give_Button leftmouseup
 /squelch /notify TaskTemplateSelectWnd TaskTemplateSelectAcceptButton
 leftmouseup
 /squelch /notify ProgressionTemplateSelectWnd
 ProgressionTemplateSelectAcceptButton leftmouseup
If you want anything else added, just let me know :)
(and no, I don't care about the indiscriminate use of /notify :P )
Rich (BB code):
// MQ2Yes.cpp : Defines the entry point for the DLL application.
//

// PLUGIN_API is only to be used for callbacks.  All existing callbacks at this time
// are shown below. Remove the ones your plugin does not use.  Always use Initialize
// and Shutdown for setup and cleanup, do NOT do it in DllMain.



#include "../MQ2Plugin.h"


PreSetup("MQ2Yes");

VOID Yes(PSPAWNINFO pChar, PCHAR szLine) {
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify LargeDialogWindow LDW_YesButton leftmouseup");
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify ConfirmationDialogBox Yes_Button leftmouseup");
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify ConfirmationDialogBox OK_Button leftmouseup");
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify TradeWND TRDW_Trade_Button leftmouseup");
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify GiveWnd GVW_Give_Button leftmouseup");
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify TaskTemplateSelectWnd TaskTemplateSelectAcceptButton leftmouseup");
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify ProgressionTemplateSelectWnd ProgressionTemplateSelectAcceptButton leftmouseup");
}
// Called once, when the plugin is to initialize
PLUGIN_API VOID InitializePlugin() {
  AddCommand("/yes",Yes);
  }

// Called once, when the plugin is to shutdown
PLUGIN_API VOID ShutdownPlugin() {
  RemoveCommand("/yes");
}
 
Last edited by a moderator:
Jesus. Don't plugin that kind of thing, it makes the baby jesus cry bloody tears.

Rich (BB code):
/alias /yes /multiline ; /squelch /notify LargeDialogWindow LDW_YesButton leftmouseup ; /squelch /notify ConfirmationDialogBox Yes_Button leftmouseup ; /squelch /notify ConfirmationDialogBox OK_Button leftmouseup ; /squelch /notify TradeWND TRDW_Trade_Button leftmouseup ; /squelch /notify GiveWnd GVW_Give_Button leftmouseup ; /squelch /notify TaskTemplateSelectWnd TaskTemplateSelectAcceptButton leftmouseup ; /squelch /notify ProgressionTemplateSelectWnd ProgressionTemplateSelectAcceptButton leftmouseup
 
OMG Siddin
We need a ini file with a masters list to accept only windows from them.
Please update your awesome plugin please please please.
 
ROFL! just plug this in with whatever "master" type plugin you normally use then just make them /yes

btw, totally forgot I even decided to do this.
 
lol, I'd have to agree with just adding it to the macroquest2.ini alias command. Doing this in plugin form is just showing off your leet skills over mine... which is not necessary... everyone already knows your smarter than me.
 
I did it in plugin form just because when I was playing i'd end up replacing the macroquest2.ini file *shrug* this got around that problem for me. Although if you don't replace that file, the alias is a better idea.
 
kaen01 updated MQ2Yes plugin with a new update entry:

Fixed missing and wrongly named windows.

C++:
// MQ2Yes.cpp : Defines the entry point for the DLL application.
//

// PLUGIN_API is only to be used for callbacks.  All existing callbacks at this time
// are shown below. Remove the ones your plugin does not use.  Always use Initialize
// and Shutdown for setup and cleanup, do NOT do it in DllMain.



#include "../MQ2Plugin.h"


PreSetup("MQ2Yes");

VOID Yes(PSPAWNINFO pChar, PCHAR szLine) {
DoCommand(GetCharInfo()->pSpawn,"/squelch /notify LargeDialogWindow LDW_YesButton...

Read the rest of this update entry...
 
So, I think I maybe doing this wrong, please help.

Loaded plugin on all toons.
Taskadded 5 toons to a task.
Typed /bcg //yes and /bcg /yes
No one hit the yes button.

Thoughts?

I just updated MQ2 5 minutes before trying this..
 
aight for some reason its not setting the command line as its supposed to do, i will need some kind of redbot brain to figure out why.
 
okay has figured it out, what had happened was that redbot uploaded something to the git but because i hadnt done things right submitting things to him, he uploaded an empty plugin file. so nothing was being setup in it.

@KingArthur absolutely, right now i am attempting to make the plugin super proper, code wise, in terms of how eq and mq2 handles things. but yes once the yes part works we can just duplicate that to a no command.
 
@KingArthur absolutely, right now i am attempting to make the plugin super proper, code wise, in terms of how eq and mq2 handles things. but yes once the yes part works we can just duplicate that to a no command.


Can we get a maybe option too? I have a very indecisive female cleric. :confused::confused:
 
Code:
void MaybeCommand(PSPAWNINFO pChar, PCHAR szLine) {
    int iFakeRand = rand() % 100;
    if (iFakeRand < 70) {
        // Let everyone know what we're thinking
        WriteChatf("[MQ2Decisions] Hmmm, Let me think...");
        // Make EVERYTHING wait for me
        sleep(5);
        // Try again
        MaybeCommand(pChar, szLine);
    } else if (iFakeRand < 85) {
        // Say Yes
        YesCommand(pChar, szLine);
    } else {
        // Say No
        NoComand(pChar, szLine);
    }
}
 
kaen01 updated MQ2Yes plugin with a new update entry:

Proper code and usage of internal functions

fixed it up all fancy with proper coding and detection of open windows and what not.
working on /maybe :P
Code:
// MQ2Yes.cpp
// Will attempt to say to most windows that ask for confirmation, good for boxing.
// -------------------------------------------------------------------------------
// Super many thanks to eqmule, knightly, brainiac and wired420 for helping me
// figure this stuff out, i am so in deep water, but they helped alot.
//...

Read the rest of this update entry...
 
OMG, I cannot believe I am just now learning about this plugin...what a life saver, now I don't feel like shooting myself in the head. Thanks guys.
 
Maybe I am not understanding something about this plugin, but can it work with dialog boxes where there is a choice not just Yes/No?

Like TBM adventures Adventure/Zone?
Or the Feerot/Dream portal?
 
yesh it will, most dialog boxes that offers two selections, generally is the yes and no box from the confirmation dialog with their button text changed.

so for dream feerrott you just hit /yes to go to the dream and /no for regular feerrott
 
was trying to figure out how to get the Reward Selection window to work.
/notify RewardSelectionWnd RewardSelectionChooseButton leftmouseup worked for me if there is only one choice of reward.
 
Seems the plugin isn't autoloading anymore. Even if i have it on 1 in the macroquest file, i have to load it again on each toon after logging
 
Yeah, worked for me until a few days ago. Now the MQini file says it s loaded, but i have to manually load it again on all my toons. Otherwise my toons /nod lol
 
Any chance someone could make this work on Next?
if you migrated your macroquest2.ini you might be missing the entries in your ini

you can add them to the [Aliases] section

INI:
/yes=/multiline ; /squelch /notify LargeDialogWindow LDW_YesButton leftmouseup ; /squelch /notify LargeDialogWindow LDW_OKButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Yes_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_OK_Button leftmouseup ; /squelch /notify TradeWND TRDW_Trade_Button leftmouseup ; /squelch /notify GiveWnd GVW_Give_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectAcceptButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_AcceptButton leftmouseup ; /squelch /notify RaidWindow RAID_AcceptButton leftmouseup

/no=/multiline ; /squelch /notify LargeDialogWindow LDW_NoButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_No_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Cancel_Button leftmouseup ; /squelch /notify TradeWND TRDW_Cancel_Button leftmouseup ; /squelch /notify GiveWnd GVW_Cancel_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectCancelButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_DeclineButton leftmouseup ; /squelch /notify RaidWindow RAID_DeclineButton leftmouseup
 
if you migrated your macroquest2.ini you might be missing the entries in your ini

you can add them to the [Aliases] section

INI:
/yes=/multiline ; /squelch /notify LargeDialogWindow LDW_YesButton leftmouseup ; /squelch /notify LargeDialogWindow LDW_OKButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Yes_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_OK_Button leftmouseup ; /squelch /notify TradeWND TRDW_Trade_Button leftmouseup ; /squelch /notify GiveWnd GVW_Give_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectAcceptButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_AcceptButton leftmouseup ; /squelch /notify RaidWindow RAID_AcceptButton leftmouseup

/no=/multiline ; /squelch /notify LargeDialogWindow LDW_NoButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_No_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Cancel_Button leftmouseup ; /squelch /notify TradeWND TRDW_Cancel_Button leftmouseup ; /squelch /notify GiveWnd GVW_Cancel_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectCancelButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_DeclineButton leftmouseup ; /squelch /notify RaidWindow RAID_DeclineButton leftmouseup
Ahh, just added it as an alias, got it.
 
Thanks Sid and Camikazi... this is exactly the issue I had and the fix was flawless. Cheers
 
I converted it, but figured there was a reason they wanted to use the aliases instead so didn't bother submitting anything. Never migrated my INI's or anything since I was already using Next prior to the migration tool being an option.

For what it's worth, the alias does the things this does. But went ahead and attached the source. Though honestly the "conversion" wasn't really a matter of converting anything but how to include Plugin.h the way next does it instead of relative path, and generating the new project files.

If nothing else, perhaps can be used as an example of clicking on a window in a plugin, and it's setup for Next since that's what we're moving to using.
 

Attachments

This is, what I believe to be, my first plugin that is not automatically loaded with MQ. So, I guess I need to know how to install it into my game. /plugin yes load and /plugin mq2yes load does not work
 

Attachments

  • Plugins.png
    Plugins.png
    36.8 KB · Views: 4
This is, what I believe to be, my first plugin that is not automatically loaded with MQ. So, I guess I need to know how to install it into my game. /plugin yes load and /plugin mq2yes load does not work
Mq2yes is a legacy plugin.

There is no mq2yes plugin for macroquest, they are aliases


There are a couple of small, yet important changes with MacroQuet vs the old MQ2 as explained > HERE <

Moving to MacroQuest mental notes:
1. mq2map click is Control+Shift+Click
2. new easyfind self travel is Control+Click (reminder in find window title bar)
3. new easyfind group travel is Control+Shift+Click
4. If you selected a destination in your zone guide and want to activate it you /travelto activate
5. /yes and /no are now aliases
6. your ini configuation files (like for kissassist) now reside in your "Config" folder and not your "Macro" folder


To use it copy the codeblock below into your macroquest.ini and then restart mq2, now you can type /yes to say yes to most things that pop up You can also make your team say yes using EQBCS by typing /bcg //yes
INI:
/yes=/multiline ; /squelch /notify LargeDialogWindow LDW_YesButton leftmouseup ; /squelch /notify LargeDialogWindow LDW_OKButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Yes_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_OK_Button leftmouseup ; /squelch /notify TradeWND TRDW_Trade_Button leftmouseup ; /squelch /notify GiveWnd GVW_Give_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectAcceptButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_AcceptButton leftmouseup ; /squelch /notify RaidWindow RAID_AcceptButton leftmouseup

INI:
/no=/multiline ; /squelch /notify LargeDialogWindow LDW_NoButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_No_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Cancel_Button leftmouseup ; /squelch /notify TradeWND TRDW_Cancel_Button leftmouseup ; /squelch /notify GiveWnd GVW_Cancel_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectCancelButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_DeclineButton leftmouseup ; /squelch /notify RaidWindow RAID_DeclineButton leftmouseup
 
Last edited:
If the conversion is done, could I then request MQ2Yes be included in Next?
the developers specifically didn't want it to be a plugin, as an alias does exactly the same thing



Mq2yes is a legacy plugin.

There is no mq2yes plugin for macroquest, they are aliases


There are a couple of small, yet important changes with MacroQuet vs the old MQ2 as explained > HERE <

Moving to MacroQuest mental notes:
1. mq2map click is Control+Shift+Click
2. new easyfind self travel is Control+Click (reminder in find window title bar)
3. new easyfind group travel is Control+Shift+Click
4. If you selected a destination in your zone guide and want to activate it you /travelto activate
5. /yes and /no are now aliases
6. your ini configuation files (like for kissassist) now reside in your "Config" folder and not your "Macro" folder


To use it copy the codeblock below into your macroquest.ini and then restart mq2, now you can type /yes to say yes to most things that pop up You can also make your team say yes using EQBCS by typing /bcg //yes
INI:
/yes=/multiline ; /squelch /notify LargeDialogWindow LDW_YesButton leftmouseup ; /squelch /notify LargeDialogWindow LDW_OKButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Yes_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_OK_Button leftmouseup ; /squelch /notify TradeWND TRDW_Trade_Button leftmouseup ; /squelch /notify GiveWnd GVW_Give_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectAcceptButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_AcceptButton leftmouseup ; /squelch /notify RaidWindow RAID_AcceptButton leftmouseup

INI:
/no=/multiline ; /squelch /notify LargeDialogWindow LDW_NoButton leftmouseup ; /squelch /notify ConfirmationDialogBox CD_No_Button leftmouseup ; /squelch /notify ConfirmationDialogBox CD_Cancel_Button leftmouseup ; /squelch /notify TradeWND TRDW_Cancel_Button leftmouseup ; /squelch /notify GiveWnd GVW_Cancel_Button leftmouseup ; /squelch /notify ProgressionSelectionWnd ProgressionTemplateSelectCancelButton leftmouseup ; /squelch /notify TaskSelectWnd TSEL_DeclineButton leftmouseup ; /squelch /notify RaidWindow RAID_DeclineButton leftmouseup
 
This resource has been removed and is no longer available. The following reason was provided:
A legendary plugin, RIP. Now replaced with an alias: "/yes"
 
Release MQ2Yes

Users who are viewing this thread

Back
Top
Cart