Well, as i was playing with Ron@!do, he asked me how to make a lil thing.
i told him that it could be complex to explain ingame and he would need acces to shurbbot.cfg.
Well Heres a little Shrubbot Usage Guide:
Level
Levels let you customize what priviledges are available. This is done by adding flags to the flags line. The wildcard flag of * enables ALL priviledges (except flags ! and @). A flag of * with other flags after it, allows all commands EXCEPT those.
Example of a level entry:
[level]
level = 1
name = ^fPrivileged Player
flags = ChaM9i25u
This gives Level 1 admins access to commands: time, help, admintest, resetmyxp, listplayers, uptime, and also special abilites to do commands from team and fireteam chats, they can't be censored, and they can switch teams any time regardless of balance.
Admin
This is the part of the config where it saves a player's info when they are given a level greater than 0. Custom flags can be added per admin that defy the general flags given for their set level.
Example of an admin entry:
[admin]
level = ^>S.S.Meyerinchains
guid = 1234567890abcedf1234567890abcedf
level = 3
flags = +n
This gives S.S.Meyerinchains all level 3 privileges plus the !nextmap command
Ban
Ban entries are created after using the !ban command on a player. Useful info on the ban is stored here.
Example of a ban entry:
[ban]
name = hackerzrule
guid = 1234567890ABCDEF1234567890ABCDEF
ip = 12.345.678.90
reason = aimbot/walhack
made = 09/10/06 08:07:50
expires = 0
banner = ^>S.S.Meyerinchains
This means S.S.Meyerinchains banned hackerzule permanently on 9/10/06 at 08:07:50 for aimbot/wallhacks.
Mute
A new feature to No Quarter, mutes are saved in the shrubbot config. This is done to expand mute features. New features include temp-muting, no name changing of muted players, no private messaging from muted players, and no vote calling from muted players.
Example of a mute entry:
[mute]
name = loudmouth
guid = 1234567890ABCDEF1234567890ABCDEF
ip = 12.345.678.90
reason = won't stfu
made = 09/10/06 08:07:50
expires = 900
banner = ^>S.S.Meyerinchains
This means loudmouth is muted for 15 minutes, after which, he will be auto-unmuted.
Command
This is a feature made popular by the etadmin_mod. Customizable shrubbot commands are now available through the shrubbot config. The command to execute accepts up to 9 arguments too, by using [1] - [9]. This requires g_shortcuts to be set to 1. Each level that should get the command must be specified. Setting it to just 0 will give it to level 0, but no other levels. You must set to 0 1 2 3 4 5.... to it give to all levels. Syntax is as follows:
Example of a command entry:
[command]
command = command
exec = command to execute
desc = description of the command for !help [command]
levels = 0 1 2 3 4 5
Limits:
- Do not define more than 64 commands
- Do not use more than 17 letters for your custom command
Here are a few example custom commands that can be used.
[command]
command = maxpanzers
exec = team_maxPanzers [1]
desc = Sets maximum panzers per team
levels = 4 5
[command]
command = teamspeak
exec = say "^4|^3Teamspeak IP: 82.165.232.186:8767 password: ssts^4|^7"
desc = Show's Teamspeak Server info
levels = 0 1 2 3 4 5
[command]
command = insanity
exec = jp_insanity [1]
desc = Sets jp_insanity
levels = 5
[command]
command = headshot
exec = set g_headshot [1]
desc = Sets headshot mode
levels = 4 5
[command]
command = holyshit
exec = playsound sound/spree/holyshit.wav; cp "^4|^1!!!HOLY SHIT!!!^4|"
desc = Plays HOLY SHIT! sound
levels = 3 4 5
[command]
command = endmap
exec = timelimit .05
desc = Ends current map and goes to intermission, (better than nextmap if map has been playing for a few minutes)
levels = 3 4 5
[command]
command = funmaps
exec = exec funmaps.cfg
desc = Loads fun map cycle
levels = 5
[command]
command = mainmaps
exec = exec objectivecycle.cfg
desc = Loads regular map cycle
levels = 5
[command]
command = be
exec = pb_sv_banempty; chat PB ban list (in memory) has been emptied.
desc = Cleans temp pb ban list. PB temp banned players can re-connect immediately.
levels = 5
Bot custom command examples that can be used.
[command]
command = addbot
exec = bot addbot [1] [2] [3]
desc = Adds bot to game. Syntax: !addbot
. Don't use whitespaces in .
levels = 5
[command]
command = kickbot
exec = bot kickbot [1] [2] [3]
desc = Kicks a bot. Syntax: !kickbot .
levels = 5
[command]
command = minbot
exec = bot minbots [1]
desc = Sets minimum count of bots in game.
levels = 5
[command]
command = maxbot
exec = bot maxbots [1]
desc = Sets maximum count of bots in game.
levels = 5
[command]
command = kickallbots
exec = bot minbots 0; bot maxbot 0; bot kickall
desc = Cleans server from bots.
levels = 5
Limits
Shrubbot system is limited to 31 levels, 32768 admins, 1024 bans and 64 commands.
Original Topic: http://www.shitstorm.org/noquarter/wiki/index.php?title=Shrubbot#Command
It was taken from NoQuarter site, but works on other mods too.
Just a tip:
use: "set g_shortcuts 1" also for shortcuts like [k] - Person you Killed (It may work)
Hope you enjoy it