From e7fe9558735ae104fa1c818c31125291f06b587d Mon Sep 17 00:00:00 2001 From: Reid Date: Sun, 14 Feb 2016 03:07:57 +0100 Subject: Add enora newb quest on resa. --- npc/001-2-0/resa.txt | 48 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 9 deletions(-) (limited to 'npc/001-2-0') diff --git a/npc/001-2-0/resa.txt b/npc/001-2-0/resa.txt index 1660b5d6..38c4546c 100644 --- a/npc/001-2-0/resa.txt +++ b/npc/001-2-0/resa.txt @@ -3,6 +3,16 @@ // Reid // Description: // Light Armor shop keeper. +// Variables: +// ArtisQuests_Enora +// Values: +// 0 Default. +// 1 BlackSmith quest delivered. +// 2 Chelios Quest given. +// 3 Chelios Quest done. +// 4 BlackSmith gave the sword. +// 5 Light Armor Shop quest delivered. +// 6 Light Armor Shop gave the cloths. 001-2-0,37,28,0 script Resa NPC_ELVEN_FEMALE_ARMOR_SHOP,{ @@ -15,17 +25,38 @@ return; } + function enora_quest { + speech 5, + l("I thought that she would never come to pick it up!"), + l("Here it is, a fashionable @@.", getitemlink (ArtisTankTop, CamelCottonDye)), + l("I asked Calypsan to dye this tank top, now it has an unique look!"); + + narrator 4, l("You pick up the package."); + + setq ArtisQuests_Enora, 6; + + return; + } + speech 4, l("Welcome to my office."), l("What would you like today?"); do { - .@q = select (l("[Trade]"), - l("How can I improve my equipment?"), - l("[Quit]")); - switch (.@q) + .@enora = getq (ArtisQuests_Enora); + menuint rif (.@enora == 5, l("I came to retrieve a package for Enora.")), 0, + l("[Trade]"), 1, + l("How can I improve my equipment?"), 2, + l("[Quit]"), 3; + + switch (@menuret) { + case 0: + enora_quest; + closedialog; + goodbye; + close; case 1: closedialog; shop "Store#001-2-0"; @@ -34,13 +65,12 @@ explain_craft; break; case 3: - break; + closedialog; + goodbye; + close; } - } while (.@q != 3); + } while (1); - closedialog; - goodbye; - close; OnInit: .sex = G_FEMALE; -- cgit v1.2.3-70-g09d2