summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-21 13:33:28 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-21 13:34:38 -0300
commitddf0125101f4f5b1eb4085968b4ba1e45d2888a6 (patch)
tree9e5e5450ed2ebbe45e6a22b2e1b4a67f9ea098b5 /npc
parent5146dab6617d5210b3f0b2b6fd170b443f98a1d4 (diff)
downloadserverdata-ddf0125101f4f5b1eb4085968b4ba1e45d2888a6.tar.gz
serverdata-ddf0125101f4f5b1eb4085968b4ba1e45d2888a6.tar.bz2
serverdata-ddf0125101f4f5b1eb4085968b4ba1e45d2888a6.tar.xz
serverdata-ddf0125101f4f5b1eb4085968b4ba1e45d2888a6.zip
Nylo sells beer for 350 GP
Diffstat (limited to 'npc')
-rw-r--r--npc/005-5/nylo.txt29
1 files changed, 21 insertions, 8 deletions
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;
+
+}