Jump to content
  • 0
Sign in to follow this  
Pandaaa

how can i make announce only in chat

Question

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;
}

x6jt38.jpg

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.