summaryrefslogtreecommitdiff
path: root/world/map/npc/029-1/tutorial.txt
blob: e6f31c4a935075f991fbc8683472833a9a0ee127 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// This file is part of the Tutorial
// Author: Jenalya
// if you enter the tutorial area from outside, it is set to be already done
-|script|#TutorialConfig|32767
{
    end;

OnInit:
    set $@ScorpionFighter, 0;
    set $@ScorpionTimer, 0;
    set $@ScorpDeath, 0; 
    set $@SpokeToKaan, (1 << 31);
    end;
}
029-2,21,26,0|script|TutDebug|154
{
    mes "[TutDebug]";
    mes "Reset?";
    menu
        "Reset Kaan/Hasan",L_Kaan,
        "Yes.",L_Reset,
        "No.",L_Close;

L_Kaan:
    set QL_BEGIN, 8;
    set STARTAREA, STARTAREA &~ $@SpokeToKaan;
    mes "Reset!";
    goto L_Close;

L_Reset:
    set TUT_var, 0;
    set QL_BEGIN, 0;
    set STARTAREA, STARTAREA &~ $@SpokeToKaan;
    mes "Reset!";
    goto L_Close;

L_Close:
    close;

OnInit:
    if(!debug)
        disablenpc "TutDebug";
    end;
}
029-1,32,99,0|script|#tutorialoutside|45,0,0
{
    if (QL_BEGIN >= 8)
        goto L_Warp;
    goto L_ResetTutorial;

L_ResetTutorial:
    set QL_BEGIN, 8;
    goto L_Warp;

L_Warp:
    warp "029-2", 114, 92;
    end;
}