summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fritscher <michael@fritscher.net>2021-01-07 15:45:02 +0100
committerMichael Fritscher <michael@fritscher.net>2021-01-07 15:45:02 +0100
commitf4ebe9d6833478304f8219202b51ff27a70a3768 (patch)
tree237ae7cf8575290c98aee0475055925ddb8eedc5
parentefce53d13932ea318ffa1758b65b7c6b8b1b5cbf (diff)
downloadserverdata-f4ebe9d6833478304f8219202b51ff27a70a3768.tar.gz
serverdata-f4ebe9d6833478304f8219202b51ff27a70a3768.tar.bz2
serverdata-f4ebe9d6833478304f8219202b51ff27a70a3768.tar.xz
serverdata-f4ebe9d6833478304f8219202b51ff27a70a3768.zip
Inar can sell now.
-rw-r--r--npc/020-1/inar.txt40
1 files changed, 34 insertions, 6 deletions
diff --git a/npc/020-1/inar.txt b/npc/020-1/inar.txt
index 0d705f46..4c2c9c94 100644
--- a/npc/020-1/inar.txt
+++ b/npc/020-1/inar.txt
@@ -1,20 +1,48 @@
// Evol scripts.
// Author:
-// Micksha
+// 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,{
- speech
- l("Hi there."),
- l("You wonder why here are so many idle market stalls, right?"),
- l("This is due to lazyness of Micksha to prepare placeholders."),
- l("So, see you later when we have something to sell here.");
+ 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."),
+ lg("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:
.bodytype = BODYTYPE_2;
.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;
}