Emistry Posted April 26, 2013 Posted April 26, 2013 inside trunk/src/map/pc.h unsigned int canuseitem_tick; unsigned int request_delay_tick; <------ ADD THIS inside trunk/src/map/atcommand.c @request 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; } Quote
jpnazar Posted April 26, 2013 Author Posted April 26, 2013 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; } Quote
Rayan Posted April 27, 2013 Posted April 27, 2013 /*===================================== * 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. Quote
Question
jpnazar
how to add 3 minute delay on @request?
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.