Shikazu 11 Posted June 2, 2013 (edited) The plugin is working but has no timeout and you can sit wherever you want. It is being reworked, when i have found out how to access the config's from a plugin. Here it is: https://github.com/shikazu/hpm-plugins/blob/master/src/plugins/afk.c just compile it, add it to your plugins.conf and type @afk ingame A little screenshot how it looks ingame, since you can't see it (afk logs you out, but you are still sitting there ) ~Shikazu Edited June 2, 2013 by Shikazu 2 Rebel and jaBote reacted to this Quote Share this post Link to post Share on other sites
quesoph 105 Posted July 1, 2013 (edited) ACMD(afk){ sd->state.autotrade = 1; sd->state.monster_ignore = 1; pc_setsit(sd); skill->sit(sd,1); clif->sitting(&sd->bl); clif->changelook(&sd->bl,LOOK_HEAD_TOP,471); clif->specialeffect(&sd->bl, 234,AREA); clif->authfail_fd(fd, 15); return 0;} return 0; should be return 1; or it will display @afk failed. Edited July 1, 2013 by quesoph Quote Share this post Link to post Share on other sites
ossi0110 200 Posted July 1, 2013 nope it should be return true; Hercules changed it Quote Share this post Link to post Share on other sites
quesoph 105 Posted July 1, 2013 1 is true. lol Quote Share this post Link to post Share on other sites
jTynne 101 Posted July 3, 2013 I've added "afk" to the /conf/plugins.conf, added the afk.c to src/plugins/, recompiled and started the server, and when used in-game, says the command doesn't exist. Am I missing something..? Quote Share this post Link to post Share on other sites
thanna 11 Posted July 3, 2013 I've added "afk" to the /conf/plugins.conf, added the afk.c to src/plugins/, recompiled and started the server, and when used in-game, says the command doesn't exist. Am I missing something..? Hi sir, I would just like to ask you if you could check your map server if it loaded the plugin correctly Quote Share this post Link to post Share on other sites
quesoph 105 Posted July 3, 2013 I've added "afk" to the /conf/plugins.conf, added the afk.c to src/plugins/, recompiled and started the server, and when used in-game, says the command doesn't exist. Am I missing something..? You need to compile the plugins and it should be fine. Building HPM Plugin for gcc Building HPM Plugin for MSVC Quote Share this post Link to post Share on other sites
Shikazu 11 Posted July 3, 2013 I would like to mention that this command can cause some griefers on your server, since there are no checks if this command is allowed in whatever way. A big problem could be that ppl start to mob huuuuge mobs and then type in @afk and are ignored by the monsters. If the monsters are aggressive, ppl in the near will be attacked immediately.. This is only one thing, there could be a lot of more EDIT:// return is fixed in git! Thank you guys! ~Shikazu Quote Share this post Link to post Share on other sites
nanakiwurtz 11 Posted July 3, 2013 Or disable this command except in a town map. Quote Share this post Link to post Share on other sites
thanna 11 Posted July 4, 2013 I would like to mention that this command can cause some griefers on your server, since there are no checks if this command is allowed in whatever way. A big problem could be that ppl start to mob huuuuge mobs and then type in @afk and are ignored by the monsters. If the monsters are aggressive, ppl in the near will be attacked immediately.. This is only one thing, there could be a lot of more EDIT:// return is fixed in git! Thank you guys! ~Shikazu sir Shikazu did you find out how to add settings on conf file like a timer for afk? Quote Share this post Link to post Share on other sites
Shikazu 11 Posted July 4, 2013 No yet, because i have not that much time for that, but i can check it out later, if you want me to do so. ~Shikazu Quote Share this post Link to post Share on other sites
simplynice 1 Posted July 15, 2013 (edited) Hello Sir Shikazu, i already compiled the @afk plugin on my server using Visual Studio. It's working. I migrated / uploaded my server to my VPS, recompiled it and the server is running and @afk seems not working, says unknown command. groups.conf afk: true Edit: My VPS is under unix distribution. Edited July 15, 2013 by simplynice Quote Share this post Link to post Share on other sites
Xgear 44 Posted July 15, 2013 Did you compile plugins on linux? You have to type "make plugins" in order to compile them. (Windows Compiled wont work on *nix) Quote Share this post Link to post Share on other sites
OnNplay 27 Posted July 15, 2013 This afk very popular since eathena. Why not just to have this command in Hercules directly, please any one of core developer interesting to explain why not? 1 jTynne reacted to this Quote Share this post Link to post Share on other sites
jTynne 101 Posted July 15, 2013 I second that notion @ OnNplay; I've made use of this since.. gosh, at least 2010? /heh Quote Share this post Link to post Share on other sites
jaBote 438 Posted July 15, 2013 In fact, when I made my first server I thought this was bundled by default because all other servers I played before had it. Quote Share this post Link to post Share on other sites
OnNplay 27 Posted July 16, 2013 For convenience of compiling, this AFK source should go into Hercules directly instead of plugin. Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted August 13, 2013 For convenience of compiling, this AFK source should go into Hercules directly instead of plugin. agree Quote Share this post Link to post Share on other sites
serverkid 1 Posted August 16, 2013 anybody know why i am getting segmentation fault after enabling this plugin? Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted August 30, 2013 anybody know why i am getting segmentation fault after enabling this plugin? same here. Quote Share this post Link to post Share on other sites
jaBote 438 Posted August 30, 2013 I've seen a recent HPM update which seems to fix most current HPM issues. Make sure to get latest revision and check if that works. Quote Share this post Link to post Share on other sites
Viray420 1 Posted April 5, 2016 please update. im using latest hercules Quote Share this post Link to post Share on other sites