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
|
// TMW2 scripts.
// Author:
// Jesusalva
// Description:
// NPC obssessed in sending gifts to Demure
001-11,37,25,0 script Soren xd#Valentine NPC_PLAYER,{
mesn;
mesq l("I will harass Demure with so many chocolate that she'll leave this event map rolling!");
if (gettime(GETTIME_YEAR) == 2020)
goto L_Purpose;
next;
L_Main:
mesn;
mesq l("Do you want me to prepare more chocolate box for you? For that I'll need:");
msObjective(countitem(ChocolateBar) >= 12, l("* @@/12 @@", countitem(ChocolateBar), getitemlink(ChocolateBar)));
msObjective(Zeny >= 200, l("* @@/200 GP", format_number(Zeny)));
if (countitem(ChocolateBar) < 12 || Zeny < 200)
close;
next;
if (askyesno() == ASK_NO)
close;
if (Zeny < 200)
warp "001-9", 0, 0;
inventoryplace BoxOfChocolates, 1;
delitem ChocolateBar, 12;
Zeny=Zeny-200;
getitem BoxOfChocolates, 1;
mesn;
mesq l("Here you go!");
if (countitem(ChocolateBar) >= 12) {
mesq l("Anything else?");
next;
goto L_Main;
}
close;
L_Purpose:
next;
select
l("You're creepy."),
l("Reset status"),
l("Open shop");
mes "";
switch (@menu) {
case 2:
ConfirmStatusReset(1);
break;
case 3:
closeclientdialog;
shop "Shop#Candor";
break;
}
close;
OnInit:
.@npcId = getnpcid(.name$);
setunitdata(.@npcId, UDT_HEADTOP, CandorShorts);
setunitdata(.@npcId, UDT_HEADMIDDLE, CandorShirt);
setunitdata(.@npcId, UDT_HAIRSTYLE, 14);
setunitdata(.@npcId, UDT_HAIRCOLOR, 18);
.sex = G_MALE;
.distance = 5;
end;
}
|