diff options
author | Michael Fritscher <michael@fritscher.net> | 2021-01-07 15:44:35 +0100 |
---|---|---|
committer | Michael Fritscher <michael@fritscher.net> | 2021-01-07 15:44:35 +0100 |
commit | efce53d13932ea318ffa1758b65b7c6b8b1b5cbf (patch) | |
tree | 05b3e99cf77cfd69be8530ef2eef51676ffa81d0 /npc | |
parent | c6155dac1b9e37b5c1e1a09f9a79c96c300c156a (diff) | |
download | serverdata-efce53d13932ea318ffa1758b65b7c6b8b1b5cbf.tar.gz serverdata-efce53d13932ea318ffa1758b65b7c6b8b1b5cbf.tar.bz2 serverdata-efce53d13932ea318ffa1758b65b7c6b8b1b5cbf.tar.xz serverdata-efce53d13932ea318ffa1758b65b7c6b8b1b5cbf.zip |
Neko can sell now.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/020-1/neko.txt | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/npc/020-1/neko.txt b/npc/020-1/neko.txt index 5e572b70..b2634760 100644 --- a/npc/020-1/neko.txt +++ b/npc/020-1/neko.txt @@ -1,20 +1,53 @@ // Evol scripts. // Author: -// Micksha +// Micksha (mifritscher gave him some food ;-) ) // Description: // Neko, the Trader in Legion area in Tulimshar. // THIS IS A PLACEHOLDER! 020-1,278,99,0 script Neko NPC_DESERT_HAT_MAN,{ - speech - l("Hi there."), - l("I am out of stock, unfortunately."), - l("What do you mean to look at my wares?!"), - l("My collection of random stuff is not for sale! Go away!"); + if (shopcount(Blueberries) <= 0 && shopcount(BottleOfWater) <= 0 + && shopcount(Tentacles) <= 0 && shopcount(CommonCarp) <= 0 + && shopcount(Aquada) <= 0 && shopcount(Curshroom) <= 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!"); + + next; + + closeclientdialog; + shop .name$; + } + close; OnInit: .bodytype = BODYTYPE_2; .distance = 4; + tradertype(NST_MARKET); + +// Blueberries are still placeholders +// sellitem Blueberries, -1, 2000+rand2(500); + sellitem BottleOfWater, -1, 200+rand2(50); + sellitem CommonCarp, -1, 400+rand2(50); + sellitem Tentacles, -1, 1000+rand2(100); + sellitem Aquada, -1, 800+rand2(200); + sellitem Curshroom, -1, 1500+rand2(400); + end; + +OnClock0002: +// restoreshopitem Blueberries, 2000+rand2(500); + restoreshopitem BottleOfWater, 200+rand2(50); + restoreshopitem CommonCarp, 400+rand2(50); + restoreshopitem Tentacles, 1000+rand2(100); + restoreshopitem Aquada, 800+rand2(200); + restoreshopitem Curshroom, 1500+rand2(400); end; } |