From 20df2abc1aca00d6aa5dc78347133890f36b32f3 Mon Sep 17 00:00:00 2001 From: Saulc Date: Sat, 13 Jan 2018 20:50:42 +0100 Subject: Initial commit --- npc/001-2-0/resa.txt | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 npc/001-2-0/resa.txt (limited to 'npc/001-2-0/resa.txt') diff --git a/npc/001-2-0/resa.txt b/npc/001-2-0/resa.txt new file mode 100644 index 000000000..1530c8617 --- /dev/null +++ b/npc/001-2-0/resa.txt @@ -0,0 +1,80 @@ +// Evol scripts. +// Author: +// 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,{ + + function explain_craft { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("Did you see Don the blacksmith? He might know how you could improve your metal equipment."), + l("Nevertheless, you can craft some cards that you can then attach to your equipment."), + l("We sell a brimmed hat, you can craft a feather card and attach it to this hat to obtain an enhanced version of it!"); + + return; + } + + function enora_quest { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + 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 S_LAST_NEXT, l("You pick up the package."); + + setq ArtisQuests_Enora, 6; + + return; + } + + speech S_LAST_NEXT, + l("Welcome to my office."), + l("What would you like today?"); + + do + { + .@enora = getq(ArtisQuests_Enora); + select + rif(.@enora == 5, lg("I came to retrieve a package for Enora.")), + menuaction(l("Trade")), + l("How can I improve my equipment?"), + menuaction(l("Quit")); + + switch (@menu) + { + case 1: + enora_quest; + closedialog; + goodbye; + close; + case 2: + closedialog; + shop "Store#001-2-0"; + close; + case 3: + explain_craft; + break; + case 4: + closedialog; + goodbye; + close; + } + } while (1); + + +OnInit: + .sex = G_FEMALE; + .distance = 2; + end; +} -- cgit v1.2.3-60-g2f50