added missing 'e' logs

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12910 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lupus 2008-07-04 03:54:35 +00:00
parent 2d9e1a84a9
commit ae9e0179f6
2 changed files with 19 additions and 1 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/07/04
* Added missing 'E' logs to mail system [Lupus]
2008/07/03
* Removed aspd penalty from Free Cast since tests show it's not there,
even though RO sites claim it is

View File

@ -55,8 +55,12 @@ int mail_removezeny(struct map_session_data *sd, short flag)
nullpo_retr(0,sd);
if (flag && sd->mail.zeny > 0)
sd->status.zeny -= sd->mail.zeny;
{ //Zeny send
if(log_config.zeny)
log_zeny(sd, "E", sd, -sd->mail.zeny);
sd->status.zeny -= sd->mail.zeny;
}
sd->mail.zeny = 0;
clif_updatestatus(sd, SP_ZENY);
@ -146,7 +150,11 @@ void mail_getattachment(struct map_session_data* sd, int zeny, struct item* item
}
if( zeny > 0 )
{ //Zeny recieve
if(log_config.zeny)
log_zeny(sd, "E", sd, zeny);
pc_getzeny(sd, zeny);
}
}
int mail_openmail(struct map_session_data *sd)
@ -166,10 +174,18 @@ void mail_deliveryfail(struct map_session_data *sd, struct mail_message *msg)
nullpo_retv(sd);
nullpo_retv(msg);
// Item recieve (due to failure)
if(log_config.enable_logs&0x2000)
log_pick_pc(sd, "E", msg->item.nameid, msg->item.amount, &msg->item);
pc_additem(sd, &msg->item, msg->item.amount);
if( msg->zeny > 0 )
{
//Zeny recieve (due to failure)
if(log_config.zeny)
log_zeny(sd, "E", sd, msg->zeny);
sd->status.zeny += msg->zeny;
clif_updatestatus(sd, SP_ZENY);
}