diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index fb9a1357b0..4675bb9ed1 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -10821,6 +10821,24 @@ ACMD_FUNC( enchantgradeui ){ #endif } +ACMD_FUNC( roulette ){ + nullpo_retr( -1, sd ); + +#if PACKETVER < 20141022 + sprintf( atcmd_output, msg_txt( sd, 798 ), "2014-10-22" ); // This command requires packet version %s or newer. + clif_displaymessage( fd, atcmd_output ); + return -1; +#else + if( !battle_config.feature_roulette ){ + clif_displaymessage( fd, msg_txt( sd, 1497 ) ); // Roulette is disabled + return -1; + } + + clif_roulette_open( sd ); + return 0; +#endif +} + #include "../custom/atcommand.inc" /** @@ -11145,6 +11163,7 @@ void atcommand_basecommands(void) { ACMD_DEFR(stylist, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE), ACMD_DEF(addfame), ACMD_DEFR(enchantgradeui, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE), + ACMD_DEFR(roulette, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE), }; AtCommandInfo* atcommand; int i;