added 4wins game
[NeonServV5.git] / src / modules / NeonFun.mod / cmd_neonfun.c
index 4f659c96cf04204fa3976cbc94b6208384d889c8..195749885344a5ee085a35ad02b2edc02860362e 100644 (file)
@@ -48,6 +48,28 @@ static const struct default_language_entry msgtab[] = {
     {"NF_UNO_USER_SKIP", "skipped $b%s$b."}, /* {ARGS: "TestUser"} */
     {"NF_UNO_GAME_FINISHED", "The UNO Game has been finished!"},
     {"NF_UNO_ADD_CARD", "$b%s$b has to take up %d cards. There is still the possibility that he/she has another card of this type...?"},
+    {"NF_UNO_RANK", "Rank"},
+    {"NF_UNO_NAME", "Name"},
+    {"NF_UNO_WON_GAMES", "Won Games"},
+    {"NF_UNO_TOTAL_WON_GAMES", "Total won Games"},
+    
+    {"NF_4WINS_NOT_YOUR_TURN", "Wait your turn!"},
+    {"NF_4WINS_INVALID_COLUMN", "invalid column!"},
+    {"NF_4WINS_COLUMN_FULL", "This column is full!"},
+    {"NF_4WINS_USER_HURRY_UP", "$b%s$b, it's your turn! To put a stone into a column use: 4stone <colomn>"}, /* {ARGS: "TestUser"} */
+    {"NF_4WINS_USER_WON", "$b%s$b won the game!"}, /* {ARGS: "TestUser"} */
+    {"NF_4WINS_ENTER_OPPONENT", "Please enter the nick of the opponent you want to play against as a parameter of 4wins (eg. $b4wins TestUser$b)"},
+    {"NF_4WINS_OPPONENT_NOT_IN_CHAN", "$b%s$b needs to be in this channel to start a game against him/her."}, /* {ARGS: "TestUser"} */
+    {"NF_4WINS_DRAW", "Noone has won this game."},
+    {"NF_4WINS_REQUEST", "$b%s$b wants to play a game against you. use $b4wins$b to start the game."}, /* {ARGS: "TestUser"} */
+    {"NF_4WINS_REQUESTED", "waiting for $b%s$b accepting the game..."}, /* {ARGS: "TestUser"} */
+    {"NF_4WINS_START", "%s accepted the challenge! game starts:"}, /* {ARGS: "TestUser"} */
+    {"NF_4WINS_APPEND_PLAYER", "Please append the nick of a player playing the game you want to view. (eg. $b4view TestUser$b)"},
+    {"NF_4WINS_NO_GAME_FOUND", "Couldn't find a game with this user in this channel."},
+    {"NF_4WINS_VIEWING_ANOTHER_GAME", "You are already viewing another game."},
+    {"NF_4WINS_VIEWING_GAME", "You are now viewing the game."},
+    {"NF_4WINS_GAME_CLOSED", "Game aborted."},
+    {"NF_4WINS_TIMEOUT", "Game aborted (timeout)."},
     {NULL, NULL}
 };
 
@@ -62,6 +84,10 @@ void register_commands() {
     USER_COMMAND("unotake",      neonfun_cmd_unotake,  0,      NULL,     CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN);
     USER_COMMAND("unoplay",      neonfun_cmd_unoplay,  1,      NULL,     CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN);
     
+    USER_COMMAND("4wins",        neonfun_cmd_4wins,    0,      NULL,     CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN);
+    USER_COMMAND("4stone",       neonfun_cmd_4stone,   1,      NULL,     CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN);
+    USER_COMMAND("4view",        neonfun_cmd_4view,    0,      NULL,     CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN);
+    
     #undef USER_COMMAND
     
 }