Added an atcommand for roulette (#7433)
This commit is contained in:
parent
03f04ed507
commit
a090a0a7ba
@ -10821,6 +10821,24 @@ ACMD_FUNC( enchantgradeui ){
|
|||||||
#endif
|
#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"
|
#include "../custom/atcommand.inc"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11145,6 +11163,7 @@ void atcommand_basecommands(void) {
|
|||||||
ACMD_DEFR(stylist, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE),
|
ACMD_DEFR(stylist, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE),
|
||||||
ACMD_DEF(addfame),
|
ACMD_DEF(addfame),
|
||||||
ACMD_DEFR(enchantgradeui, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE),
|
ACMD_DEFR(enchantgradeui, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE),
|
||||||
|
ACMD_DEFR(roulette, ATCMD_NOCONSOLE|ATCMD_NOAUTOTRADE),
|
||||||
};
|
};
|
||||||
AtCommandInfo* atcommand;
|
AtCommandInfo* atcommand;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user