Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: 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:
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). _________________ SubSpace Discretion: A Third Generation SubSpace Client
flagrace.zip - 97.38 KB
File downloaded or viewed 38 time(s)
|
|