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

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.