Server Help

Bot Questions - flagrace

Bak - Sat May 03, 2008 3:56 am
Post subject: flagrace
Here's the flagrace mervbot plugin I made for DSB. Basically you have a spawn location somewhere, surrounded by door tiles. Players can enter one by one and then after 5 seconds the doors open and the players race to touch all of the turf flags. The top players in the arena are recorded, and points can be assigned by moderators to players at their discretion (perhaps after a week of racing). The stats are saved across bot iterations (the bot can go offline without losing scores).

The bot needs sysop access as it changes doormode settings. Here are the commands:

Code: Show/Hide
sendPrivate(p, ".          << OWNER LEVEL COMMANDS >>");
sendPrivate(p, "!resetall                   (resets all times and points)");

sendPrivate(p, ".          << MODERATOR LEVEL COMMANDS >>");
sendPrivate(p, "!enable                     (toggle whether the bot is enabled or not)");
sendPrivate(p, "!givepoints *name*:*amount* (give points to a player)");
sendPrivate(p, "!resetplayer *name*         (resets all the times for a player)");

sendPrivate(p, ".          << PLAYER LEVEL COMMANDS >>");
sendPrivate(p, "!about                      (query me about my function)");
sendPrivate(p, "!status                     (print out the bot status)");
sendPrivate(p, "!next                       (get in line to race)");
sendPrivate(p, "!ss #                       (change to ship #)");
sendPrivate(p, "!quit                       (quit the race)");
sendPrivate(p, "!top *optional:arenaname*   (see the points leaders / fastest times)");


The source is included, as well as a mervbot build 45 .dll (which will probably work with build 46 too).
Aceflyer - Fri May 16, 2008 11:15 pm
Post subject:
Thanks BaK-, this is very helpful. icon_smile.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group