summaryrefslogtreecommitdiff
path: root/npc/017-1/townhall.txt
blob: 9b78463ce82f9fef8729386c4c65eaea4e4962e5 (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
// TMW2/LoF scripts.
// Authors:
//    Jesusalva
// Description:
//    LoF Townhall Access Control

017-1,180,20,0	script	#LoF_Townhall01	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 56, 78;
    }
    end;
OnInit:
    .distance=1;
    end;

}

017-1,182,20,0	script	#LoF_Townhall02	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 60, 78;
    }
    end;
OnInit:
    .distance=1;
    end;
}

017-1,171,20,0	script	#LoF_Townhall03	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 36, 78;
    }
    end;
OnInit:
    .distance=1;
    end;
}

017-1,190,20,0	script	#LoF_Townhall04	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 80, 78;
    }
    end;
OnInit:
    .distance=1;
    end;
}

017-1,32,44,0	script	#LoF_EleniumMines	NPC_HIDDEN,{
    end;

OnTouch:
    // TODO: OnQuest: Instance
    .@q=getq(General_Narrator);
    if (.@q >= 17) {
        warp "018-6-1", 80, 199;
    } else {
        warp "018-6-1", 80, 199;
    }
    end;
OnInit:
    .distance=1;
    end;
}