Jump to content

Question

Posted (edited)

hello my npc mailbox in towns in not working im usingi 20120410 someone knows how to fix this please it doesnt open the mail just take my money

Edited by AngelaKiss

8 answers to this question

Recommended Posts

  • 0
Posted

src/map/mail.c

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 || sd->npc_id || sd->npc_shopid )
		return 0;

	clif_Mail_window(sd->fd, 0);

	return 1;
}

to

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;
}

  • 0
Posted

hello my npc mailbox in towns in not working im usingi 20120410 someone knows how to fix this please it doesnt open the mail just take my money

try what Promise's answer. btw, what version are you using?

  • 0
Posted

 

hello my npc mailbox in towns in not working im usingi 20120410 someone knows how to fix this please it doesnt open the mail just take my money

try what Promise's answer. btw, what version are you using?

 

Im using lastest version

  • 0
Posted

 

src/map/mail.c

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 || sd->npc_id || sd->npc_shopid )
		return 0;

	clif_Mail_window(sd->fd, 0);

	return 1;
}

to

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;
}

 

it was already like this

 

Btw did you add the "Enable Mail Box for All LangTypes"(If you're using NEMO) in your clients diff?

 

nemo dont allow me to do it, it says the pattern is not found 

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