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
|
// TMW2 scripts.
// Authors:
// Jesusalva
// Description:
// Sagratha's House Door
014-5,122,137,0 script Sagratha Door NPC_HIDDEN,0,0,{
end;
L_Magicless:
npctalk3 l("A mild magic barrier prevents you from entering.");
dispbottom l("If I only knew some magic...");
end;
L_Lockpick:
mesn;
mesc l("The door is locked!");
select
l("Knock on the door?"),
l("Attempt to lockpick?"),
l("Leave it alone?");
mes "";
if (@menu == 1) {
mesn l("Sagratha");
mesq l("No, I don't need monster repellent nor anything! Go away!");
close;
} else if (@menu == 2) {
if (LockPicking(4, 5)) {
getexp BaseLevel*4, 5;
mesn;
mesc l("*click*");
next;
mesn l("Sagratha");
mesq l("Who is there? Are they trying to break my lock again?!");
next;
select
l("Run away?"),
l("Stay there?");
mes "";
if (@menu == 2) {
mesn l("Sagratha");
mesq l("Oh my Jesusalva - You broke my lock! Why?!");
next;
select
l("I need to talk with you!"),
l("No reason.");
mes "";
if (@menu == 1) {
mesn l("Sagratha");
mesq l("No, I don't teach magic. No, I'm not interested in @@ affairs.", get_race());
next;
mesn l("Sagratha");
mesq l("Yes, I know when next Alliance's Council meeting will be. No, I don't need anything.");
next;
mesn l("Sagratha");
mesq l("Now begone.");
} else {
mesn l("Sagratha");
mesq l("What?! Do my house look like the place to you pratice your thief skills?!");
mesq col(l("DIE!"), 1);
specialeffect(312, SELF, getcharid(3));
percentheal -40, -100;
}
}
} else {
mesn l("Sagratha");
mesq l("Who is there? Are they trying to break my lock again?!");
mesq col(l("DIE!"), 1);
specialeffect(312, SELF, getcharid(3));
percentheal -40, -100;
}
}
close;
OnTouch:
if (!MAGIC_LVL) goto L_Magicless;
goto L_Lockpick;
end;
}
|