summaryrefslogtreecommitdiff
path: root/npc/003-0-1/guards.txt
blob: 0c34c5217617c09f50ddf129d858ee27a40c8383 (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Magic Council Guard

003-0-1,50,24,0	script	Guard#00301A	NPC_BRGUARD_SPEAR,{
    if ($MOST_HEROIC$ == strcharinfo(0))
        goto L_Hero;
    if (getgmlevel())
        goto L_Sponsor;
    if ($FIRESOFSTEAM)
        goto L_Steam;

    mesn;
    mesq l("Past this grates, is the Magic Council Room.");
    next;
    mesn;
    mesq l("Unless you're an Alliance member or have authorization, you cannot go in.");
    if (getvaultid())
        mesc l("Alliance members are those who [@@https://tmw2.org/contact|sponsor us@@].");
    else
        mesc l("Alliance members are those who [@@https://patreon.com/TMW2|sponsor us@@].");
    mesc l("There's nothing in the Magic Council Room, though. It's just a perk.");
    close;

L_Hero:
    mesn;
    mesq l("Greetings, %s. Do you have business on the Alliance Council Room?", strcharinfo(0));
    mesc l("Warp to Council room?");
    if (askyesno() == ASK_YES) {
        warp "003-0-2", 34, 42;
    }
    closeclientdialog;
    close;

L_Sponsor:
    mesn;
    mesq l("Alliance members (sponsors) are allowed inside the Council Room.");
    mesc l("Warp to Council room?");
    if (askyesno() == ASK_YES) {
        warp "003-0-2", 34, 42;
    }
    closeclientdialog;
    close;

L_Steam:
    mesn;
    mesq l("The Council is not in session, it has dispersed since Andrei Sakar went to an expedition to Artis. However, it was decided to allow others inside.");
    mesc l("Warp to Council room?");
    if (askyesno() == ASK_YES) {
        warp "003-0-2", 34, 42;
    }
    closeclientdialog;
    close;

OnInit:
    .distance=4;
    end;
}