From 966297f7b40879a453de0b5bfbde938e428bf83f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Jun 2020 08:06:17 -0300 Subject: Add 20% chance of Giant Maggots showing up with Kalmurk. This only happens if you have a magic power of 3+ and perfect control Maggot GHQ must also be complete. --- npc/functions/hub.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 3e745825d..85c8f8c6a 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -497,10 +497,6 @@ function script HUB_SkillInvoke { GetManaExp(@skillId, 1); break; // Summons which may fail - case TMW2_KALMURK: - // TODO: Allow Giant Maggot summoning - SK_summon(Maggot, 2, any(1,2)); - break; case TMW2_KALWULF: SK_summon(Wolvern, 4, any(3,4)); break; @@ -524,6 +520,16 @@ function script HUB_SkillInvoke { SK_summon(any(VanityPixie, HolyPixie, ShadowPixie, NulityPixie), 5, any(4,5)); break; // More complex summons + case TMW2_KALMURK: + .@mobId=Maggot; + if (abizit() > 4 && + GHMEMO[GHQ_GetQuestIDByMonsterID(Maggot)] >= 10000 && + MAGIC_LVL >= 3) + { + .@mobId=any(Maggot, Maggot, Maggot, Maggot, GiantMaggot); + } + SK_summon(.@mobId, (.@mobId == Maggot ? 2 : 4), any(1,2)); + break; case TMW2_HALHISS: .@mobId=Snake; if (abizit() > 3 && -- cgit v1.2.3-70-g09d2