Jump to content
  • 1

how to turn off mail system


onecent

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

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

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

disable npc :

scripts_athena.conf

//npc: npc/other/mail.txt

disable command to player

atcommand_athena.conf

mail: 100,100

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

what if that in non-disabled only send goods only? but to send a messege still can, please help thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

thought mail was fixed?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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 by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

clif_displaymessage(sd->fd, "Mail System is Disabled.");

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...