summaryrefslogblamecommitdiff
path: root/npc/functions/clear_vars.txt
blob: 8f2729b021271fb9cb27082e58a187ee97df62e9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                         
                                             
 






                                         
      
                                  







                                       
      



           
function	script	ClearVariables	{
    if (@login_event != 1) goto L_Deprecated;

    if (QL_VALON) {
        setq CandorQuest_Valon, QL_VALON;
        QL_VALON=0;
    }

    // Don't ask me what code below does
    // ----------------------------------
    /*
    if (#BankAccount >= 0) return;
    if (Zeny >= -#BankAccount) {
        Zeny = Zeny + #BankAccount;
        #BankAccount = 0;
    }

    // Partial fix
    #BankAccount = #BankAccount + Zeny;
    Zeny = 0;
    */
    return;
}