onecent Posted January 14, 2012 Posted January 14, 2012 I was informed that the mail system is being used to duplicate items in my server... just want to know how can i turn off mail system Quote
Akbare Posted January 14, 2012 Posted January 14, 2012 disable npc : scripts_athena.conf //npc: npc/other/mail.txt disable command to player atcommand_athena.conf mail: 100,100 Quote
Arcenciel Posted January 15, 2012 Posted January 15, 2012 ^^ That's not enough. People can still access the mail via the Friend Window. I remember having troubles with this before. If I remember correctly 1. Disable all mail box npc. 2. Disable auction since it uses the mail system 3. Comment out the packet used for the mail system. Quote
Emistry Posted January 16, 2012 Posted January 16, 2012 i guess you need to edit the source so that it can be turn off completely....or maybe client side like arcencial said.. because...i remember that..they can send item / mesage by turn on the Mail Box at the Friend List there..... try this way... /src/map/mail.c find this int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading ) return 0; clif_Mail_window(sd->fd, 0); return 1; } and...replace to this ( trying to make only GM Level below 100 cant use it ) int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading || pc_isGM(sd) < 100 ){ clif_displaymessage(fd, "Mail System is Disabled."); return 0; } clif_Mail_window(sd->fd, 0); return 1; } not sure will this prevent users from open mail through other way or not.... Quote
Yasunari Ishibashi Posted January 30, 2012 Posted January 30, 2012 what if that in non-disabled only send goods only? but to send a messege still can, please help thanks. Quote
Yasunari Ishibashi Posted March 3, 2012 Posted March 3, 2012 i guess you need to edit the source so that it can be turn off completely....or maybe client side like arcencial said.. because...i remember that..they can send item / mesage by turn on the Mail Box at the Friend List there..... try this way... /src/map/mail.c find this int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading ) return 0; clif_Mail_window(sd->fd, 0); return 1; } and...replace to this ( trying to make only GM Level below 100 cant use it ) int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading || pc_isGM(sd) < 100 ){ clif_displaymessage(fd, "Mail System is Disabled."); return 0; } clif_Mail_window(sd->fd, 0); return 1; } not sure will this prevent users from open mail through other way or not.... I've tried but there was an error, is there a solution? Quote
ngek202 Posted April 6, 2012 Posted April 6, 2012 (edited) i guess you need to edit the source so that it can be turn off completely....or maybe client side like arcencial said.. because...i remember that..they can send item / mesage by turn on the Mail Box at the Friend List there..... try this way... /src/map/mail.c find this int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading ) return 0; clif_Mail_window(sd->fd, 0); return 1; } and...replace to this ( trying to make only GM Level below 100 cant use it ) int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading || pc_isGM(sd) < 100 ){ clif_displaymessage(fd, "Mail System is Disabled."); return 0; } clif_Mail_window(sd->fd, 0); return 1; } not sure will this prevent users from open mail through other way or not.... having a problem with mail too it seem they can duplicate items thru mail. tried it but i'm having an error srcmapmail.c(153): error C2065: 'fd' : undeclared identifier Edited April 6, 2012 by ngek202 Quote
Lilith Posted April 6, 2012 Posted April 6, 2012 clif_displaymessage(sd->fd, "Mail System is Disabled."); Quote
ngek202 Posted April 6, 2012 Posted April 6, 2012 @Lilith thanks no more errors. Hmm seems not working I can still open Write Mail thru Friend List (ALT+H) Hope there's a way to disable Attachments adding Item or Zeny on the Mail. so you can still send Message. Quote
Question
onecent
I was informed that the mail system is being used to duplicate items in my server... just want to know how can i turn off mail system
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.