Jump to content
  • 0
Sign in to follow this  
Luffy

[HELP] how to install @afk in linux VPS

Question

i read about this. is this right?

if you are using Linux, ignore other files and use only afk.c then put it in src/plugins/afk.c ?

 

then what next??

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Open Makefile.in in src/plugins/ and edit line

MYPLUGINS =

Write there name of plugin, in your case afk. If you'll have more just add them after space. You'll have this:

MYPLUGINS = afk

Now do ./configure && make all from Herc directory or, if you have server compiled already, do make plugins.

 

Also, after that open conf/plugins.conf and add your plugin there.

Since it's a command don't forget to add it to conf/groups.conf. If you want you can add aliases for this command in conf/atcommand.conf.

Edited by Garr

Share this post


Link to post
Share on other sites
  • 0

Open Makefile.in in src/plugins/ and edit line

MYPLUGINS =

Write there name of plugin, in your case afk. If you'll have more just add them after space. You'll have this:

MYPLUGINS = afk

Now do ./configure && make all from Herc directory or, if you have server compiled already, do make plugins.

 

Also, after that open conf/plugins.conf and add your plugin there.

Since it's a command don't forget to add it to conf/groups.conf. If you want you can add aliases for this command in conf/atcommand.conf.

hi Garr , Thank you for the response, but Haru already help me out, /no1 thank you.

 

BTW do you know how i can change the message

 

i dont want to have a auto reply like this :

 

" Sever: user is in autotrade mode and cannot receive whispered messages. " ?

 

how can i change it not to have auto reply.?

 

How can i disable the message when autotrading

 

that if you pm that autotrade person 

 

It will pm back that "name" is in autotrade mode. you can't pm.

 

 

how to disable that message?

 

i want a no repsonse only. :D

Edited by Luffy

Share this post


Link to post
Share on other sites
  • 0

In clif.c find following code:

	if( dstsd->state.autotrade == 1 ) {		char output[256];		sprintf(output, "%s is in autotrade mode and cannot receive whispered messages.", dstsd->status.name);		clif->wis_message(fd, map->wisp_server_name, output, strlen(output) + 1);		return;	}

Under sprintf is message to outcome, if you want to remove it completely just comment sprintf and clif lines.

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
Answer this question...

×   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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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