Server Help

Bot Questions - merv help

Blindmonkey21 - Sun Sep 12, 2004 12:20 am
Post subject: merv help
I am having a ton of problems with Merv. I have the tutorial but I don't understand what to put in the spots. Can someone write a more descriptive tutorial?
Code: Show/Hide
#include "spawn.h"

#include "..\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:default.dll] [maker:cat02e@fsu.edu] [build:8]");
         }
      }
   case OP_Moderator:
      {   // Moderator-level commands
      }
   case OP_Limited:
      {   // Limited-level commands
      }
   case OP_Player:
      {   // Player-level commands
         if (c->check("about"))
         {
            sendPrivate(p, "I am a plain vanilla flavored bot.  Yup, just as plain and useless as can be.");
         }
      }
   }
}

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
      }
   }
}


plz help me out I am really confused. Is this even what I am supposed to use?

I am a newb plz flame me then help me and deadly I don't need help.
Solo Ace - Sun Sep 12, 2004 9:03 am
Post subject:
It's not that complicated, maybe this clears it up for you.


If this didn't help you just put some sendPublic()'s in them and make them send some random text, then try to trigger them and see which code is being executed.
I doubt you know how - if you want to know I or someone else will explain to you - how to debug your plugin.
Blindmonkey21 - Sun Sep 12, 2004 9:48 am
Post subject:
Thanks there wasn't much explanation in the code so I didn't really understand it but what you said really helped.
Deadly - Sun Sep 12, 2004 3:11 pm
Post subject: Re: merv help
Blindmonkey21 wrote:
and deadly I don't need help.


uhh.. WHAT THE FUCK?
Solo Ace - Sun Sep 12, 2004 3:50 pm
Post subject:
I think he doesn't want you to "help" him. sa_tongue.gif
Bak - Sun Sep 12, 2004 5:00 pm
Post subject:
Are you making a new plugin or just want to run the bot with a plugin that someone else made?
Blindmonkey21 - Mon Sep 13, 2004 9:12 pm
Post subject:
trying to make a new plugin

edit:hey I just noticed that MGB gave me a title tongue.gif grav_eek.gif
Assassin2684 - Mon Sep 13, 2004 9:21 pm
Post subject:
No he dident everyone gets that one, i think its like yuor 40 somthin post. lol.
Blindmonkey21 - Tue Sep 14, 2004 9:13 pm
Post subject:
NO!!!!!!!!!!!!!!!!! new_snipersmilie.gif Anyone with a title
50% Packetloss - Tue Sep 14, 2004 11:11 pm
Post subject:
Yah, some post numbers have wierd titles and then on your next post it will go away. But im sure if you ask him, he will hook you up with a title
Cyan~Fire - Wed Sep 15, 2004 6:15 am
Post subject:
... Don't ask.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group