Jump to content
  • 0
Sign in to follow this  
Kei

is @afk command compatible with hercules??

Question

is it compatible??

 

heres the code

 

/*==========================================* @afk by [cr0wmaster]* Features: 1z required to use. Venders are forbidden to use this command.*------------------------------------------*/int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message){nullpo_retr(-1, sd);if (sd->vender_id)  //check if that player's vending [cr0wmaster]{clif_displaymessage(fd, "You can't use this command while you're vending.");}elseif(sd->status.zeny >= 1)   {			  sd->status.zeny += -1;		   clif_updatestatus(sd, SP_ZENY);		   sd->state.logout = 1;clif_authfail_fd(fd, 15);   } else {	   clif_displaymessage(fd, "You do not have enough money to use this command.");	   clif_displaymessage(fd, "@afk failed.");		   }return 0;}

 

and how can i make it to make a pub when they execute the commands? and written in the pub is AFK?

Share this post


Link to post
Share on other sites

1 answer 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.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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