Pandaaa 2 Posted June 5, 2016 atcommand.c ACMD(bst) { if ( !message || !*message ) { clif->message(fd, "Please, enter a message (usage: @bst <message>)."); return false; } if ( sd->bst_delay + 60 > (int)time(NULL) ) { clif->message(fd, "There is a 60 seconds delay of using this command again"); return false; } sprintf( atcmd_output, "[Market] %s : %s", sd->status.name, message ); intif->broadcast2( atcmd_output, (int)strlen(atcmd_output)+1, strtol("0x9999FF", NULL, 0), 0x190, 12, 0, 0 ); sd->bst_delay = (int)time(NULL); return true; } Quote Share this post Link to post Share on other sites
atcommand.c
Share this post
Link to post
Share on other sites