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
If you want anything else added, just let me know 
(and no, I don't care about the indiscriminate use of /notify :P )
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

(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:





