From b73cecf2dd621675eeb3674423450b9b5079ee63 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 16 Jul 2021 23:11:39 -0300 Subject: Migrate OrumQuest to the QuestSystem, and inheir skills on ported chars. --- npc/functions/clear_vars.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc/functions/clear_vars.txt') diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index efaa9d13..9670134b 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -12,11 +12,12 @@ function script ClearVariables { QL_HIDENSEEK = 0; } if (#CRYPT_PASSWORD && !getq(Quest_Reapercry)) { + learnskill SKILL_REAPERCRY, 1; setq Quest_Reapercry, 1; } if (#DD5_TALLY) { setq Quest_Doomsday, 2; - #DD5_TALLY = 0; // Whatever + #DD5_TALLY = 0; // Whatever, one is enough } if (#BankAccount) { BankVault += #BankAccount; @@ -56,8 +57,16 @@ function script ClearVariables { //SAGATHA_ST = (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT; // Unhappy //Saggy - 4+5 //Alchemist - 6+7 (War Quest - Swords again?) + if (OrumQuest >= 37) + learnskill SKILL_HELORP; + if (OrumQuest >= 38) + learnskill SKILL_PHLEX; + if (OrumQuest >= 41) + learnskill SKILL_HALHISS; + setq(MagicQuest_DarkMage, OrumQuest); QUEST_MAGIC = 0; QUEST_MAGIC2 = 0; + OrumQuest = 0; } return; } -- cgit v1.2.3-60-g2f50