raistlin8989
Member
- Joined
- Apr 27, 2005
- RedCents
- 10¢
Nothing fancy, just a plugin that removes traces of MQ2 for screenshots. I made this for guild screenshots. Yes it can be macro'd easily but why make your current macro stop to just take a screenshot.
/mqhide - removes the fluff. (assumes you have netstat being drawn already.)
/mqshow - puts the fluff back in. (assumes captions are off, netstat is not being drawn and your UI is not showing.)
/snap - hides, snaps pic, shows. (assumes you have netstat being drawn already.)
/mqhide - removes the fluff. (assumes you have netstat being drawn already.)
/mqshow - puts the fluff back in. (assumes captions are off, netstat is not being drawn and your UI is not showing.)
/snap - hides, snaps pic, shows. (assumes you have netstat being drawn already.)
Rich (BB code):
// Plugin: MQ2RScreenshot
//
// Author: raistlin8989 for RedGuides
//
// Note: Assumes you have a HUD/network indicator being drawn (hit f11 to bring it up).
// Removes/shows mq features for screenshots. Also comes with a command to hide features,
// snap a pic and then show the features again. Made this plugin for guild screenshots.
// Commands: /mqhide - hides mq features (assumes your features are showing).
// /mqshow - shows mq features (assumes your features are hidden).
// /snap - hides, snaps, then shows. (assumes your features were showing to begin with.)
//
#include "../MQ2Plugin.h"
PreSetup("MQ2RScreenshot");
void hide(PSPAWNINFO pChar, PCHAR szLine)
{
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress netstat");
DoCommand((PSPAWNINFO)pCharSpawn,"/caption MQCaptions off");
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress fullscreen");
return;
}
void show(PSPAWNINFO pChar, PCHAR szLine)
{
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress netstat");
DoCommand((PSPAWNINFO)pCharSpawn,"/caption MQCaptions on");
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress fullscreen");
return;
}
void snap(PSPAWNINFO pChar, PCHAR szLine)
{
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress netstat");
DoCommand((PSPAWNINFO)pCharSpawn,"/caption MQCaptions off");
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress fullscreen");
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress screencap");
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress netstat");
DoCommand((PSPAWNINFO)pCharSpawn,"/caption MQCaptions on");
DoCommand((PSPAWNINFO)pCharSpawn,"/keypress fullscreen");
return;
}
PLUGIN_API VOID InitializePlugin(VOID)
{
DebugSpewAlways("Initializing MQ2RScreenshot");
AddCommand("/mqhide",hide);
AddCommand("/mqshow",show);
AddCommand("/snap",snap);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("Shutting down MQ2RScreenshot");
RemoveCommand("/mqhide");
RemoveCommand("/mqshow");
RemoveCommand("/snap");
}


