summaryrefslogtreecommitdiff
path: root/npc/functions/clear_vars.txt
blob: a93d59adcc6fcd3ec1f13d81d559e038cd20ae63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function	script	ClearVariables	{
    if (@login_event != 1) goto L_Deprecated;

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

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