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
|
// Evol scripts.
// Author:
// Reid
// Jesusalva
// Description:
// Librarian
001-2-4,51,35,2 script Terry NPC_TERRY,{
if (@terry_goal$ != "") goto L_Waiting;
mesn;
mesq l("Hi. Do you want to help at sorting some books? You may grow your intelligence and I'll pay a smaall coin change for it.");
next;
if (askyesno() == ASK_NO) {
closeclientdialog;
close;
}
@terry_goal$ = any("History", "Novel", "Legal", "Utility", "Dolfina's");
@terry_section$ = "";
goto L_Waiting;
// TODO: Possibly ask riddles about the books or send you to talk with other
// librarians or just read a book near to Delfina (time wait) for diversity
L_Waiting:
if (@terry_goal$ == @terry_section$) goto L_Submit;
mesn;
mesq l("Okay, good, please bring me a %s book. Just find one on the shelves and go talk to me.", b(@terry_goal$));
close;
L_Submit:
mesn;
mesq l("Thanks, come back later if you need more.");
@terry_goal$="";
@terry_section$="";
Zeny+=1+rand2(5);
EXP_INT+=rand2(1);
if (EXP_INT > .@nxt) {
statusup2(bInt, 1);
EXP_INT -= .@nxt;
// FIXME: Use a color-coded special effect
specialeffect(1, SELF, getcharid(3));
}
close;
// Dock warehouse: 001-2-18 and 001-2-42
OnInit:
.distance = 2;
end;
}
|