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
|
// Evol scripts.
// Author:
// Micksha (mifritscher gave him some food ;-) )
// Description:
// Inar, a saleswoman in Tulimshar Market.
// THIS IS A PLACEHOLDER!
020-1,212,171,0 script Inar NPC_SABINE,{
if (shopcount(Manana) <= 0 && shopcount(Blueberries) <= 0
&& shopcount(Fungus) <= 0 && shopcount(Carrot) <= 0) {
speech
l("Hi there."),
l("Sorry, we are sold out for today."),
l("Come back later.");
} else {
speech
l("Hi there."),
l("We got new supplies of food and drinks! And everybode else is on holiday it seems - perhaps in Mickshaland?"),
l("But for me, selling is holiday - so I'm always here! Feel free to take a look!");
next;
closeclientdialog;
shop .name$;
}
close;
OnInit:
.distance = 4;
tradertype(NST_MARKET);
// Blueberries are still placeholders
sellitem Manana, -1, 500+rand2(100);
// sellitem Blueberries, -1, 2000+rand2(500);
sellitem Fungus, -1, 800+rand2(200);
sellitem Carrot, -1, 600+rand2(100);
end;
OnClock0002:
restoreshopitem Manana, 500+rand2(100);
// restoreshopitem Blueberries, 2000+rand2(500);
restoreshopitem Fungus, 800+rand2(200);
restoreshopitem Carrot, 600+rand2(100);
end;
}
|