Luffy 14 Posted July 29, 2014 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?? Quote Share this post Link to post Share on other sites
0 Garr 117 Posted July 29, 2014 (edited) 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 July 29, 2014 by Garr 1 Zirius reacted to this Quote Share this post Link to post Share on other sites
0 Luffy 14 Posted July 29, 2014 (edited) 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. Edited July 29, 2014 by Luffy Quote Share this post Link to post Share on other sites
0 Garr 117 Posted July 29, 2014 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. Quote Share this post Link to post Share on other sites
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