Issue information

Issue ID
#2919
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Mar 29, 2009 16:21
Last Post
Hercules Elf Bot
Apr 19, 2012 18:07
Confirmation
N/A

Hercules Elf Bot - Mar 29, 2009 16:21

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

Hercules Elf Bot - Dec 29, 2011 15:04

Originally posted by [b]Ind[/b]
Fixed in [rev=15310]

Hercules Elf Bot - Jan 25, 2012 20:36

Originally posted by [b]Gepard[/b]
Really fixed in [rev=15520].