summaryrefslogtreecommitdiff
path: root/npc/018-2-1/warps.txt
blob: 9738f538d370f095aba4fac6c0bc26b4145312ea (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Map 018-2-1: Heroes' Hold - Castle manual warps
// LoFQuest_HH
//   1- Accepted
//   2 - Master Finished
//
// Field 2
//  BITWISE:
//      1 - Novice
//      2 - Intermediary
//      4 - Advanced
//      8 - Expert
//     16 - Master
//     32 - Ultimate
//     64 - Supreme
//    128 - Saulc's Madness
//    256 - The Mouboo Realm
//    512 - The Moubootaur Dungeon

018-2-1,26,27,0	script	#018-2-1_26_27	NPC_HIDDEN,2,0,{
    end;

OnTouch:
    .@hh=getq(LoFQuest_HH);
    if (.@hh <= 0) {
        npctalk3 l("The stairs lead to nowhere. However, there is a magic sigil on the bottom.");
        end;
    }
        .@q=getq2(LoFQuest_HH);
        mesn l("Heroes Hold");
        mes l("This is only for the skilled players. Newbies, KEEP OUT!");
        mes l("Time Limit: 20 minutes on any dungeon.");
        mes l("Please select target dungeon:");
        mes "";
        select
            l("Sorry, I am a newbie."),
            rif(BaseLevel >= 40, l("Novice Dungeon (Lv 40+)")), // Level 0-40
            rif(.@q & HH_NOVICE, l("Intermediary Dungeon (Lv 60+)")), // Level 21-60
            rif(.@q & HH_INTERMEDIARY, l("Advanced Dungeon (Lv 80+)")), // Level 41-80
            rif(.@q & HH_ADVANCED, l("Expert Dungeon (Lv 100+)")), // Level 61-100
            rif(.@q & HH_REQUISITE, l("Master Dungeon (BOSS)")), // Boss Only (HH_EXPERT)
            rif(.@q & HH_NOVICE, l("Heroes Hold - Great Hall"));
        mes "";
        switch (@menu) {
            case 2:
                @HH_LEVEL=HH_NOVICE;
                @HH_TIMER=0;
                warp "018-2-2@No", 37, 196;
                addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
                closedialog;
                break;
            case 3:
                @HH_LEVEL=HH_INTERMEDIARY;
                @HH_TIMER=0;
                warp "018-2-3@In", 204, 40;
                addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
                closedialog;
                break;
            case 4:
                @HH_LEVEL=HH_ADVANCED;
                @HH_TIMER=0;
                warp "018-2-2@Ad", 209, 178;
                addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
                closedialog;
                break;
            case 5:
                @HH_LEVEL=HH_EXPERT;
                @HH_TIMER=0;
                warp "018-2-3@Ex", 51, 40;
                addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
                closedialog;
                break;
            case 6:
                @HH_LEVEL=HH_MASTER;
                @HH_TIMER=0;
                warp "018-2-3", 132, 92;
                addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle");
                closedialog;
                break;
            case 7:
                mes "";
                mesn;
                mesc l("Currently under development.", 1);
                break;

        }
    close;
}