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

                                         
                                             
 
                                               

                                         
                     
     

                                                                                   







                                                    
     


                                         
      
                                  







                                       
      



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

    // Remove old variables to new quest system
    if (QL_VALON) {
        setq CandorQuest_Valon, QL_VALON;
        QL_VALON = 0;
    }
    if (QL_HIDENSEEK) {
        setq CandorQuest_HideNSeek, (QL_HIDENSEEK >= 64 ? 2 : 1), (QL_HIDENSEEK-1);
        QL_HIDENSEEK = 0;
    }
    if (#CRYPT_PASSWORD && !getq(Quest_Reapercry)) {
        setq Quest_Reapercry, 1;
    }
    if (#DD5_TALLY) {
        setq Quest_Doomsday, 2;
        #DD5_TALLY = 0; // Whatever
    }

    // 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;
}