X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonFun.mod%2Fcmd_neonfun.c;h=9bf3b4b728747babd3a009ba835c4c5fdbbd5d22;hb=564362713bbcb8e40dea9aa2719ad7ce2b6403f5;hp=82eaaba710b455cb1b83650a27804fe7fda71b05;hpb=4d078d69cd2308cc835d7d8f1117e9b18ec37b61;p=NeonServV5.git diff --git a/src/modules/NeonFun.mod/cmd_neonfun.c b/src/modules/NeonFun.mod/cmd_neonfun.c index 82eaaba..9bf3b4b 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.5 +/* 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 @@ -61,7 +61,7 @@ static const struct default_language_entry msgtab[] = { {"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_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"} */ @@ -72,6 +72,26 @@ static const struct default_language_entry msgtab[] = { {"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_NOT_YOUR_TURN", "Wait your turn!"}, + {"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} }; @@ -90,6 +110,10 @@ void register_commands() { 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 }