summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 5be76d36a..27329ae4a 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2533,7 +2533,10 @@ ACMD_FUNC(zeny)
clif_displaymessage(fd, msg_txt(1012)); // Please enter an amount (usage: @zeny <amount>).
return -1;
}
- pc_getzeny(sd,zeny,LOG_TYPE_COMMAND,NULL);
+ if(zeny > 0)
+ pc_getzeny(sd,zeny,LOG_TYPE_COMMAND,NULL);
+ else
+ pc_payzeny(sd,zeny,LOG_TYPE_COMMAND,NULL);
return 0;
}