0 Mhalicot 392 Posted January 6, 2014 Released already in plugins : @afk (Mark Solved) Quote Share this post Link to post Share on other sites
0 Enko 9 Posted May 15, 2013 (edited) Open src/map/atcommand.c and add this: /*==========================================* @afk by [cr0wmaster]* Features: 1z required to use. Venders are forbidden to use this command.*------------------------------------------*/ACMD(afk){nullpo_retr(-1, sd);if (sd->vender_id) //check if that player's vending [cr0wmaster]{clif->message(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->message(fd, "You do not have enough money to use this command."); clif->message(fd, "@afk failed."); }return true;} and this: ACMD_DEF(afk) Edited May 16, 2013 by Enko 1 JulioCF reacted to this Quote Share this post Link to post Share on other sites
0 Judas 100 Posted May 16, 2013 in hercules drop this part: _FUNC clif_displaymessage to clif->message return 0; to return true; bam! Quote Share this post Link to post Share on other sites
0 Enko 9 Posted May 16, 2013 The first part you can add after this: (Line 3591) /*==========================================**------------------------------------------*/ACMD(reloaditemdb){nullpo_retr(-1, sd);itemdb_reload();clif->message(fd, msg_txt(97)); // Item database has been reloaded.return true;} and the second part, search this: (line 9713) ACMD_DEF(costume), and add this line: ACMD_DEF(afk), You need to compile. Quote Share this post Link to post Share on other sites
0 jpnazar 0 Posted May 16, 2013 How about im using rathena? Quote Share this post Link to post Share on other sites
@afk please?
Share this post
Link to post
Share on other sites