Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
merv help

 
Post new topic   Reply to topic Printable version
 View previous topic  A .lvz "house" bot. Post :: Post TM Baw Plugin  View next topic  
Author Message
Blindmonkey21
Server Help Squatter


Age:36
Gender:Gender:Male
Joined: Jul 08 2004
Posts: 252
Location: Arizona
Offline

PostPosted: Sun Sep 12, 2004 12:20 am    Post subject: merv help Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sun Sep 12, 2004 9:03 am    Post subject: Reply to topic Reply with quote

It's not that complicated, maybe this clears it up for you.

  • gotHelp
    - The part under "if (!*c->final)":
    Should send a list of commands available for the player/operator based on their access level.
    Triggered when "[!|.|@]help" was used.
    User must be in the same arena as the bot to use this.
    - The part under "// Specific command help":
    Should send more specific information about a single command, like "!help <command>" should tell the user about the available switches for the command if there are any.
    User must be in the same arena as the bot to use this.
  • gotCommand
    Specify what the plugin should do here when a command is used.
    User must be in the same arena as the bot to use this.
  • gotRemoteHelp
    The same as gotHelp, read above, except this is for people who are not in the same arena as the bot, that's why it's called remote.
  • gotRemote
    Again this is the same for gotCommand, this time it's for remote people.

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.
Back to top
View users profile Send private message Add User to Ignore List
Blindmonkey21
Server Help Squatter


Age:36
Gender:Gender:Male
Joined: Jul 08 2004
Posts: 252
Location: Arizona
Offline

PostPosted: Sun Sep 12, 2004 9:48 am    Post subject: Reply to topic Reply with quote

Thanks there wasn't much explanation in the code so I didn't really understand it but what you said really helped.
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Deadly
Seasoned Helper


Age:34
Gender:Gender:Male
Joined: Oct 15 2003
Posts: 148
Location: Ontario Canada
Offline

PostPosted: Sun Sep 12, 2004 3:11 pm    Post subject: Re: merv help Reply to topic Reply with quote

Blindmonkey21 wrote:
and deadly I don't need help.


uhh.. WHAT THE FUCK?
_________________
Known as DeadlySoldier!! in-game..

http://deadly.sscentral.com -- My Bots
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address MSN Messenger
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sun Sep 12, 2004 3:50 pm    Post subject: Reply to topic Reply with quote

I think he doesn't want you to "help" him. sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Sep 12, 2004 5:00 pm    Post subject: Reply to topic Reply with quote

Are you making a new plugin or just want to run the bot with a plugin that someone else made?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Blindmonkey21
Server Help Squatter


Age:36
Gender:Gender:Male
Joined: Jul 08 2004
Posts: 252
Location: Arizona
Offline

PostPosted: Mon Sep 13, 2004 9:12 pm    Post subject: Reply to topic Reply with quote

trying to make a new plugin

edit:hey I just noticed that MGB gave me a title tongue.gif grav_eek.gif
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Assassin2684
Server Help Squatter


Age:34
Gender:Not sure
Joined: Jul 27 2004
Posts: 990
Location: Florida
Offline

PostPosted: Mon Sep 13, 2004 9:21 pm    Post subject: Reply to topic Reply with quote

No he dident everyone gets that one, i think its like yuor 40 somthin post. lol.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Blindmonkey21
Server Help Squatter


Age:36
Gender:Gender:Male
Joined: Jul 08 2004
Posts: 252
Location: Arizona
Offline

PostPosted: Tue Sep 14, 2004 9:13 pm    Post subject: Reply to topic Reply with quote

NO!!!!!!!!!!!!!!!!! new_snipersmilie.gif Anyone with a title
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Tue Sep 14, 2004 11:11 pm    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Wed Sep 15, 2004 6:15 am    Post subject: Reply to topic Reply with quote

... Don't ask.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 80 page(s) served in previous 5 minutes.

phpBB Created this page in 0.431183 seconds : 35 queries executed (93.1%): GZIP compression disabled