From 74cf9e5432bd448a654366503a847cefd9ed50fb Mon Sep 17 00:00:00 2001 From: jesusalva Date: Sun, 11 Feb 2018 09:52:04 -0200 Subject: Nard will transport you to tulishmar, first time only, instant. --- npc/002-4/elmo.txt | 2 +- npc/002-4/nard.txt | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) (limited to 'npc/002-4') diff --git a/npc/002-4/elmo.txt b/npc/002-4/elmo.txt index 3dfcad5e3..8697781d4 100644 --- a/npc/002-4/elmo.txt +++ b/npc/002-4/elmo.txt @@ -9,7 +9,7 @@ 002-4,27,27,0 script Elmo NPC_ELMO,{ - if (getq(General_Narrator) < 0) + if (LOCATION$ == "") { sailortalk; } diff --git a/npc/002-4/nard.txt b/npc/002-4/nard.txt index 2000fc733..745f42ddf 100644 --- a/npc/002-4/nard.txt +++ b/npc/002-4/nard.txt @@ -39,6 +39,7 @@ L_Checker: if (.@nard > 4) goto L_Already; if (.@gugli == 2) goto L_Done; if (.@nard == 1) goto L_NotYet; + if (LOCATION$ != "") goto L_NotYet; if (.@narrator == 1) goto L_NotYet; // TODO mesn; @@ -88,7 +89,6 @@ L_MenuQuest: next; mesn; mesq l("Why Tulishmar, you say? Because well, believe me, if you want to find out anything, the best place to ask around is Tulim!"); - setq General_Narrator, 1; LOCATION$ = "Candor"; //inventoryplace JohanneKey, 1; @@ -149,13 +149,19 @@ L_CandorIsland: L_NotYet: mesn; - mesq l("You still haven't completed your tasks."); - next; - .@price=2000000000-Zeny; // TODO: The price is 2 kGP, not 2 Billions - if (.@price <= 0) - mesq l("I don't accept dirty money. You must have a hard-worked gold!"); - else + .@price=2000-Zeny; // TODO: The price is 2 kGP, not 2 Billions + if (Zeny >= .@price) { + mesq l("Ten, fifty, thousand... Yep, this is the amount I've asked for."); + next; + mesq l("Set sail! We're going to Tulishmar!"); + set Zeny, Zeny-.@price; + setq General_Narrator, 1; + LOCATION$="Tulim"; + } else { + mesq l("You still haven't completed your tasks."); + next; mesq l("You still need @@ GP for the trip to Tulishmar.", .@price); + } close; L_Done: -- cgit v1.2.3-60-g2f50