From e9bb1aa12713fb7ed3719195523c01ac148b006f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Apr 2022 10:57:39 -0300 Subject: HoraK's changes and variable cleaning --- npc/functions/clear_vars.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'npc/functions/clear_vars.txt') 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; -- cgit v1.2.3-60-g2f50