From 78b4149a11e77d7d5967a5eeb4776b6624026f15 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 11 Aug 2015 17:58:53 +0300 Subject: Rewrite fexil script in modern way. --- npc/000-1/fexil.txt | 42 ++++++++++++++---------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/npc/000-1/fexil.txt b/npc/000-1/fexil.txt index 65ae2161..e34f8470 100644 --- a/npc/000-1/fexil.txt +++ b/npc/000-1/fexil.txt @@ -15,42 +15,28 @@ mesq lg("Interested?"); next; - switch (select("Yes, why not.:I would rather sell some stuff.:No, Sorry.")) { case 1: shop "Bying Bag"; - goto L_Buy; - close2; - end; + closedialog; + shop "Bag#000-1"; + close; + case 2: - goto L_Sell; - end; + closedialog; + shop "Bag#000-1"; + close; + default: - goto L_No; + mes ""; + mesn; + mesq l("Oh... Well, I just started to trade... Thus my technique may not be the best."); + next; + mesq lg("Anyway, if you ever feel interested, just check my bag!"); + close; } -L_No: - mes ""; - mesn; - mesq l("Oh... Well, I just started to trade... Thus my technique may not be the best."); - next; - mesq lg("Anyway, if you ever feel interested, just check my bag!"); - - close; - -L_Buy: - closedialog; - shop "Bag#000-1"; - - close; - -L_Sell: - closedialog; - shop "Bag#000-1"; - - close; - OnInit: setnpcsex G_MALE; setnpcdistance 2; -- cgit v1.2.3-70-g09d2