Staredit Network

Staredit Network -> Miscellaneous -> advanced stealthbot help needed
Report, edit, etc...Posted by Urmom(U) on 2005-01-22 at 12:03:32
Ok, well I'm trying to add some more commands for the clan bot but I'm unsure of how to add the scripts. I've visited the homepage and looked at their tutorials but they give jack censored.gif for help for people that are just starting out with scripting. So could somebody please help me!

DO NOT POST IF YOU ARE UNSURE OR ANYTHING LIKE "WHAT'S A STEALTHBOT"
Report, edit, etc...Posted by RexyRex on 2005-01-22 at 12:09:57
You don't even need scripts. You just need to look in the readme.

QUOTE(The SB Readme)
Custom Commands

How to use the Custom Commands system! I know I'm gonna get quite a few emails on this one..

FORMAT FOR CUSTOM COMMANDS
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
.cmdadd <r> <w> <a>

<r> = Required access to use the command, between 0 and 999. (For public commands like !help, use 0.)
<w> = Command keyword
<a> = Actions to take if a user uses the command

The custom commands are used like other bot commands, ".commandword arguments".
This system is very similar to zDSBot's system.
You can use unlimited arguments in your custom commands; number them accordingly. Argument 1 would be %1, Argument 2 is %2 and so on.

You can define another line by using "&_" (without quotes, _ is a space) in your command. Please note THERE MUST BE A SPACE after the &.

COMMAND EXAMPLES
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
COMMAND:
.cmdadd 50 argtest Argument 1: %1& Argument 2: %2& Argument 3: %3

USAGE:
<Stealth> .argtest First Second Third

BOT'S RESPONSE:
<StealthBot> Argument 1: First
<StealthBot> Argument 2: Second
<StealthBot> Argument 3: Third

Notice how the "& " breaks up lines. You can theoretically achieve something like 32,000 arguments (%32767).

Now the classic UltimateBot command:

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
COMMAND:
.cmdadd 50 serve *RexyRex pours a refreshing glass of %rest& *RexyRex hands the glass to %1, compliments of %0 smile.gif

USAGE:
<Stealth> .serve Mad Pepsi One

BOT'S RESPONSE:
<StealthBot pours a refreshing glass of pepsi>
<StealthBot serves the pepsi to Mad, compliments of Stealth smile.gif>

%0 stands for the user who executed the command.
%1 is the first argument, or the person being served.
%rest is the rest of the message, after the highest-numbered argument you used in making the Custom Command.
In this case, what you want to serve to them.

Report, edit, etc...Posted by Urmom(U) on 2005-01-22 at 12:28:21
Im not sure but maybe i could try making a custom command to execute the old command but on the website it said to add a script. BTW, you you know how to add scripits? There are some neat ones id like to add. Same with plugins but im not sure how to use that either. sad.gif
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-22 at 12:30:14
Personally, I would head over to our affiliate scindex. They probaly know more about bots then we do.
Report, edit, etc...Posted by Urmom(U) on 2005-01-22 at 12:33:17
Ok yoshi, ill check over there.
<edit> i couldnt really find anything useful over there :/ they just have a massive bot dldb
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-22 at 14:01:36
Their forums I meant.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-01-22 at 14:15:25
There were people there that did, but they don't go there anymore. =\ But I know people on the forum that know other people with bots, I'll ask him to get them to find information for you.

SCI forums
Report, edit, etc...Posted by LegacyWeapon on 2005-01-22 at 17:55:44
What about their forums?
http://www.stealthbot.net/forum/
Report, edit, etc...Posted by Urmom(U) on 2005-01-23 at 20:05:28
ive been on there legacy but they dont really tell you where or how to add the scripts.
Next Page (1)