summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt14
1 files changed, 10 insertions, 4 deletions
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 &&