Author |
Message |
Blindmonkey21 Server Help Squatter

Age:36 Gender: Joined: Jul 08 2004 Posts: 252 Location: Arizona Offline
|
Posted: 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?
#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 |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sun Sep 12, 2004 9:03 am Post subject: |
 |
|
|
|
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 |
|
 |
Blindmonkey21 Server Help Squatter

Age:36 Gender: Joined: Jul 08 2004 Posts: 252 Location: Arizona Offline
|
Posted: 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. |
|
Back to top |
|
 |
Deadly Seasoned Helper
Age:34 Gender: Joined: Oct 15 2003 Posts: 148 Location: Ontario Canada Offline
|
Posted: 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? _________________ Known as DeadlySoldier!! in-game..
http://deadly.sscentral.com -- My Bots |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sun Sep 12, 2004 3:50 pm Post subject: |
 |
|
|
|
I think he doesn't want you to "help" him.  |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: 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? |
|
Back to top |
|
 |
Blindmonkey21 Server Help Squatter

Age:36 Gender: Joined: Jul 08 2004 Posts: 252 Location: Arizona Offline
|
Posted: 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  |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: 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. |
|
Back to top |
|
 |
Blindmonkey21 Server Help Squatter

Age:36 Gender: Joined: Jul 08 2004 Posts: 252 Location: Arizona Offline
|
Posted: Tue Sep 14, 2004 9:13 pm Post subject: |
 |
|
|
|
NO!!!!!!!!!!!!!!!!! Anyone with a title |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: 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 |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Sep 15, 2004 6:15 am Post subject: |
 |
|
|
|
... 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 |
|
 |
|