Code:
// v0.01 Initial check in, missing include file and needs a main(); won't compile.
// v0.02 Added more troll strings, fixed a couple of bugs and added a corner case exception for OP doing a 180; still won't compile.
#include <vector>
#include <string>
#include <iostream>
#include <cstdlib>
#include <math.h>
#include "mt_rand.hpp"
std::vector<std::string> strResponseMsgs;
void CreateResponseMsgs(std::vector<std::string>& strResponseMsgs)
{
strResponseMsgs.push_back("ah an exploiter got cought hahaha ");
strResponseMsgs.push_back("AHAHAHAHAHAAHahahahahahahahaahahahaahahaaa [manic laughter]");
strResponseMsgs.push_back("I Applaud FDev's - OP has redacted his post and gone to sulk in the corner. lol");
strResponseMsgs.push_back("It's called "the coming of the great white handkerchief...");
strResponseMsgs.push_back("you exploited and are complaining?\nsomething wrong in your head baby");
strResponseMsgs.push_back("Can we stickify this thread? Pour encourager les autres?");
strResponseMsgs.push_back("this thread makes me all warm and tingly inside ty FD you have now really restore my faith in you");
strResponseMsgs.push_back("Ha. Delighted");
strResponseMsgs.push_back("Excellent! they got it wiped? Makes me want to play again!");
strResponseMsgs.push_back("im happy they got the money took away also even did my happy dance");
strResponseMsgs.push_back("Hahahahaha\nGood on FDEV. I have heard about all of these exploits from Beta - Gamma - Release and never once tried to use them as I knew that it would end in tears and wreck my experience.");
strResponseMsgs.push_back("hang one I will try and squeeze a tear out for you.\n\nnope it not happening.");
strResponseMsgs.push_back("I think I speak for everyone who didn't abuse the glitch when I say <link to Nelson.gif> HA HA");
strResponseMsgs.push_back("<link to Nelson.mpg>");
strResponseMsgs.push_back("hahahhhaaahahahhahahahhahhahhahahhaaaaahahahaa can't stop laughing.....");
strResponseMsgs.push_back("Started reading the thread, got to this post and thought, yep that about covers it lolol.");
strResponseMsgs.push_back("<link to Boromir.gif> One does not simply leave Founders World with ill gained Credits");
}
bool ShouldIPostInTheForumsAfterBeingCaughtExploitingOrReadingAboutSomeoneBeingCaughtExploiting(const int iUserId, const int iThreadId, const int iPostId, const bool bIamATroll, const bool bIreallyWantToPost, const bool bIamTheOp, std::vector<std::string>& strResponseMsgs)
{
if(bIamATroll && bIreallyWantToPost && bIamTheOp)
{
SetForumReputation(iUserId, -FLT_MAX);
CreateAndPostTrollForumMessage(iUserId, iThreadId);
return TRUE;
}
if(!bIamATroll && bIreallyWantToPost && bIamTheOp)
{
SetForumReputation(iUserId, GetForumReputation(iUserId) / 2.0f));
SetEditForumInFutureCallBack(EditAndRedactForumPost(iUserId, iThreadId, iPostId), (long long)(7*60*1000000));
SetEditForumInFutureCallBack(EditAndDoA180ForumPost(iUserId, iThreadId, iPostId), (long long)(107*60*1000000));
SetForumReputation(iUserId, GetForumReputation(iUserId) * 2.0f + 67.0f));
return TRUE;
}
if(!bIamATroll && !bIreallyWantToPost && bIamTheOp)
{
OutputDebugString("I am so ecstatic that my account wasn't banned and that I got off so lightly!");
return FALSE;
}
#if defined(I_IS_A_ENJUNEER)
if(bIamATroll && bIreallyWantToPost && !bIamTheOp)
{
CreateAndPostTrollCodeForumMessage(iUserId, iThreadId);
return TRUE;
}
#else
if(bIamATroll && bIreallyWantToPost && !bIamTheOp)
{
int iMsgId = mt_rand() % strResponseMsgs.size();
PostForumMessage(iUserId, iThreadId, strResponseMsgs[iMsgId]);
return TRUE;
}
#endif
if(!bIamATroll && bIreallyWantToPost && !bIamTheOp)
{
CreateAndPostReasonableForumMessage(iUserId, iThreadId);
return TRUE;
}
return FALSE;
}
Last edited: