Jump to content

Recommended Posts

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

Share this post


Link to post
Share on other sites
           	 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 by quesoph

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ^^

Share this post


Link to post
Share on other sites

 

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
 
I have a big problem, when I use the command message appears: disconnected from the server, and map_server falls.
Edited by Usui

Share this post


Link to post
Share on other sites

 

 
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

Share this post


Link to post
Share on other sites

 

 

 
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.

Share this post


Link to post
Share on other sites

are you using linux? then get only the src/plugins/afk.c then follow HPM instruction.

 

no, i is using windows!

Edited by Usui

Share this post


Link to post
Share on other sites

 

 

28vaxi8.jpg

 

 

 

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

Step15.JPG

Edited by sevenzz23

Share this post


Link to post
Share on other sites

 

 

 

28vaxi8.jpg

 

 

 

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

Step15.JPG

 

 

 

 

erro:

 

 

 

2uopi81.jpg

 

 

 

 

 

 

Print of Error:

2mewb2x.jpg

Edited by Usui

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 afk
3. find  afk/afk.sln and recompile it.

4. You can now start using your ready made plugins :no1:

 

isnt correct ?

here the ss for you.

I extract than I put on my hercules folder like this..

post-1425-0-07480200-1383931731_thumb.png

 

then i edit the conf/plugins.conf

like this

 

post-1425-0-82556000-1383931972_thumb.png

 

then when open the afk/afk.sln I open with Microsoft Visual Studio 2010 and get this error..

post-1425-0-74042300-1383931733_thumb.png

 

post-1425-0-65997500-1383931544_thumb.png

 

How to fix it sir ?

Share this post


Link to post
Share on other sites

rightclick afk>Configuration Properties>General>

 

search for Platform Toolset, change VS2012(v110) to VS2010(v100)

 

then try to recompile again..

Edited by sevenzz23

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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...

×
×
  • Create New...

Important Information

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