summaryrefslogtreecommitdiff
path: root/npc/099-1/main.txt
blob: 0d315a405df99de3c16f2a81bec3dbcaeae986b3 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
099-1,55,43,0	script	Note#DD5Core	NPC400,{
    // Default distance is 4 tiles - all we need
    callfunc "PCtoNPCRange";
    if(@npc_check) end;

	mes ".:: Keshlam's Adventurer Guild ::.";
    mes "";
    mes "Welcome to the Adventurers Guild!";
    mes "Sorry I could not wait for you. It's your fault for being late.";
    next;
    mes "So, it has been a long time since you were here.";
    mes "I hope you still remember the directions?";
    mes "Hahaha! There is a lot of fake rooms in this building.";
    next;
    mes "You should have known me for long enough to know I do not take chances.";
    mes "I've put the docks where I'm waiting for you in an overlapping dimension.";
    mes "This should be enough to stop any Sparron who makes back to here.";
    //next;
    mes "My dimension, my rules.";
    //mes "I've set a rule that anything dying here should not respawn.";
    //mes "I'm not sure if it'll work, but I did enough tests on that.";
    next;
    mes "In case you forgot, this is an, *ahem*, \"deleted\" dimension.";
    mes "You'll see notes from the adventurers who used to inhabit here.";
    mes "Maybe you even find something which used to belong to them?";
    next;
    mes "I'm sure they tried to write down possible ways to stop me.";
    mes "I do not like them, so if you find anything which belong to them...";
    mes "...Well, you're free to take it.";
    next;
    mes "I've stationed a guard here and there, to stop intruders.";
    mes "Use invisibility magic if you need to go past them.";
    mes "I'll talk to you later. Do not leave me waiting!";
    next;
    mes "Signed,";
    mes "Xakelbael the Dark";
	close;
}

099-3,69,38,0	script	Ritual Book#099-31	NPC400,{
    // Default distance is 4 tiles - all we need
    callfunc "PCtoNPCRange";
    if(@npc_check) end;

	mes ".:: Ritual Book ::.";
    mes "";
    mes "In this maze, sixteen numeric passwords lie.";
    mes "All sixteen passwords must be chanted in their sequence.";
    mes "";
    mes "Chanting could be done on the book at right.";
    mes "";
    mes sprintf("[@@https://wiki.themanaworld.org/index.php/Legacy:Doomsday|%s@@]", l("Learn more"));
	close;
}

099-3,75,38,0	script	Ritual Book#099-32	NPC400,{
    // Default distance is 4 tiles - all we need
    callfunc "PCtoNPCRange";
    if(@npc_check) end;

	mes ".:: Ritual Book ::.";
    mes "The ritual was already performed.";
    mes sprintf("[@@https://wiki.themanaworld.org/index.php/Legacy:Doomsday|%s@@]", l("Learn more"));
    // Eternal memorial for those whom won it FIRST. Randomly
    if (any(true, false, false)) {
        mes "";
        mesc l("The following names can be read on the pages: %s", "matto Hello=) Nced omido Rill- xarxax");
    }
    close;
}

099-3,72,75,0	script	#WarpToFinalShowdown	NPC424,0,0,{
    // Default distance is 4 tiles - all we need
    callfunc "PCtoNPCRange";
    if(@npc_check) end;

	mes "Walk here to go to the ##BFinal Showdown##b.";
    mes "";
    mes "##1##BWARNING:##b##0 Come prepared!";
	close;

OnTouch:
    if ($@DD5_STATUS > 1)
        goto L_Busy;

	mes b(l("Go to the final showdown?"));
    mes l("You cannot return from there!");
    mes "";
    mesc l("Warning: Warp will be unavailable during fights!"), 1;
    // Since Evolved, the rose is required to begin the fight, not for the warp
    if (!$@DD5_STATUS) {
        mes "";
        mesc l("Cost: 1x %s", getitemlink(BlackRose)), 1;
        if (!countitem(BlackRose)) close;
    }

    menu
        "Yes", L_Yes,
        "No", L_No;
L_No:
    closeclientdialog;
    close;

L_Yes:
    warp "099-5", 50, 66;
    if (!$@DD5_STATUS) {
        // Ensure the fight will NOT initiate w/o the rose
        delitem BlackRose, 1;
        donpcevent "#TMWFinalExam::OnWarn0";
    }
    close;

L_Busy:
    mes "This warp cannot be used while players are on the other side!";
    close;
}