diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/clear_vars.txt | 2 | ||||
-rw-r--r-- | npc/functions/global_event_handler.txt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index 4b85640c..8f2729b0 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -9,6 +9,7 @@ function script ClearVariables { // Don't ask me what code below does // ---------------------------------- + /* if (#BankAccount >= 0) return; if (Zeny >= -#BankAccount) { Zeny = Zeny + #BankAccount; @@ -18,6 +19,7 @@ function script ClearVariables { // Partial fix #BankAccount = #BankAccount + Zeny; Zeny = 0; + */ return; } diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index d0014b87..3d8156c4 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -6,7 +6,7 @@ OnPCLoginEvent: @login_event = 1; adddefaultskills(); //callfunc "fixHeadStyles"; // convert headstyles - //callfunc "ClearVariables"; // removes / converts old variables + callfunc "ClearVariables"; // removes / converts old variables DisplayMOTD(); // send the motd to the client, if enabled // add more here @login_event = 2; |