Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
flagrace

 
Post new topic   Reply to topic Printable version
 View previous topic  Bot Plugin Post :: Post TWCore with mySql databases...  View next topic  
Author Message
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sat May 03, 2008 3:56 am    Post subject: flagrace Reply to topic Reply with quote

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).
_________________
SubSpace Discretion: A Third Generation SubSpace Client




flagrace.zip - 97.38 KB
File downloaded or viewed 36 time(s)
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Aceflyer
Newbie


Gender:Gender:Male
Joined: Feb 13 2008
Posts: 22
Offline

PostPosted: Fri May 16, 2008 11:15 pm    Post subject: Reply to topic Reply with quote

Thanks BaK-, this is very helpful. icon_smile.gif
_________________
SSCC Star Wars Empire Sysop
MERVBot.com Site Administrator
GetContinuum.com Site Administrator
SSC Forum Operator
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 679 page(s) served in previous 5 minutes.

phpBB Created this page in 0.535989 seconds : 29 queries executed (83.5%): GZIP compression disabled