Mhalicot 392 Posted October 24, 2013 File Name: [AtCommand] afk File Submitter: Mhalicot File Submitted: 24 Oct 2013 File Category: Plugins HPM @afk complete package. Compatible with Windows System Only if you are using Linux, ignore other files and use only afk.c some Linux System got many bugs with files what are all ready compiled under VS2012 . (Windows Compiled wont work on *nix) Instruction. 1. Download and extract files using any application that can extract it. 2. extract it in your server directory ex: C:/RO Server/Hercules/ 2.1. edit conf/plugins.conf and add afk 3. Open Hercles/afk/afk.vcxproj and recompile. 4.Your done. you can now try your plugins Note: It is compiled already, so don't bother to recompile it. use recompile if you modify the script. the command is @afk If you want to edit look for src/plugins/afk.c you can also add alias in atcommand.conf If you have any questions feel free to drop a comment. for more info on how to to use HPM visit Here (Tested on Hercules rev. e9d695) Credit: Original file by Rebel and converted by Me Click here to download this file 4 Smit, Slicer, Happy and 1 other reacted to this Quote Share this post Link to post Share on other sites
quesoph 105 Posted October 24, 2013 (edited) if(sd->bl.m == map->mapname2mapid("izlude")) { clif->message(fd, "@afk is not allowed on this map."); return false; } why ? i like afking in izlude. Edited October 24, 2013 by quesoph Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted October 24, 2013 haha.. you can easily modify that and rebuild.. 1 Happy reacted to this Quote Share this post Link to post Share on other sites
Kichi 6 Posted October 31, 2013 got crash when try to use @afkim using MSVS2012 Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 1, 2013 please check the console if theres an error, make sure that you edit conf/plugins.conf or else recompile it, find afk/afk.sln and recompile it.. 1 Happy reacted to this Quote Share this post Link to post Share on other sites
Kichi 6 Posted November 1, 2013 work after recompileso the dll need to recompile for each computer Quote Share this post Link to post Share on other sites
ossi0110 200 Posted November 1, 2013 work after recompile so the dll need to recompile for each computer yes, this is why u NEVER should use Pre-Compiled Plugins , only use the SRC/PLUGIN files and compile the plugin in yourself. Pre Compild plugins are crap ^^ Quote Share this post Link to post Share on other sites
Kichi 6 Posted November 1, 2013 work after recompile so the dll need to recompile for each computer yes, this is why u NEVER should use Pre-Compiled Plugins , only use the SRC/PLUGIN files and compile the plugin in yourself. Pre Compild plugins are crap ^^ yea, im new in HPM ossi & seven take a look HERE Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 1, 2013 work after recompile so the dll need to recompile for each computer yes, this is to update current location. Pre-Compiled features, ready made MSVC. you can easily rebuild and its ready to go without any trouble on setup. 1 Happy reacted to this Quote Share this post Link to post Share on other sites
Slicer 16 Posted November 2, 2013 (edited) I have a big problem, when I use the command message appears: disconnected from the server, and map_server falls. Edited November 2, 2013 by Usui Quote Share this post Link to post Share on other sites
ossi0110 200 Posted November 2, 2013 I have a big problem, when I use the command message appears: disconnected from the server, and map_server falls. be sure to recompile the plugin with make plugins Quote Share this post Link to post Share on other sites
Slicer 16 Posted November 3, 2013 I have a big problem, when I use the command message appears: disconnected from the server, and map_server falls. be sure to recompile the plugin with make plugins I tried to compile, but it gives an error and says it is missing files. Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 3, 2013 are you using linux? then get only the src/plugins/afk.c then follow HPM instruction. 1 Happy reacted to this Quote Share this post Link to post Share on other sites
Slicer 16 Posted November 3, 2013 (edited) are you using linux? then get only the src/plugins/afk.c then follow HPM instruction. no, i is using windows! Edited November 3, 2013 by Usui Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 3, 2013 (edited) obviously you have a wrong setting. please follow this Under Configuration Properties click C/C++ and open General, change Additional Include Directories to ..srccommon;..3rdpartymsinttypesinclude and make sure that you extract all of the files in a proper directory.. hercules/trunk Edited November 3, 2013 by sevenzz23 1 Happy reacted to this Quote Share this post Link to post Share on other sites
Slicer 16 Posted November 3, 2013 (edited) obviously you have a wrong setting. please follow this Under Configuration Properties click C/C++ and open General, change Additional Include Directories to ..srccommon;..3rdpartymsinttypesinclude and make sure that you extract all of the files in a proper directory.. hercules/trunk erro: Print of Error: Edited November 3, 2013 by Usui Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 3, 2013 please follow the instruction.. 1 Happy reacted to this Quote Share this post Link to post Share on other sites
Slicer 16 Posted November 3, 2013 but I fol, and unfortunately gave this error ai the top Quote Share this post Link to post Share on other sites
Samuel 83 Posted November 3, 2013 but I fol, and unfortunately gave this error ai the top You're not building the project within the Hercules Solution Project. Open the hercules-10.sln in your file then do the adding their. Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 3, 2013 but I fol, and unfortunately gave this error ai the top it must be ..srccommon;..3rdpartymsinttypesinclude not the whole location.. 2 Slicer and Happy reacted to this Quote Share this post Link to post Share on other sites
Slicer 16 Posted November 3, 2013 Gave just right now, I apologize for having work for you. Many Voices thank you! Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 4, 2013 Your welcome and I'm happy to hear that, its my pleasure 1 Happy reacted to this Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted November 8, 2013 Sir, I follow like your step Instruction.1. Download and extract files using 7z or any application that can extract it.2. extract it in your server directory ex: C:/RO Server/Hercules/2.1. edit conf/plugins.conf and add afk3. find afk/afk.sln and recompile it. 4. You can now start using your ready made plugins isnt correct ? here the ss for you. I extract than I put on my hercules folder like this.. then i edit the conf/plugins.conf like this then when open the afk/afk.sln I open with Microsoft Visual Studio 2010 and get this error.. How to fix it sir ? Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted November 9, 2013 (edited) rightclick afk>Configuration Properties>General> search for Platform Toolset, change VS2012(v110) to VS2010(v100) then try to recompile again.. Edited November 9, 2013 by sevenzz23 1 Happy reacted to this Quote Share this post Link to post Share on other sites