From 691fd800c71ac982b9f02de36acbea5532b1a4c5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 14 Jul 2021 23:20:32 -0300 Subject: Initial version of Doomsday Quest. Minimum Level 100. Temporary reward. Untested. Also, fix the Scythe and add stats to the Halberd. --- npc/099-5/boss.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'npc/099-5/boss.txt') diff --git a/npc/099-5/boss.txt b/npc/099-5/boss.txt index a645351b..eed13059 100644 --- a/npc/099-5/boss.txt +++ b/npc/099-5/boss.txt @@ -219,8 +219,7 @@ OnMTReward52: goto OnMTDispose; // Tally rewards - // FIXME TODO Use a bitwise to save space? Or a quest state. - if (!#DD5_TALLY) + if (getq(Quest_Doomsday) < 3) goto OnTally; goto OnEpilogue1; @@ -241,11 +240,12 @@ OnMTReward42: // Tally rewards // FIXME TODO Use a bitwise to save space? See above - if (!#DD5_TALLY) + if (getq(Quest_Doomsday) < 3) goto OnTally; goto OnEpilogue1; OnTally: + compareandsetq Quest_Doomsday, 1, 2; if (@dd5_score > $@DD5_TALLY_) goto OnTallyOK; goto OnEpilogue1; @@ -988,8 +988,6 @@ OnTalkNearby: // Only react if the message is what we want to hear if (.@message$ != "MITEYO") end; - if ($DOOMSDAY != 3) - end; if ($@DD5_HP < 1) end; message strcharinfo(0), "Estimated boss HP: "+($@DD5_HP+rand(-100, 100)); @@ -1446,9 +1444,9 @@ L_MissionComplete: L_Winner: getitem SaviorArmor, 1; - getvaultexp(250); // This is TMW's main quest, worth 50% of the EXP bar $@DD5_TALLY$ = ""; - #DD5_TALLY = 1; + setq Quest_Doomsday, 3; + getvaultexp(250); // This is TMW's main quest, worth 50% of the EXP bar mes "##2You were the MVP with "+$@DD5_TALLY_+" points!##0"; //mes "##2Exchange this blue rose with a Game Master!##0"; close; -- cgit v1.2.3-60-g2f50