Jump to content
  • 0

@request @pk on/off


Chasewalk

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  94
  • Reputation:   0
  • Joined:  10/17/20
  • Last Seen:  

Hi can i request source of @request commands with delay and @pk on/off thank you guys!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

1 hour ago, Chasewalk said:

Hi can i request source of @request commands with delay and @pk on/off thank you guys!

Google is your friend ?

image.png.c42e03667f6a3c5af59125e90f0c7727.png

and:

image.png.886b0fc9494c26820f4899b44d3a0986.png

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  94
  • Reputation:   0
  • Joined:  10/17/20
  • Last Seen:  

all this @pk and @request its not working 

Edited by Chasewalk
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  94
  • Reputation:   0
  • Joined:  10/17/20
  • Last Seen:  

just like that @request but error on map-server  

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



atcommand.cpp(8848,9): error C3861: 'clif_disp_onlyself': identifier not found

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

On 11/28/2020 at 7:29 PM, Chasewalk said:

just like that @request but error on map-server  

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



atcommand.cpp(8848,9): error C3861: 'clif_disp_onlyself': identifier not found

Then try removing:

clif_disp_onlyself(sd, atcmd_output, strlen(atcmd_output));

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  94
  • Reputation:   0
  • Joined:  10/17/20
  • Last Seen:  

Hi its working but when I use @request there is no delay

Link to comment
Share on other sites

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.

×
×
  • Create New...