Originally posted by [b]Everade[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2919
There's no zeny check, i dunno how it's on official servers, but shouldn't there be a zeny check?
Example: Player has allready reached max zeny, now he gets a mail with 1000 zeny attached.
Press on the Zeny... and it's lost, since max zeny is allready reached.
This is a simple check that it wont get lost.
clif.c
QUOTE
if( sd->mail.inbox.msg[i].zeny < 1 && (sd->mail.inbox.msg[i].item.nameid < 1 || sd->mail.inbox.msg[i].item.amount < 1) )
return;
if( (sd->status.zeny + sd->mail.inbox.msg[i].zeny ) > MAX_ZENY ) {
return; }
if( sd->mail.inbox.msg[i].item.nameid > 0 )
{
mail.c
QUOTE
int mail_removezeny(struct map_session_data *sd, short flag)
{
nullpo_retr(0,sd);
if( (sd->status.zeny + sd->mail.zeny ) >= MAX_ZENY ) {
return 1;
}
if (flag && sd->mail.zeny > 0)
{ //Zeny send
if(log_config.zeny)
log_zeny(sd, "E", sd, -sd->mail.zeny);
This post has been edited by Everade: Mar 29 2009, 09:48 AM