summaryrefslogtreecommitdiff
path: root/npc/014-2/carla.txt
blob: ae1a738907cd4545b171464a22692c15a6149514 (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// TMW2 Script
// Author:
//      Saulc
//      Jesusalva
// Description:
//    Carla the Woody wife in old shaman girl. She kept house entrance from years.
// id:100  HurnscaldQuest_Woody
//      0 - Not aware of the quest
//      1 - Know about winter
//      2 - Quest Accepted
//      3 - Quest Complete
//      4+ - see woody

014-2,104,31,0	script	Carla	NPC_RAIJIN_FEMALE_WAITRESS,{
    .@quest = getq(HurnscaldQuest_Woody);
    if (BaseLevel < 25) goto L_TooWeak;
    if (.@quest == 1) goto L_Start;
    if (.@quest == 2) goto L_Check;
    if (.@quest >= 3) goto L_Complete;

L_GiveTask:
    mesn;
    mesq lg("Hello, new wanderer!");
    next;
    mesq l("Be careful to not get lost in the forest.");
    next;

    menu
        l("Hey, do not mistake me for a child."), L_Quit,
        l("Hello, I'm looking for bandit hoods!"), L_Hood,
        l("Hey! I want to enter in this house!"), L_Force,
        l("Hello, who are you?"), L_Quest,
        l("I don't have time sorry."), L_Quit;


L_Quest:
    mes "";
    mesn;
    mesq l("I'm Carla the Woody Wife, I have lived here with Woody for many years! We decided to live away from civilization, as hunter and shaman life is way better.");
    next;
    mesn;
    mesq l("But now, we are quite old. I remember the time when I was your age. My generation doesn't do stupid things like yours!");
    next;

    menu
        l("Isn't hard to live alone?"), L_Start,
        l("Where is Woody?"), L_Woody,
        l("Ok grandma CYA!"), L_Quit;


L_Start:
    setq HurnscaldQuest_Woody, 1;
    mes "";
    mesn;
    mesq l("No, we've done this for our whole life, and we have survived!");
    next;
    mesn;
    mesq l("My shaman skills protected us against monsters and thieves!");
    next;

    menu
        l("Hey if you want I can do some physical work for you!"), L_Ask,
        l("Can you teach me a basic shaman skill? please?"), L_Skill,
        l("Oh no! I will miss my bus! Gotta go!"), L_Quit;

L_Ask:
    setq HurnscaldQuest_Woody, 2;
    mes "";
    mesn;
    mesq l("Oh yeah some work is really painful, especially for my back, and I cant bother Woody to do it, he has so many difficulties moving.");
    next;
    mesn;
    if (season() != WINTER)
        mesq l("I need you to bring me some basic items to face Winter! Fire is the most important for us.");
    else
        mesq l("Winter this year is really harsh! Fire is the most important for us.");
    next;
    goto L_List;

L_Quit:
    mes "";
    mesn;
    mesq l("Alright.");
    close;

L_List:
    mes "";
    mesn;
    mes l("Would be nice if you could bring me these:");
    mes l("@@/40 @@", countitem(RawLog), getitemlink(RawLog));
    mes l("@@/5 @@", countitem(Coal), getitemlink(Coal));
    close;

L_Check:
    mesn;
    mesq l("Hey, did you bring me everything I asked for?");
    next;
    menu
        l("Yes! It is heavy."), L_Give,
        l("humm... Sorry, I forgot what you need!"), L_List,
        l("I don't have them, actually."), L_Quit;

L_Give:
    if (
        countitem(RawLog)            < 40  ||
        countitem(Coal)              < 5
        ) goto L_Nope;

    inventoryplace RedApple, 3;

    delitem(RawLog, 40);
    delitem(Coal, 5);

    getitem(RedApple, 3);
    getexp(3000, 50);
    setq(HurnscaldQuest_Woody, 3);

    mes "";
    mesn;
    mesq l("Thank you, We are now friends, You can visit us when you want!");
    close;

L_Complete:
    mesn;
    mesq l("Wandering too much? Take care to not get lost.");
    close;

L_Woody:
    mes "";
    mesn;
    mesq l("Woody is inside, he is probably crafting some stuff with animals pelts.");
    close;

L_Hood:
    mes "";
    mesn;
    mesq l("You search for Bandit hoods.");
    next;
    mesn;
    mesq l("You could find some bandits in the Bandit cave. Yeah, the name wasn't given for nothing.");
    next;
    mesn;
    mesq l("To get there you need to go left, follow rock wall and go up when you can. The entrance to the Bandit cave is on left side of the waterfall.");
    close;

L_Force:
    mes "";
    mesn;
    mesq l("Strangers and monsters aren't allowed in MY house!");
    next;
    mesn;
    mesq l("Anyway, my herb mixture keeps monsters away.");
    close;

L_Skill:
    mes "";
    mesn;
    //mesq l("I don't know if jesusalva allow me to teach you a basic shaman skill!? .");
    // I don't, but a monster repellent would be nice. Does such skill exist/work?
    mesq l("Well, I know a mixture to keep monsters away. I just can't share it with you now.");
    next;
    mesn;
    mesq l("You see, it need certain special items... Oh, just blame Jesusalva for this one.");
    close;

L_Nope:
    mesn;
    mesc l("humm... You don't have everything I've asked for!");
    next;
    mesn;
    mesq l("Can you come back with all the items I asked for? Please.");
    next;
    goto L_List;

L_TooWeak:
    mesn;
    mesq l("You should not be there! This forest is home to monsters.");
    close;

OnInit:
    .sex = G_FEMALE;
    .distance = 4;
    end;
}

014-2,103,29,0	script	Woody Barrier	NPC_HIDDEN,0,0,{
    end;

OnTouch:
    .@q=getq(HurnscaldQuest_Woody);
    if (.@q >= 3)
        warp "014-2-1", 33, 44;
    else
        npctalk3 l("The door is locked, you should speak to Carla about it.");
    end;
}