|
@@ -8426,18 +8426,18 @@ ACMD_FUNC(cash)
|
|
if( (ret=pc_getcash(sd, value, 0, LOG_TYPE_COMMAND)) >= 0){
|
|
if( (ret=pc_getcash(sd, value, 0, LOG_TYPE_COMMAND)) >= 0){
|
|
// If this option is set, the message is already sent by pc function
|
|
// If this option is set, the message is already sent by pc function
|
|
if( !battle_config.cashshop_show_points ){
|
|
if( !battle_config.cashshop_show_points ){
|
|
- sprintf(output, msg_txt(sd,505), ret, sd->cashPoints);
|
|
|
|
|
|
+ sprintf(output, msg_txt(sd,505), ret, sd->cashPoints); // Gained %d cash points. Total %d points.
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- else clif_displaymessage(fd, msg_txt(sd,149)); // Unable to decrease the number/value.
|
|
|
|
|
|
+ else clif_displaymessage(fd, msg_txt(sd,149)); // Impossible to increase the number/value.
|
|
} else {
|
|
} else {
|
|
if (-value > sd->cashPoints) //By command, if cash < value, force it to remove all
|
|
if (-value > sd->cashPoints) //By command, if cash < value, force it to remove all
|
|
value = -sd->cashPoints;
|
|
value = -sd->cashPoints;
|
|
if( (ret=pc_paycash(sd, -value, 0, LOG_TYPE_COMMAND)) >= 0){
|
|
if( (ret=pc_paycash(sd, -value, 0, LOG_TYPE_COMMAND)) >= 0){
|
|
// If this option is set, the message is already sent by pc function
|
|
// If this option is set, the message is already sent by pc function
|
|
if( !battle_config.cashshop_show_points ){
|
|
if( !battle_config.cashshop_show_points ){
|
|
- sprintf(output, msg_txt(sd,410), ret, sd->cashPoints);
|
|
|
|
|
|
+ sprintf(output, msg_txt(sd,410), ret, sd->cashPoints); // Removed %d cash points. Total %d points.
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -8448,13 +8448,13 @@ ACMD_FUNC(cash)
|
|
{ // @points
|
|
{ // @points
|
|
if( value > 0 ) {
|
|
if( value > 0 ) {
|
|
if( (ret=pc_getcash(sd, 0, value, LOG_TYPE_COMMAND)) >= 0){
|
|
if( (ret=pc_getcash(sd, 0, value, LOG_TYPE_COMMAND)) >= 0){
|
|
- sprintf(output, msg_txt(sd,506), ret, sd->kafraPoints);
|
|
|
|
|
|
+ sprintf(output, msg_txt(sd,506), ret, sd->kafraPoints); // Gained %d kafra points. Total %d points.
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
}
|
|
}
|
|
- else clif_displaymessage(fd, msg_txt(sd,149)); // Unable to decrease the number/value.
|
|
|
|
|
|
+ else clif_displaymessage(fd, msg_txt(sd,149)); // Impossible to increase the number/value.
|
|
} else {
|
|
} else {
|
|
if( (ret=pc_paycash(sd, -value, -value, LOG_TYPE_COMMAND)) >= 0){
|
|
if( (ret=pc_paycash(sd, -value, -value, LOG_TYPE_COMMAND)) >= 0){
|
|
- sprintf(output, msg_txt(sd,411), ret, sd->kafraPoints);
|
|
|
|
|
|
+ sprintf(output, msg_txt(sd,411), ret, sd->kafraPoints); // Removed %d kafra points. Total %d points.
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
clif_messagecolor(&sd->bl, color_table[COLOR_LIGHT_GREEN], output, false, SELF);
|
|
}
|
|
}
|
|
else clif_displaymessage(fd, msg_txt(sd,41)); // Unable to decrease the number/value.
|
|
else clif_displaymessage(fd, msg_txt(sd,41)); // Unable to decrease the number/value.
|