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.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 4a230dc43..b3a63d5e6 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -722,9 +722,24 @@ function script HUB_SkillInvoke {
SK_summon(.@mobId, 4, any(4,5));
break;
case TMW2_DUCKY:
+ .@mobId=Duck;
+ .@q=getq(LilitQuest_PiratesOfSARAH);
if (!alignment_cansummon())
break;
- SummonMagic(@skillId, Duck, 2, @skillLv);
+ if (abizit() > 4 &&
+ .@q > 2 &&
+ MAGIC_LVL >= 3)
+ {
+ // GHQ Complete: 33% chances
+ // Otherwise: 8% chances
+ if (GHMEMO[GHQ_GetQuestIDByMonsterID(Duck)] >= 10000)
+ .@mobId=any(Duck, Duck, EliteDuck);
+ else
+ .@mobId=any(Duck, Duck, Duck, Duck,
+ Duck, Duck, Duck, Duck,
+ Duck, Duck, Duck, EliteDuck);
+ }
+ SummonMagic(@skillId, .@mobId, 2);
GetManaExp(@skillId, 1);
break;