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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user