2005-03-10 23:54:14 +00:00
|
|
|
/* YahtzeeServ - Yahtzee Game Service - NeoStats Addon Module
|
2006-01-26 15:39:26 +00:00
|
|
|
** Copyright (c) 2003-2006 Justin Hammond, Mark Hetherington, Jeff Lang
|
2005-03-10 23:54:14 +00:00
|
|
|
**
|
|
|
|
** This program is free software; you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation; either version 2 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with this program; if not, write to the Free Software
|
|
|
|
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
** USA
|
|
|
|
**
|
|
|
|
** YahtzeeServ CVS Identification
|
|
|
|
** $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "neostats.h" /* Required for bot support */
|
|
|
|
#include "yahtzeeserv.h"
|
|
|
|
|
2005-03-25 23:42:52 +00:00
|
|
|
const char *ys_help_set_exclusions[] = {
|
|
|
|
"\2EXCLUSIONS <ON|OFF>\2 - Use Global Exclusion Lists",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2005-03-10 23:54:14 +00:00
|
|
|
const char *ys_help_set_chan[] = {
|
2005-03-25 23:42:52 +00:00
|
|
|
"\2CHAN <#Channel>\2 - Set Main Channel Yahtzee Games Play in",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2005-03-25 23:42:52 +00:00
|
|
|
const char *ys_help_set_multichan[] = {
|
|
|
|
"\2MULTICHAN <ON|OFF>\2 - Enable games outside Main Game Channel.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_set_chanoponly[] = {
|
|
|
|
"\2CHANOPONLY <ON|OFF>\2 - Restrict starting of games outside main channel to ChanOps only.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2005-10-17 15:01:51 +00:00
|
|
|
const char *ys_help_set_htmlpath[] = {
|
|
|
|
"\2HTMLPATH <path>\2",
|
|
|
|
"Set the full pathname including filename used to write HTML",
|
|
|
|
"high scores when HTML is enabled",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_set_html[] = {
|
|
|
|
"\2HTML <ON|OFF>\2",
|
|
|
|
"Enable or disable HTML High Scores generation.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2005-03-10 23:54:14 +00:00
|
|
|
const char *ys_help_start[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Start Game",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2START\2",
|
2005-03-25 23:42:52 +00:00
|
|
|
"Syntax: \2START <#channel>\2",
|
|
|
|
"",
|
|
|
|
"!Start in the configured Game Channel starts a game.",
|
2005-03-10 23:54:14 +00:00
|
|
|
"",
|
2005-03-25 23:42:52 +00:00
|
|
|
"Start <#Channel> starts a game in the specified #Channel",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_stop[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Stops Game",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2STOP\2",
|
|
|
|
"",
|
|
|
|
"Stops Currently Running Yahtzee Game.",
|
|
|
|
"Only Available to a Current Player, if",
|
|
|
|
"only one player playing. otherwise players",
|
|
|
|
"should use REMOVE to leave the game.",
|
2005-03-25 23:42:52 +00:00
|
|
|
"",
|
|
|
|
"NOTE: ChanOP/IRCop access overrides command restrictions.",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_join[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Join a game currently Starting",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2JOIN\2",
|
|
|
|
"",
|
|
|
|
"Joins you to the Currently Starting Game.",
|
|
|
|
"",
|
|
|
|
"NOTE: Joins are allowed once game has",
|
|
|
|
"started, only untill each player has",
|
|
|
|
"scored their first points",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_remove[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Remove From Game",
|
2005-03-25 23:42:52 +00:00
|
|
|
"Syntax: \2REMOVE\2",
|
|
|
|
"Syntax: \2REMOVE <nick>\2 (ChanOP/IRCop Only)",
|
2005-03-10 23:54:14 +00:00
|
|
|
"",
|
2005-03-25 23:42:52 +00:00
|
|
|
"Removes you from the current game.",
|
2005-03-10 23:54:14 +00:00
|
|
|
"",
|
2005-03-25 23:42:52 +00:00
|
|
|
"With Nick specified, removes Nick from the curent Game.",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_players[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Display Player List In Channel",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2PLAYERS\2",
|
|
|
|
"",
|
|
|
|
"Displays List of Current Players in channel.",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_turn[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Display Current Player In Channel",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2TURN\2",
|
|
|
|
"",
|
|
|
|
"Shows Current Player waiting to roll dice, or score.",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_pass[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Passes game to the specified nick",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2PASS\2 <nick>",
|
|
|
|
"",
|
2005-03-25 23:42:52 +00:00
|
|
|
"Passes your game to nick. the nick MUST be",
|
|
|
|
"connected to the network, and in the channel.",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_dice[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Shows your currently rolled dice",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2DICE\2",
|
|
|
|
"",
|
|
|
|
"Shows the dice you have currently",
|
|
|
|
"rolled, in channel",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_sheet[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Shows your current score sheet",
|
2005-03-25 23:42:52 +00:00
|
|
|
"Syntax: \2SHEET\2",
|
2005-03-10 23:54:14 +00:00
|
|
|
"",
|
|
|
|
"Shows your current Score Sheet in channel",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_roll[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Rolls the specified Dice, keeping the rest",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2ROLL\2 <#> <#> <#> <#> <#>",
|
|
|
|
"",
|
|
|
|
"Rolls the specified Dice",
|
|
|
|
"",
|
|
|
|
"NOTE: Dice are numbered 1 to 5, from left to right",
|
|
|
|
"the position number should be used, not the number showing",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_keep[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Keeps the specified Dice, and rolls the rest",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2KEEP\2 <#> <#> <#> <#> <#>",
|
|
|
|
"",
|
|
|
|
"Keeps the specified Dice, and rolls the rest",
|
|
|
|
"",
|
|
|
|
"NOTE: Dice are numbered 1 to 5, from left to right",
|
|
|
|
"the position number should be used, not the number showing",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_score[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Scores to the entry on the score sheet",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2SCORE\2 <entry>",
|
|
|
|
"",
|
|
|
|
"Scores to the specified entry on the score sheet",
|
|
|
|
"",
|
|
|
|
"Valid Entires are :",
|
|
|
|
"1 , 2 , 3 , 4 , 5 , 6 , fh",
|
|
|
|
"ss , ls , 3k , 4k , c , y",
|
2005-03-26 00:31:26 +00:00
|
|
|
"",
|
|
|
|
"This command is used in Channel ONLY.",
|
2005-03-10 23:54:14 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_top10[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Shows the Top 10 Score Lists in channel",
|
2005-03-25 23:42:52 +00:00
|
|
|
"Syntax: \2TOP10 <?>\2",
|
2005-03-10 23:54:14 +00:00
|
|
|
"",
|
|
|
|
"Displays the Top 10 Score Lists in channel",
|
|
|
|
"",
|
|
|
|
"With no parameters the Top 10 overall is listed.",
|
|
|
|
"\"top10 d\" Lists the Top 10 Scores for the current day",
|
|
|
|
"\"top10 w\" Lists the Top 10 Scores for the current week",
|
|
|
|
"\"top10 m\" Lists the Top 10 Scores for the current month",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_high[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Displays the Overall High Score Page Selected, In Channel",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2HIGH\2 <#>",
|
|
|
|
"",
|
|
|
|
"Displays the Overall High Score Page Specified, in Channel",
|
|
|
|
"Valid Pages are numbered from 1 to 5",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_rules[] = {
|
2005-05-25 17:44:00 +00:00
|
|
|
"Displays the rules pages",
|
2005-03-10 23:54:14 +00:00
|
|
|
"Syntax: \2RULES\2 <#>",
|
|
|
|
"",
|
|
|
|
"Displays the selected Rules Page",
|
|
|
|
"Valid page numbers are from 1 to 4",
|
|
|
|
NULL
|
|
|
|
};
|
2005-03-25 23:42:52 +00:00
|
|
|
const char *ys_help_rules_page_0[] = {
|
|
|
|
"There are currently 4 rule pages",
|
|
|
|
"To view each page use the rules command",
|
|
|
|
"placing the page number after the command",
|
|
|
|
"E.G. '!rules 2' to display page 2.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_rules_page_1[] = {
|
|
|
|
"Objective of the Game",
|
|
|
|
"---------------------",
|
|
|
|
" ",
|
|
|
|
"Yahtzee can be played alone or in a group.",
|
|
|
|
"The Game being the same for groups, but with players taking",
|
|
|
|
"turns to roll the dice, with the highest score winning.",
|
|
|
|
" ",
|
|
|
|
"The game consists of 13 turns.",
|
|
|
|
"In each turn, you roll the dice and then score the roll in one of 13 slots.",
|
|
|
|
"You must score once in each slot which means that some slots may have to be",
|
|
|
|
"sacrificed (score 0 in).",
|
|
|
|
" ",
|
|
|
|
"Each Slot has its own rules for scoring, which will be explained below",
|
|
|
|
" ",
|
|
|
|
"The object of the game is to maximize your total score.",
|
|
|
|
" ",
|
|
|
|
"After all Players have scored in all 13 Slots, the game ends.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_rules_page_2[] = {
|
|
|
|
"Rolling the Dice",
|
|
|
|
"----------------",
|
|
|
|
" ",
|
|
|
|
"Yahtzee is played with 5 dice, each dice is referenced by",
|
|
|
|
"it's position and not the number it rolls. The Dice are numbered",
|
|
|
|
"from left to right in their postions as 1 through 5",
|
|
|
|
" ",
|
|
|
|
"The Dice are rolled automatically for you when it is your turn.",
|
|
|
|
"You then have 2 further chances to improve your score by",
|
|
|
|
"rolling or keeping the dice.",
|
|
|
|
" ",
|
|
|
|
"After the third roll (or before if you wish) you must select",
|
|
|
|
"a slot to score against, your score will be automatically",
|
|
|
|
"calculated including any bonus points, and added to your Total.",
|
|
|
|
" ",
|
|
|
|
"Play will then continue with the next Player.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_rules_page_3[] = {
|
|
|
|
"Scoring - Part 1",
|
|
|
|
"----------------",
|
|
|
|
" ",
|
|
|
|
"Once you have the dice combination you wish, score the roll in",
|
|
|
|
"one of the 13 slots. Do this by typing !Score and the slot code",
|
|
|
|
"you wish to score in. Each slot may only be used once per game.",
|
|
|
|
"To see the score slot codes, type !score without a slot code.",
|
|
|
|
" ",
|
|
|
|
"Each Slot has its own scoring rules as listed:",
|
|
|
|
" ",
|
|
|
|
"Upper Slots:",
|
|
|
|
" ",
|
|
|
|
"One's through to Six's: Total of the dice matching the score slot.",
|
|
|
|
"E.G. rolling a 4 3 4 6 4 and scoring in Four's would give 12 points.",
|
|
|
|
"The same roll scored in the One's Two's or Fives slot would score 0,",
|
|
|
|
"3 points for the Three's slot, or 6 points for the Six's slot.",
|
|
|
|
" ",
|
|
|
|
"A Bonus 35 points is received if scoring 63 points or more in One's To Six's",
|
|
|
|
"NOTE: Scoring 3 dice in each slot will equal 63 points, enough for the bonus.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ys_help_rules_page_4[] = {
|
|
|
|
"Scoring - Part 2",
|
|
|
|
"----------------",
|
|
|
|
" ",
|
|
|
|
"Lower Slots:",
|
|
|
|
"Score is 0 if requirements not met for the slot.",
|
|
|
|
" ",
|
|
|
|
"Full House : 25 points (Three dice the Same, and Two dice the same)",
|
|
|
|
"Short Straight : 30 points (Four dice in order, E.G. 3 4 5 6)",
|
|
|
|
"Long Straight : 40 points (All Five dice in order, E.G. 1 2 3 4 5)",
|
|
|
|
"3 of a Kind : Total of all dice (Three dice must be the same)",
|
|
|
|
"4 of a Kind : Total of all dice (Four dice must be the same)",
|
|
|
|
"Chance : Total of all dice (No Requirements)",
|
|
|
|
"Yahtzee : 50 points (ALL dice must be the same)",
|
|
|
|
" ",
|
|
|
|
"Yahtzee Bonus : If after Scoring 50 points on Yahtzee, another",
|
|
|
|
"Yahtzee is rolled a Bonus 100 points is added to your total.",
|
|
|
|
"NOTE: You must receive points when scoring to receive the Bonus.",
|
|
|
|
NULL
|
|
|
|
};
|
2005-10-17 15:01:51 +00:00
|
|
|
|
|
|
|
const char *ys_help_forcehtml[] = {
|
|
|
|
"Force output of the HTML High Scores",
|
|
|
|
"Syntax: \2FORCEHTML\2",
|
|
|
|
"",
|
|
|
|
"Forces an immediate update of the HTML High Scores output.",
|
|
|
|
NULL
|
|
|
|
};
|