X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonFun.mod%2Fcmd_neonfun.c;h=82eaaba710b455cb1b83650a27804fe7fda71b05;hb=78e040af3fcc36ab684611c0f98b4381ff420878;hp=4f659c96cf04204fa3976cbc94b6208384d889c8;hpb=526e5dc8858b20cb0a0ba57de87656c29a1aa90d;p=NeonServV5.git diff --git a/src/modules/NeonFun.mod/cmd_neonfun.c b/src/modules/NeonFun.mod/cmd_neonfun.c index 4f659c9..82eaaba 100644 --- a/src/modules/NeonFun.mod/cmd_neonfun.c +++ b/src/modules/NeonFun.mod/cmd_neonfun.c @@ -1,4 +1,4 @@ -/* cmd_neonfun.c - NeonServ v5.4 +/* cmd_neonfun.c - NeonServ v5.5 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -48,6 +48,30 @@ 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_UNO_LESS_PLAYERS", "There are not enough players to start the game."}, + + {"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 "}, /* {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)."}, + {"NF_4WINS_SELF", "You may not play against yourself."}, {NULL, NULL} }; @@ -62,6 +86,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 }