1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
function script ClearVariables { if(@login_event != 1) goto L_Deprecated; if(#BankAccount >= 0) return; if (Zeny >= -#BankAccount) { Zeny = Zeny + #BankAccount; #BankAccount = 0; } // Partial fix #BankAccount = #BankAccount + Zeny; Zeny = 0; return; }