From eb44e0f9eeaee41d1eaf19f5610b6e30be450733 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 May 2022 14:31:42 -0300 Subject: Draft for the showdown. Quest should be working now. --- npc/034-4/exit.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'npc/034-4/exit.txt') diff --git a/npc/034-4/exit.txt b/npc/034-4/exit.txt index 5efee06d1..1487f4898 100644 --- a/npc/034-4/exit.txt +++ b/npc/034-4/exit.txt @@ -7,23 +7,25 @@ 034-4,144,82,0 script #GeminiFExit NPC_HIDDEN,0,0,{ OnWumpus: - GeminiCheck(); - // TODO FIXME: Instead of 75% chance, a Wumpus Egg only on first victory? + GeminiCheck(15); + .@q = getq2(HurnscaldQuest_Gemini); // TODO: Maybe exchange an Wumpus Egg for a Sunny Crystal or Mylarin Dust? - // Or have a NPC do so, I guess. - if (any(true, true, true, false)) + // Have a NPC do so only once, for the Savior set. + if (.@q == 0 || .@q == 2 || (.@q > 5 && !(.@q % 3))) getitem WumpusEgg, 1; else getitem LightGreenDiamond, 1; getexp 0, rand2(7500, 9999); + setq2 HurnscaldQuest_Gemini, .@q + 1; @forced_sick$ = ""; end; OnTouch: - GeminiCheck(); + if (instance_id() < 0 || getcharid(1) < 1) end; + GeminiCheck(15); // Only the party leader go ahead if (strcharinfo(0) != getpartyleader(getcharid(1))) { - mes l("%s has the key.", getpartyleader(getcharid(1))); + mes l("Only %s has the key.", getpartyleader(getcharid(1))); close; } -- cgit v1.2.3-70-g09d2