X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonFun.mod%2Fcmd_neonfun.c;h=1fd1199665cdde0d61012b749efbafa2fa466cf2;hb=9f992f346db24a642e3fe5362ae377ebe9002aa7;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..1fd1199 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.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -48,6 +48,49 @@ 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", "Nobody 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."}, + + {"NF_BJ_ALREADY_RUNNING", "There is already a BlackJack game running in %s."}, /* {ARGS: "#channel"} */ + {"NF_BJ_ALREADY_JOINED", "You have already joined this BlackJack game."}, + {"NF_BJ_USER_JOINED", "$b%s$b has joined the game."}, /* {ARGS: "TestUser"} */ + {"NF_BJ_CREATED", "$b%s$b started a BlackJack game. Type $b+bj$b to join the game."}, /* {ARGS: "TestUser"} */ + {"NF_BJ_ERROR", "BlackJack program error. Please contact a bot administrator. (ErrCode: %d)"}, /* {ARGS: 0} */ + {"NF_BJ_START", "GAME START"}, + {"NF_BJ_USER_HURRY_UP", "$b%s$b, it's your turn! You can take a card with $bbjtake$b or stop playing with $bbjenough$b"}, /* {ARGS: "TestUser"} */ + {"NF_BJ_TAKE", "You took another card: %s (%d points)."}, /* {ARGS: "[♠A]", 11} */ + {"NF_BJ_YOUR_CARDS", "You have %d points! Your cards: %s"}, /* {ARGS: 18, "[♠A] [♣7] ..."} */ + {"NF_BJ_LESS_PLAYERS", "There are not enough players to start the game."}, + {"NF_BJ_USER_TIMEOUT", "It seems that %s doesn't want another card... (Timeout)"}, /* {ARGS: "TestUser"} */ + {"NF_BJ_POINTS_EXCEEDED", "You have more than 21 points... please use $bbjenough$b to finish."}, + {"NF_BJ_GAME_FINISHED", "Game Finished! Showdown:"}, + {"NF_BJ_RANK", "Rank"}, + {"NF_BJ_NAME", "Name"}, + {"NF_BJ_POINTS", "Points"}, + {"NF_BJ_CARDS", "Cards"}, + {NULL, NULL} }; @@ -62,6 +105,14 @@ 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); + + USER_COMMAND("blackjack", neonfun_cmd_blackjack,0, NULL, CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN); + USER_COMMAND("bjtake", neonfun_cmd_bjtake, 0, NULL, CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN); + USER_COMMAND("bjenough", neonfun_cmd_bjenough, 0, NULL, CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN); + #undef USER_COMMAND }