#include "spawn.h"
#include "src\algorithms.h"
void botInfo::gotHelp(Player *p, Command *c)
{
// List commands
if (!*c->final)
{
switch (p->access)
{
case OP_Duke:
case OP_Baron:
case OP_King:
case OP_Emperor:
case OP_RockStar:
case OP_Q:
case OP_God:
case OP_Owner:
{ // Owner-level commands
// sendPrivate(p, "Ext: ");
}
break;
case OP_SysOp:
{ // SysOp-level commands
// sendPrivate(p, "Ext: ");
}
break;
case OP_SuperModerator:
{ // SuperModerator-level commands
// sendPrivate(p, "Ext: ");
}
break;
case OP_Moderator:
{ // Moderator-level commands
// sendPrivate(p, "Ext: ");
}
break;
case OP_Limited:
{ // Limited-level commands
}
case OP_Player:
{ // Player-level commands
sendPrivate(p, "!about (query me about my function)");
}
}
return;
}
// Specific command help
switch (p->access)
{
case OP_Duke:
case OP_Baron:
case OP_King:
case OP_Emperor:
case OP_RockStar:
case OP_Q:
case OP_God:
case OP_Owner:
{ // Owner-level commands
if (c->checkParam("owner") || c->checkParam("all"))
{
// sendPrivate(p, "Ext: ");
}
}
case OP_SysOp:
{ // SysOp-level commands
if (c->checkParam("sop") || c->checkParam("all"))
{
// sendPrivate(p, "Ext: ");
}
}
case OP_SuperModerator:
{ // SuperModerator-level commands
if (c->checkParam("smod") || c->checkParam("all"))
{
// sendPrivate(p, "Ext: ");
}
}
case OP_Moderator:
{ // Moderator-level commands
if (c->checkParam("mod") || c->checkParam("all"))
{
// sendPrivate(p, "Ext: ");
}
}
case OP_Limited:
{ // Limited-level commands
}
case OP_Player:
{ // Player-level commands
if (c->checkParam("about"))
{
sendPrivate(p, "!about (query me about my function)");
}
}
}
}
void botInfo::gotCommand(Player *p, Command *c)
{
if (!p) return;
if (!c) return;
switch (p->access)
{
case OP_Duke:
case OP_Baron:
case OP_King:
case OP_Emperor:
case OP_RockStar:
case OP_Q:
case OP_God:
case OP_Owner:
{ // Owner-level commands
}
case OP_SysOp:
{ // SysOp-level commands
}
case OP_SuperModerator:
{ // SuperModerator-level commands
if (c->check("version"))
{
sendPrivate(p, "[name:DCmissions.dll] [maker:http://a3site.66ghz.com] [Version 1.0]");
}
}
case OP_Moderator:
{ // Moderator-level commands
}
case OP_Limited:
{ // Limited-level commands
}
case OP_Player:
{ // Player-level commands
if (c->check("about"))
{
sendPrivate(p, "Type !mission to select a mission");
}
else if (c->check("mission")) //lists categories of missions
{
sendPrivate(p, "Type !easymission to view easy difficulty missions that give you 5,000 points");
sendPrivate(p, "Type !medmission to view medium difficulty missions that give you 10,000 points");
sendPrivate(p, "Type !hardmission to view hard difficulty missions that give you 25,000 points");
sendPrivate(p, "Type !expertmission to view expert difficulty missins that give you 50,000 points");
}
else if (c->check("easymission")) // lists easy missions
{
sendPrivate(p, "Easy difficulty missions:");
sendPrivate(p, "Bounty Hunter - collect 30 bounty, type '!easymission:1' do to this mission (without the 's)");
}
else if (c->check("medmission")) // lists medium missions
{
sendPrivate(p, "none yet");
}
else if (c->check("hardmission")) // lists hard missions
{
sendPrivate(p, "none yet");
}
else if (c->check("expertmission")) // lists expert missions
{
sendPrivate(p, "none yet");
}
else if (c->check("easymission:1")) // start easy bounty hunter mission
{
sendPrivate(p,"You started an easy mission \"Bounty Hunter\" Type !abortmission anytime during the game to abort this mission");
loop182:
Uint16 neededbty = 16;
while (p->bounty!=(Uint)neededbty||c->check(p, "abortmission"))
{
c->check("abortmission");
p->bounty;
}
} // end easy bounty hunter mission
}
}
}
void botInfo::gotRemoteHelp(char *p, Command *c, Operator_Level l)
{
// List commands
if (!*c->final)
{
switch (l)
{
case OP_Duke:
case OP_Baron:
case OP_King:
case OP_Emperor:
case OP_RockStar:
case OP_Q:
case OP_God:
case OP_Owner:
{ // Owner-level commands
}
case OP_SysOp:
{ // SysOp-level commands
}
case OP_SuperModerator:
{ // SuperModerator-level commands
}
case OP_Moderator:
{ // Moderator-level commands
}
case OP_Limited:
{ // Limited-level commands
}
case OP_Player:
{ // Player-level commands
}
}
return;
}
// Specific command help
switch (l)
{
case OP_Duke:
case OP_Baron:
case OP_King:
case OP_Emperor:
case OP_RockStar:
case OP_Q:
case OP_God:
case OP_Owner:
{ // Owner-level commands
}
case OP_SysOp:
{ // SysOp-level commands
}
case OP_SuperModerator:
{ // SuperModerator-level commands
}
case OP_Moderator:
{ // Moderator-level commands
}
case OP_Limited:
{ // Limited-level commands
}
case OP_Player:
{ // Player-level commands
}
}
}
void botInfo::gotRemote(char *p, Command *c, Operator_Level l)
{
if (!c) return;
switch (l)
{
case OP_Duke:
case OP_Baron:
case OP_King:
case OP_Emperor:
case OP_RockStar:
case OP_Q:
case OP_God:
case OP_Owner:
{ // Owner-level commands
}
case OP_SysOp:
{ // SysOp-level commands
}
case OP_SuperModerator:
{ // SuperModerator-level commands
}
case OP_Moderator:
{ // Moderator-level commands
}
case OP_Limited:
{ // Limited-level commands
}
case OP_Player:
{ // Player-level commands
}
}
}