Jump to content
  • 1

how to turn off mail system


Question

9 answers to this question

Recommended Posts

Posted

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

Posted

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

Posted

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?

Posted (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 by ngek202
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...