diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/020-1/inar.txt | 40 |
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; } |