Can anyone please compile this for me please.
Code:
// MQ2FamiliarKiller.cpp :
//Kills Wizard Flappies on zone and checks now and then if another one is up.
//Those pesky Familiars keep showing up all the time :)
#include "../MQ2Plugin.h"
PreSetup("MQ2FamiliarKiller");
PLUGIN_API VOID InitializePlugin(VOID)
{
DebugSpewAlways("Initializing MQ2FamiliarKiller");
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("Shutting down MQ2FamiliarKiller");
}
PLUGIN_API VOID OnAddSpawn(PSPAWNINFO pNewSpawn)
{
if (strstr(pNewSpawn->DisplayedName, "familiar")) {
if(GetSpawnType(pNewSpawn)==PET){
if(strstr(pNewSpawn->DisplayedName,GetCharInfo()->pSpawn->DisplayedName)) {
DoCommand(NULL,"/pet get lost");
WriteChatColor("[MQ2FamiliarKiller] Rest in peace flappy.", USERCOLOR_DEFAULT);
}
}
}
}