// 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");
}