Jump to content
  • 0

how to add 3 minute delay on @request?


Question

3 answers to this question

Recommended Posts

Posted

where to add this what part?

if( DIFF_TICK( sd->request_delay_tick,gettick() ) > 0 ){
	clif_displaymessage(fd,"There is a 3 minutes delay in using @request command");
	return 0;
}else{
	sd->request_delay_tick = gettick() + 180000; 
}
Posted
/*=====================================
 * Send a @request message to all GMs of lowest_gm_level.
 * Usage: @request <petition>
 *-------------------------------------*/
ACMD_FUNC(request)
{
    if (!message || !*message) {
        clif_displaymessage(sd->fd,msg_txt(sd,277));    // Usage: @request <petition/message to online GMs>.
        return -1;
    }

    sprintf(atcmd_output, msg_txt(sd,278), message);    // (@request): %s
    intif_wis_message_to_gm(sd->status.name, PC_PERM_RECEIVE_REQUESTS, atcmd_output);
if( DIFF_TICK( sd->request_delay_tick,gettick() ) > 0 ){
    clif_displaymessage(fd,"There is a 5 seconds delay in using @go command");
    return 0;
}else{
    sd->request_delay_tick = gettick() + 180000; 
}
    clif_disp_onlyself(sd, atcmd_output, strlen(atcmd_output));
    clif_displaymessage(sd->fd,msg_txt(sd,279));    // @request sent.
    return 0;
}
 


 

i think this would work

 : find "

Send a @request message to all GMs of lowest_gm_level." on atcommand replace with above.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...