summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/099-7/chronos.txt4
-rw-r--r--npc/functions/clear_vars.txt4
2 files changed, 6 insertions, 2 deletions
diff --git a/npc/099-7/chronos.txt b/npc/099-7/chronos.txt
index 1a0ab6ed..b4a4e87a 100644
--- a/npc/099-7/chronos.txt
+++ b/npc/099-7/chronos.txt
@@ -9,11 +9,11 @@
close;
// Boss Points validation
.@cur=(BOSS_POINTS / .price);
- .@dif=.@cur - BOSS_MEDALS;
+ .@dif=.@cur - #BOSS_MEDALS;
if (.@dif) {
next;
getitembound BossMedal, .@dif, IBT_ACCOUNT;
- BOSS_MEDALS+=.@dif;
+ #BOSS_MEDALS+=.@dif;
mesn;
mesq l("For your deeds, I shall bestow upon you %d %s. Use them wisely, they are the results of your hard effort.", .@dif, getitemlink(BossMedal));
mesc l("Boss Medals are earned each %s boss points. They are account-bound and cannot be given to other players.", fnum(.price));
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt
index 537012c8..d46e4fe1 100644
--- a/npc/functions/clear_vars.txt
+++ b/npc/functions/clear_vars.txt
@@ -27,6 +27,10 @@ function script ClearVariables {
if (#X21) {
#X21 = 0; // Flag for old events
}
+ if (#BOSS_MEDALS_AVAILABLE) {
+ getitembound BossMedal, #BOSS_MEDALS_AVAILABLE, IBT_ACCOUNT;
+ #BOSS_MEDALS_AVAILABLE = 0;
+ }
if (#BankAccount) {
BankVault += #BankAccount;
#BankAccount = 0;