summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
authorSean Hulka <sean.hulka@gmail.com>2020-07-22 22:44:30 +0000
committerJesusaves <cpntb1@ymail.com>2020-07-22 22:44:30 +0000
commitfd13b7893ebb7affaacfcdc1bfa016de516f8d2d (patch)
tree8d6904848420a5d0ae6b6d1966e3bb99178adbd0 /npc/functions/hub.txt
parent1932765753bf35d38681d1cdd8d9837cbab8e7c8 (diff)
downloadserverdata-fd13b7893ebb7affaacfcdc1bfa016de516f8d2d.tar.gz
serverdata-fd13b7893ebb7affaacfcdc1bfa016de516f8d2d.tar.bz2
serverdata-fd13b7893ebb7affaacfcdc1bfa016de516f8d2d.tar.xz
serverdata-fd13b7893ebb7affaacfcdc1bfa016de516f8d2d.zip
Adds new Elite Duck monster.
Second and third quest stages of PIRATES OF SARAH. Updates Ducky summoning skill.
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;