Add other player in mail transactions (#7568)

* Add other player's char_id in mail transactions

Thanks to @tokeiburu

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
Vincent Stumpf
2023-03-14 02:30:23 -07:00
committed by GitHub
parent cbb5380527
commit 7dd6eb5182
17 changed files with 62 additions and 59 deletions

View File

@@ -2804,12 +2804,12 @@ ACMD_FUNC(zeny)
}
if(zeny > 0){
if((ret=pc_getzeny(sd,zeny,LOG_TYPE_COMMAND,NULL)) == 1)
if((ret=pc_getzeny(sd,zeny,LOG_TYPE_COMMAND)) == 1)
clif_displaymessage(fd, msg_txt(sd,149)); // Unable to increase the number/value.
}
else {
if( sd->status.zeny < -zeny ) zeny = -sd->status.zeny;
if((ret=pc_payzeny(sd,-zeny,LOG_TYPE_COMMAND,NULL)) == 1)
if((ret=pc_payzeny(sd,-zeny,LOG_TYPE_COMMAND)) == 1)
clif_displaymessage(fd, msg_txt(sd,41)); // Unable to decrease the number/value.
}
if(!ret) clif_displaymessage(fd, msg_txt(sd,176)); //ret=0 mean cmd success