[HELP] how to install @afk in linux VPS

Luffy

New member
Messages
303
Points
0
Location
#DDos
Emulator
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??

 
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.

 
Last edited by a moderator:
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.
default_biggrin.png


 
Last edited by a moderator:
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.

 
Back
Top