From c343e8f93455abff6967e501016b27b314205148 Mon Sep 17 00:00:00 2001 From: ThrisStraizo <45871917+ThrisStraizo@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:52:28 -0800 Subject: [PATCH] SMN AF3 Ogmios This PR adjusts the mob Ogmios for the 2nd part of the SMN AF3 questline. --- .../zones/Cloister_of_Gales/mobs/Ogmios.lua | 25 ++++++++++++++++++- sql/mob_groups.sql | 2 +- sql/mob_pools.sql | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua b/scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua index 0536f5a63e8..8ef5c551a71 100644 --- a/scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua +++ b/scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua @@ -6,7 +6,30 @@ ---@type TMobEntity local entity = {} -entity.onMobDeath = function(mob, player, optParams) +entity.onMobInitialize = function(mob) + mob:addImmunity(xi.immunity.DARK_SLEEP) + mob:addImmunity(xi.immunity.LIGHT_SLEEP) + mob:addImmunity(xi.immunity.TERROR) + mob:addImmunity(xi.immunity.SILENCE) +end + +entity.onMobSpawn = function(mob) + mob:setMobMod(xi.mobMod.BASE_DAMAGE_MULTIPLIER, 300) + mob:setMod(xi.mod.PARALYZE_RES_RANK, 4) + mob:setMod(xi.mod.BIND_RES_RANK, 4) + mob:setMod(xi.mod.ICE_RES_RANK, 4) + mob:setMod(xi.mod.WIND_RES_RANK, 10) + mob:setMod(xi.mod.STORETP, 25) -- 8 hit to 1k tp +end + +entity.onMobSpellChoose = function(mob, target, spellId) + local spellList = + { + xi.magic.spell.SILENCEGA, + xi.magic.spell.DISPELGA, + } + + return spellList[math.random(1, #spellList)] end return entity diff --git a/sql/mob_groups.sql b/sql/mob_groups.sql index 169f384a75b..c3bbed48aa5 100644 --- a/sql/mob_groups.sql +++ b/sql/mob_groups.sql @@ -13548,7 +13548,7 @@ INSERT INTO `mob_groups` VALUES (48,6891,200,'Mephitas',0,128,0,0,0,0,NULL); -- ------------------------------------------------------------ INSERT INTO `mob_groups` VALUES (1,4647,201,'Garuda_Prime_TBW',0,128,0,8000,0,0,NULL); -INSERT INTO `mob_groups` VALUES (2,2951,201,'Ogmios',0,128,0,10000,0,0,NULL); +INSERT INTO `mob_groups` VALUES (2,2951,201,'Ogmios',0,128,0,11000,11000,0,NULL); INSERT INTO `mob_groups` VALUES (3,7049,201,'Garuda_Prime_TSTBW',0,128,0,700,0,0,NULL); INSERT INTO `mob_groups` VALUES (4,1473,201,'Garuda_Prime_WTB',0,128,0,25000,0,0,NULL); -- use the temenos elemental mob pool as those are MOBTYPE_BATTLEFIELD diff --git a/sql/mob_pools.sql b/sql/mob_pools.sql index 640d86c48d9..773546f64ab 100644 --- a/sql/mob_pools.sql +++ b/sql/mob_pools.sql @@ -3006,7 +3006,7 @@ INSERT INTO `mob_pools` VALUES (2947,'Offspring','Offspring',137,0x0000740400000 INSERT INTO `mob_pools` VALUES (2948,'Ogama','Ogama',86,0x0000400100000000000000000000000000000000,1,1,3,270,100,0,1,0,0,2,0,0,283,1157,0,0,0,0,0,86,86,2,34); INSERT INTO `mob_pools` VALUES (2949,'Oggbi','Oggbi',146,0x0100030843101120433011404350836000700080,2,2,1,480,100,0,0,0,0,0,0,32,0,1177,0,0,0,0,0,146,146,NULL,NULL); INSERT INTO `mob_pools` VALUES (2950,'Ogler','Ogler',4,0x0000080100000000000000000000000000000000,1,4,11,240,100,0,1,0,1,0,0,0,1,131,0,0,2,0,0,4,4,1,24); -INSERT INTO `mob_pools` VALUES (2951,'Ogmios','Ogmios',179,0x0000920100000000000000000000000000000000,1,4,7,360,100,0,1,0,0,16,0,32,151,1181,0,0,0,0,0,179,179,2,36); +INSERT INTO `mob_pools` VALUES (2951,'Ogmios','Ogmios',179,0x0000920100000000000000000000000000000000,1,4,7,350,100,0,1,0,0,16,0,32,151,1181,0,0,1,0,0,179,179,2,36); INSERT INTO `mob_pools` VALUES (2952,'Ogopogo','Ogopogo',40,0x00001B0300000000000000000000000000000000,4,4,12,240,100,0,0,0,0,2,0,0,3,3229,0,0,2,0,0,40,323,NULL,NULL); INSERT INTO `mob_pools` VALUES (2953,'Ogrefly','Ogrefly',113,0x0000C00100000000000000000000000000000000,1,1,8,240,100,0,0,0,1,0,0,0,237,1667,8,0,0,0,0,113,113,1,15); INSERT INTO `mob_pools` VALUES (2954,'Ogreish_Risotto','Ogreish_Risotto',229,0x0000240100000000000000000000000000000000,1,1,7,240,100,0,1,0,0,4,0,0,0,3,0,0,0,0,0,229,229,NULL,NULL);