summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/rate-management.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt
index c7945cd78..c80f2e8ae 100644
--- a/npc/commands/rate-management.txt
+++ b/npc/commands/rate-management.txt
@@ -30,6 +30,20 @@ OnCall:
.@hours = min(0x7FFFFFFE, max(1, atoi(strip(.@atcmd_parameters$[1])))); // number of hours
if (.@new_rate > 0) {
+ // Overwriting previous rate?
+ // Confirmation Required
+ if (.current_rate != 100) {
+ setnpcdialogtitle("@rate-managment");
+ mesc l("WARNING!"), 1;
+ mesc l("A previous exp rate up event is already ongoing."), 1;
+ mesc l("IF YOU CHANGE EXP RATE NOW, PREVIOUS BONUS WILL BE LOST!"), 1;
+ next;
+ mesc l("CONTINUE ANYWAY? [Y/N]"), 1;
+ // aborted
+ if (askyesno() == ASK_NO)
+ close;
+ closeclientdialog;
+ }
// set new exp rate
.hours = 0;