From b89fb40b9d93857479662215c7ee338f0816dece Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 May 2022 18:29:12 -0300 Subject: Add the chest with rewards to those whom triumph over Gemini Quest. --- npc/034-4/exit.txt | 31 +++++++++++++++++++++++++++++++ npc/034-4/intro.txt | 8 ++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) (limited to 'npc/034-4') diff --git a/npc/034-4/exit.txt b/npc/034-4/exit.txt index 8b1be0fc5..b321f7b8f 100644 --- a/npc/034-4/exit.txt +++ b/npc/034-4/exit.txt @@ -196,6 +196,37 @@ OnSick: if (instance_id() < 0 || getcharid(1) < 1) end; GeminiCheck(15); // TODO: Prizes + if (@mystatus > 20) { + dispbottom l("I already took my share from this chest."); + end; + } + inventoryplace Iten, 1; + @mystatus = 99; + .@q = getq(HurnscaldQuest_Gemini); + setq HurnscaldQuest_Gemini, .@q + 1; + //getitem RentCart, 1; // Not rented + switch (.@q) { + case 1: + getitem SarabArmlet, 1; + dispbottom l("I found %s!", getitemlink(SarabArmlet)); + break; + case 2: + getitem StrangeCoin, 250; + dispbottom l("I found %s!", "250 "+getitemlink(StrangeCoin)); + break; + case 3: + getitem MysteriousFruit, 1; + dispbottom l("I found %s!", getitemlink(MysteriousFruit)); + break; + default: + if (.@q % 2) { + Mobpt+=7500; + dispbottom l("I found %s!", "7,500 "+l("monster points")); + } else { + getexp 96000, 900; + dispbottom l("I found %s!", "96,000 "+l("experience points")); + } + } end; OnInit: diff --git a/npc/034-4/intro.txt b/npc/034-4/intro.txt index 734c49a1f..3615c0c91 100644 --- a/npc/034-4/intro.txt +++ b/npc/034-4/intro.txt @@ -146,8 +146,12 @@ OnTouch: if (instance_id() < 0 || getcharid(1) < 1) end; GeminiCheck(8); .@p=getcharid(1); - if (mobcount(getmap(), "all") > 0 || $@VALIA_STATUS[.@p] < 10) { - dispbottom l("Uh? I can't pass. I wonder why."); + if ($@VALIA_STATUS[.@p] < 10) { + dispbottom l("Uh? I can't pass. I wonder why, maybe I need to wait?"); + end; + } + if (mobcount(getmap(), "all") > 0) { + dispbottom l("I should defeat all mobs before passing."); end; } if (mobcount(getmap(), "all") <= 0 && $@VALIA_STATUS[.@p] == 10) { -- cgit v1.2.3-70-g09d2