From ddf0125101f4f5b1eb4085968b4ba1e45d2888a6 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Wed, 21 Feb 2018 13:33:28 -0300 Subject: Nylo sells beer for 350 GP --- npc/005-5/nylo.txt | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'npc/005-5/nylo.txt') diff --git a/npc/005-5/nylo.txt b/npc/005-5/nylo.txt index 3c6035251..1f10c3746 100644 --- a/npc/005-5/nylo.txt +++ b/npc/005-5/nylo.txt @@ -4,10 +4,6 @@ 005-5,27,38,0 script Nylo NPC_PLAYER,{ - function nylo_close { - close; - } - function nylo_thanks { speech S_LAST_BLANK_LINE, l("You are very welcome."); @@ -112,7 +108,7 @@ } while (@menu != 2); } - function nylo_eplain { + function nylo_explain { speech S_LAST_BLANK_LINE, l("There are banks all over the world. Usually every important village or city has one."), l("You can save both items and money at a bank."); @@ -146,17 +142,20 @@ { select l("Yeah, you're right."), + l("You store a large collection of goods. Could you perhaps sell me some?"), l("What is banking?"); switch (@menu) { case 1: - nylo_close; break; case 2: - nylo_eplain; + shop "Nylo#Beer"; + break; + case 3: + nylo_explain; break; } - } while (@menu != 2); + } while (@menu != 1); closedialog; goodbye; @@ -176,4 +175,18 @@ OnInit: .distance = 4; end; } +005-5,27,38,0 trader Nylo#Beer NPC_HIDDEN,{ + +OnInit: + tradertype(NST_MARKET); + sellitem Beer, 350, 100; + + .sex = G_OTHER; + .distance = 4; + end; + +OnClock0000: + restoreshopitem Beer, 100; + +} -- cgit v1.2.3-60-g2f50