From 1a35560fca60f287fa9f807a93b8858c14142b8d Mon Sep 17 00:00:00 2001 From: Critical <48370698+CriticalXI@users.noreply.github.com> Date: Sat, 31 Jan 2026 21:19:53 -0700 Subject: [PATCH] [lua][module] Era module folder organization --- modules/README.md | 14 +++++ .../lua/cop_mission_level_caps.lua} | 3 +- .../{era => abyssea}/lua/era_HNM_system.lua | 11 ++-- .../{era => abyssea}/lua/unlocking_a_myth.lua | 3 + .../sql/cop_level_restrictions.sql | 7 +++ .../sql/era_abilities_enmity.sql | 0 .../{era => abyssea}/sql/era_spell_enmity.sql | 60 +++++++++---------- .../sql/guild_item_points.sql | 8 --- modules/abyssea/sql/item_cooldowns.sql | 8 +++ modules/abyssea/sql/job_adjustments.sql | 1 + .../sql/mob_droplist_removal.sql} | 28 ++------- modules/{era => cop}/lua/pre_rmt_drops.lua | 4 ++ .../lua/missable_mom_the_adventurer.lua | 0 modules/era/sql/2hr_ability_cooldowns.sql | 19 ------ modules/era/sql/item_cooldowns.sql | 2 - .../era/sql/original_absorb_casting_time.sql | 17 ------ modules/{era => rov}/lua/The_Kuftal_Tour.lua | 4 +- .../{era => rov}/lua/era_effect_composure.lua | 5 +- .../{era => rov}/lua/era_moongate_time.lua | 6 +- modules/rov/sql/guild_item_points.sql | 11 ++++ modules/{era => soa}/lua/northward.lua | 4 +- modules/soa/lua/physical_hit_cap.lua | 2 +- .../{era => soa}/sql/pre_2014_skill_ranks.sql | 7 ++- modules/{era => toau}/lua/cop_signet.lua | 3 +- modules/toau/sql/mob_droplist_removal.sql | 31 ++++++++++ .../toau/sql/original_absorb_casting_time.sql | 22 +++++++ modules/{era => toau}/sql/pre_rmt_drops.sql | 2 +- .../lua/pdif_caps_revert.lua} | 0 .../lua}/weaponskills/archery.lua | 0 .../toau => wotg/lua}/weaponskills/axe.lua | 0 .../toau => wotg/lua}/weaponskills/club.lua | 0 .../toau => wotg/lua}/weaponskills/dagger.lua | 0 .../lua}/weaponskills/great_axe.lua | 0 .../lua}/weaponskills/great_katana.lua | 0 .../lua}/weaponskills/great_sword.lua | 0 .../lua}/weaponskills/hand_to_hand.lua | 0 .../toau => wotg/lua}/weaponskills/katana.lua | 0 .../lua}/weaponskills/marksmanship.lua | 0 .../lua}/weaponskills/polearm.lua | 0 .../toau => wotg/lua}/weaponskills/scythe.lua | 0 .../toau => wotg/lua}/weaponskills/staff.lua | 0 .../toau => wotg/lua}/weaponskills/sword.lua | 0 modules/{era => wotg}/sql/2007_exp_tables.sql | 7 ++- .../sql/tier_one_weapon_skills.sql | 10 +++- 44 files changed, 179 insertions(+), 120 deletions(-) rename modules/{era/lua/missions/cop_level_caps.lua => abyssea/lua/cop_mission_level_caps.lua} (94%) rename modules/{era => abyssea}/lua/era_HNM_system.lua (98%) rename modules/{era => abyssea}/lua/unlocking_a_myth.lua (91%) rename modules/{era => abyssea}/sql/cop_level_restrictions.sql (68%) rename modules/{era => abyssea}/sql/era_abilities_enmity.sql (100%) rename modules/{era => abyssea}/sql/era_spell_enmity.sql (85%) rename modules/{era => abyssea}/sql/guild_item_points.sql (99%) create mode 100644 modules/abyssea/sql/item_cooldowns.sql rename modules/{era/sql/mob_droplist_toau_era.sql => abyssea/sql/mob_droplist_removal.sql} (57%) rename modules/{era => cop}/lua/pre_rmt_drops.lua (85%) rename modules/{era => custom}/lua/missable_mom_the_adventurer.lua (100%) delete mode 100644 modules/era/sql/2hr_ability_cooldowns.sql delete mode 100644 modules/era/sql/item_cooldowns.sql delete mode 100644 modules/era/sql/original_absorb_casting_time.sql rename modules/{era => rov}/lua/The_Kuftal_Tour.lua (86%) rename modules/{era => rov}/lua/era_effect_composure.lua (67%) rename modules/{era => rov}/lua/era_moongate_time.lua (92%) create mode 100644 modules/rov/sql/guild_item_points.sql rename modules/{era => soa}/lua/northward.lua (78%) rename modules/{era => soa}/sql/pre_2014_skill_ranks.sql (70%) rename modules/{era => toau}/lua/cop_signet.lua (93%) create mode 100644 modules/toau/sql/mob_droplist_removal.sql create mode 100644 modules/toau/sql/original_absorb_casting_time.sql rename modules/{era => toau}/sql/pre_rmt_drops.sql (99%) rename modules/{era/lua/base/combat/original_pdif_caps.lua => wotg/lua/pdif_caps_revert.lua} (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/archery.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/axe.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/club.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/dagger.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/great_axe.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/great_katana.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/great_sword.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/hand_to_hand.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/katana.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/marksmanship.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/polearm.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/scythe.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/staff.lua (100%) rename modules/{era/lua/toau => wotg/lua}/weaponskills/sword.lua (100%) rename modules/{era => wotg}/sql/2007_exp_tables.sql (98%) rename modules/{era => wotg}/sql/tier_one_weapon_skills.sql (52%) diff --git a/modules/README.md b/modules/README.md index 8f06509329a..a9451e59b50 100644 --- a/modules/README.md +++ b/modules/README.md @@ -3,3 +3,17 @@ Please see `init.txt` for how to load modules. Please see [the module guide on the wiki](https://github.com/LandSandBoat/server/wiki/Module-Guide) for a comprehensive guide on how to write and use Lua, C++, and SQL modules. + +## Era Accuracy Modules + +When creating modules to revert or adjust content for era accuracy, place them in the folder corresponding to the expansion when the change was introduced: + +- cop/ : Chains of Promathia (September 2004 - March 2006) +- toau/ : Treasures of Aht Urhgan (April 2006 - October 2007) +- wotg/ : Wings of the Goddess (November 2007 - May 2010) +- abyssea/ : Abyssea Add-ons (June 2010 - February 2013) +- soa/ : Seekers of Adoulin (March 2013 - April 2015) +- rov/ : Rhapsodies of Vana'diel (May 2015 - July 2020) +- tvr/ : The Voracious Resurgence (August 2020 - Present) + +For example, if a change occurred in December 2010 and you want a module to revert it, place it in the abyssea/ folder. diff --git a/modules/era/lua/missions/cop_level_caps.lua b/modules/abyssea/lua/cop_mission_level_caps.lua similarity index 94% rename from modules/era/lua/missions/cop_level_caps.lua rename to modules/abyssea/lua/cop_mission_level_caps.lua index a466ba3dad2..2bdc5e4912e 100644 --- a/modules/era/lua/missions/cop_level_caps.lua +++ b/modules/abyssea/lua/cop_mission_level_caps.lua @@ -1,7 +1,8 @@ ----------------------------------- -- CoP Mission Battlefield Level Caps Module -- Implements era-appropriate level caps for all CoP mission battlefields --- Level caps were removed May 2010 +----------------------------------- +-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(06/21/2010) ----------------------------------- local m = Module:new('cop_level_caps') diff --git a/modules/era/lua/era_HNM_system.lua b/modules/abyssea/lua/era_HNM_system.lua similarity index 98% rename from modules/era/lua/era_HNM_system.lua rename to modules/abyssea/lua/era_HNM_system.lua index 0366a6aa45f..17521dcc7dc 100644 --- a/modules/era/lua/era_HNM_system.lua +++ b/modules/abyssea/lua/era_HNM_system.lua @@ -1,4 +1,10 @@ ----------------------------------- +-- Era HNM System Module +-- This module attempts to replicate old Land King pop system in an era-accurate way. +-- It comes along a ToD perpetuation/retainment system, for server crashes, since this NMs were usually contested by endgame LSs. +----------------------------------- +-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(05/09/2011) +----------------------------------- -- Common Requires ----------------------------------- require('modules/module_utils') @@ -9,11 +15,6 @@ local dragonsAeryID = zones[xi.zone.DRAGONS_AERY] local valleySorrowsID = zones[xi.zone.VALLEY_OF_SORROWS] local behemothDomID = zones[xi.zone.BEHEMOTHS_DOMINION] ------------------------------------ --- Module definition ------------------------------------ --- This module attempts to replicate old Land King pop system in an era-accurate way. --- It comes along a ToD perpetuation/retainment system, for server crashes, since this NMs were usually contested by endgame LSs. local hnmSystem = Module:new('era_HNM_System') ----------------------------------- diff --git a/modules/era/lua/unlocking_a_myth.lua b/modules/abyssea/lua/unlocking_a_myth.lua similarity index 91% rename from modules/era/lua/unlocking_a_myth.lua rename to modules/abyssea/lua/unlocking_a_myth.lua index b66c18f49af..3012aa3bde4 100644 --- a/modules/era/lua/unlocking_a_myth.lua +++ b/modules/abyssea/lua/unlocking_a_myth.lua @@ -1,7 +1,10 @@ ----------------------------------- +-- Unlocking a Myth Module -- Update Zalsuhn to require scaling ws points based on nyzul climb (pre 2014) -- Also update the required WS points for all Vigil weapons latent ability ----------------------------------- +-- Source: https://forum.square-enix.com/ffxi/threads/43135-Jul-8-2014-%28JST%29-Version-Update +----------------------------------- require('modules/module_utils') ----------------------------------- local m = Module:new('unlocking_a_myth') diff --git a/modules/era/sql/cop_level_restrictions.sql b/modules/abyssea/sql/cop_level_restrictions.sql similarity index 68% rename from modules/era/sql/cop_level_restrictions.sql rename to modules/abyssea/sql/cop_level_restrictions.sql index a5f7998980f..0885edbe8f1 100644 --- a/modules/era/sql/cop_level_restrictions.sql +++ b/modules/abyssea/sql/cop_level_restrictions.sql @@ -1,3 +1,10 @@ +----------------------------------- +-- CoP Level Capped Zones Module +-- Implements era-appropriate level caps for all CoP mission battlefields +------------------------------------ +-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(06/21/2010) +----------------------------------- + UPDATE `zone_settings` SET restriction = 30 WHERE `name` = "Promyvion-Holla"; UPDATE `zone_settings` SET restriction = 30 WHERE `name` = "Promyvion-Dem"; UPDATE `zone_settings` SET restriction = 30 WHERE `name` = "Promyvion-Mea"; diff --git a/modules/era/sql/era_abilities_enmity.sql b/modules/abyssea/sql/era_abilities_enmity.sql similarity index 100% rename from modules/era/sql/era_abilities_enmity.sql rename to modules/abyssea/sql/era_abilities_enmity.sql diff --git a/modules/era/sql/era_spell_enmity.sql b/modules/abyssea/sql/era_spell_enmity.sql similarity index 85% rename from modules/era/sql/era_spell_enmity.sql rename to modules/abyssea/sql/era_spell_enmity.sql index 51498ba894b..f446a0cccb8 100644 --- a/modules/era/sql/era_spell_enmity.sql +++ b/modules/abyssea/sql/era_spell_enmity.sql @@ -70,36 +70,36 @@ UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Aurorastorm'; -- Black Magic -UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Poison'; -UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Poison II'; -UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Poisonga'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Blind'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Blind II'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Bind'; -UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Bio'; -UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Bio II'; -UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Bio III'; -UPDATE `spell_list` SET CE = 1, VE = 480 WHERE `name` = 'Blaze Spikes'; -UPDATE `spell_list` SET CE = 1, VE = 480 WHERE `name` = 'Ice Spikes'; -UPDATE `spell_list` SET CE = 1, VE = 480 WHERE `name` = 'Shock Spikes'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Burn'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Choke'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Shock'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Frost'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Rasp'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Drown'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Sleep'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Sleep II'; -UPDATE `spell_list` SET CE = 1, VE = 80 WHERE `name` = 'Gravity'; -UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Dispel'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-STR'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-DEX'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-VIT'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-INT'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-MND'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-CHR'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-AGI'; -UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-ACC'; +UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Poison'; +UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Poison II'; +UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Poisonga'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Blind'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Blind II'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Bind'; +UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Bio'; +UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Bio II'; +UPDATE `spell_list` SET CE = 1, VE = 320 WHERE `name` = 'Bio III'; +UPDATE `spell_list` SET CE = 1, VE = 480 WHERE `name` = 'Blaze Spikes'; +UPDATE `spell_list` SET CE = 1, VE = 480 WHERE `name` = 'Ice Spikes'; +UPDATE `spell_list` SET CE = 1, VE = 480 WHERE `name` = 'Shock Spikes'; +UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Burn'; +UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Choke'; +UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Shock'; +UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Frost'; +UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Rasp'; +UPDATE `spell_list` SET CE = 1, VE = 300 WHERE `name` = 'Drown'; +UPDATE `spell_list` SET CE = 320, VE = 240 WHERE `name` = 'Sleep'; +UPDATE `spell_list` SET CE = 480, VE = 480 WHERE `name` = 'Sleep II'; +UPDATE `spell_list` SET CE = 1, VE = 80 WHERE `name` = 'Gravity'; +UPDATE `spell_list` SET CE = 320, VE = 320 WHERE `name` = 'Dispel'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-STR'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-DEX'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-VIT'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-INT'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-MND'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-CHR'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-AGI'; +UPDATE `spell_list` SET CE = 1, VE = 640 WHERE `name` = 'Absorb-ACC'; -- Songs diff --git a/modules/era/sql/guild_item_points.sql b/modules/abyssea/sql/guild_item_points.sql similarity index 99% rename from modules/era/sql/guild_item_points.sql rename to modules/abyssea/sql/guild_item_points.sql index 4963f7fd105..3d359b6ba81 100644 --- a/modules/era/sql/guild_item_points.sql +++ b/modules/abyssea/sql/guild_item_points.sql @@ -6,10 +6,6 @@ -- Wiki: https://ffxiclopedia.fandom.com/wiki/Guild_Points/Items?oldid=1060231 -- Patch Notes: Some of the items requested by guildworkers' union representatives have changed. -- Patch Notes Link: https://forum.square-enix.com/ffxi/threads/15044 --- --- Dividing Max Values by 3 due to guild points being tripled in 11/08/2016. --- Patch Notes: The maximum number of points that may be earned from delivering guild point items has been increased. --- Patch Notes Link: https://forum.square-enix.com/ffxi/threads/51624 -- -- Guild point rewards for Cooking Guild turn-in items were increased in 10/12/2011. -- Patch Notes: Guild point rewards for Cooking Guild crafting quests have been increased @@ -22,10 +18,6 @@ -- 15% was added to the NQ value. -- -------------------------------------------------------- --- Divide all max_points by 3 for LSB adjustment -UPDATE `guild_item_points` -SET `max_points` = `max_points` / 3; - -- ======================================================== -- ITEM CORRECTIONS (pre-oct 2011 historical data) -- UPDATE to new item, DELETE old item, INSERT new items diff --git a/modules/abyssea/sql/item_cooldowns.sql b/modules/abyssea/sql/item_cooldowns.sql new file mode 100644 index 00000000000..a82bd5407f8 --- /dev/null +++ b/modules/abyssea/sql/item_cooldowns.sql @@ -0,0 +1,8 @@ +------------------------------------ +-- Reverts Moogle Cap to its original 3 day cooldown +------------------------------------ +-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(05/09/2011) +------------------------------------ + +UPDATE `item_usable` SET reuseDelay = 259200 WHERE `name` = "moogle_cap"; -- 72 hours (in seconds) +UPDATE `item_usable` SET reuseDelay = 259200 WHERE `name` = "nomad_cap"; -- 72 hours (in seconds) diff --git a/modules/abyssea/sql/job_adjustments.sql b/modules/abyssea/sql/job_adjustments.sql index a9a15a9c471..d29f47016bd 100644 --- a/modules/abyssea/sql/job_adjustments.sql +++ b/modules/abyssea/sql/job_adjustments.sql @@ -1,6 +1,7 @@ ------------------------------------ -- Abyssea Job SQL Adjustments -- This module reverts relevant SQL tables for jobs to their pre-Abyssea values +------------------------------------ -- Unless otherwise noted, all changes here are sourced from: https://www.bg-wiki.com/ffxi/Version_Update_(03/26/2012) ------------------------------------ diff --git a/modules/era/sql/mob_droplist_toau_era.sql b/modules/abyssea/sql/mob_droplist_removal.sql similarity index 57% rename from modules/era/sql/mob_droplist_toau_era.sql rename to modules/abyssea/sql/mob_droplist_removal.sql index 79b14aa9802..3bc880b2e4a 100644 --- a/modules/era/sql/mob_droplist_toau_era.sql +++ b/modules/abyssea/sql/mob_droplist_removal.sql @@ -1,33 +1,13 @@ ----------------------------------- --- Mob drop list item removal module --- This module removes or dds items for specific era's +-- Mob drop list item removal module for Abyssea era +----------------------------------- +-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(12/06/2010) +-- Source: https://www.bg-wiki.com/ffxi/Version_Update_(07/23/2012) ----------------------------------- -- Define rate variables SET @COMMON = 150; -- Common, 15% --- ACP/AMK/ASA Items -DELETE FROM mob_droplist WHERE itemId = 2741; -- Seedspall Luna (Uncommon, 10%) ACP -DELETE FROM mob_droplist WHERE itemId = 2758; -- Quadav Backscale (Rare, 5%) AMK -DELETE FROM mob_droplist WHERE itemId = 2778; -- Inferior Cocoon (Uncommon, 10%) ASA item -DELETE FROM mob_droplist WHERE itemId = 2776; -- Pumice Stone (Uncommon, 10%) ASA item -DELETE FROM mob_droplist WHERE itemId = 2757; -- Orcish Armor Plate (Rare, 5%) AMK item -DELETE FROM mob_droplist WHERE itemId = 2759; -- Block Of Yagudo Caulk (Rare, 5%) AMK item -DELETE FROM mob_droplist WHERE itemId = 2742; -- Seedspall Astrum -DELETE FROM mob_droplist WHERE itemId = 2740; -- Seedspall Lux (Uncommon, 10%) ACP Item - --- WOTG -DELETE FROM mob_droplist WHERE itemId = 4702; -- Scroll of Sacrifice -DELETE FROM mob_droplist WHERE itemId = 4703; -- Scroll Of Esuna WOTG -DELETE FROM mob_droplist WHERE itemId = 4726; -- Scroll Of Enthunder II WOTG -DELETE FROM mob_droplist WHERE itemId = 4703; -- Scroll Of Esuna WOTG -DELETE FROM mob_droplist WHERE itemId = 4725; -- Scroll Of Enstone II WOTG -DELETE FROM mob_droplist WHERE itemId = 4724; -- Scroll Of Enaero II WOTG -DELETE FROM mob_droplist WHERE itemId = 4723; -- Scroll of Enblizzard II WOTG -DELETE FROM mob_droplist WHERE itemId = 4722; -- Scroll of Enfire II -DELETE FROM mob_droplist WHERE itemId = 4701; -- Scroll Of Cura WOTG -DELETE FROM mob_droplist WHERE itemId = 4704; -- Scroll Of Auspice - -- Sky NM only Drop 1 Stone Until 2010 DELETE FROM mob_droplist WHERE dropId = 2820 AND itemId = 1419 AND itemRate = @COMMON; -- Springstone Dec 7th 2010 Mother Globe DELETE FROM mob_droplist WHERE dropId = 2821 AND itemId = 1421 AND itemRate = @COMMON; -- Summerstone Dec 7th 2010 Faust diff --git a/modules/era/lua/pre_rmt_drops.lua b/modules/cop/lua/pre_rmt_drops.lua similarity index 85% rename from modules/era/lua/pre_rmt_drops.lua rename to modules/cop/lua/pre_rmt_drops.lua index 709acb83baf..36c329c8ea1 100644 --- a/modules/era/lua/pre_rmt_drops.lua +++ b/modules/cop/lua/pre_rmt_drops.lua @@ -1,5 +1,8 @@ ----------------------------------- -- Pre-RMT Countermeasure Drops +-- Returns Astral Ring to Castle Oztroja chest drops +----------------------------------- +-- Source: http://www.playonline.com/updateus/041209we8yu0.html ----------------------------------- require('modules/module_utils') require('scripts/globals/treasure') @@ -25,4 +28,5 @@ m:addOverride('xi.zones.Castle_Oztroja.Zone.onInitialize', function(zone) end) ]]-- + return m diff --git a/modules/era/lua/missable_mom_the_adventurer.lua b/modules/custom/lua/missable_mom_the_adventurer.lua similarity index 100% rename from modules/era/lua/missable_mom_the_adventurer.lua rename to modules/custom/lua/missable_mom_the_adventurer.lua diff --git a/modules/era/sql/2hr_ability_cooldowns.sql b/modules/era/sql/2hr_ability_cooldowns.sql deleted file mode 100644 index 13c21c7fd31..00000000000 --- a/modules/era/sql/2hr_ability_cooldowns.sql +++ /dev/null @@ -1,19 +0,0 @@ --- Setting all 2HR abilities to 2HR cooldown -UPDATE abilities SET recastTime = "7200" WHERE name = "mighty_strikes"; -UPDATE abilities SET recastTime = "7200" WHERE name = "hundred_fists"; -UPDATE abilities SET recastTime = "7200" WHERE name = "benediction"; -UPDATE abilities SET recastTime = "7200" WHERE name = "manafont"; -UPDATE abilities SET recastTime = "7200" WHERE name = "chainspell"; -UPDATE abilities SET recastTime = "7200" WHERE name = "perfect_dodge"; -UPDATE abilities SET recastTime = "7200" WHERE name = "invincible"; -UPDATE abilities SET recastTime = "7200" WHERE name = "blood_weapon"; -UPDATE abilities SET recastTime = "7200" WHERE name = "familiar"; -UPDATE abilities SET recastTime = "7200" WHERE name = "soul_voice"; -UPDATE abilities SET recastTime = "7200" WHERE name = "eagle_eye_shot"; -UPDATE abilities SET recastTime = "7200" WHERE name = "meikyo_shisui"; -UPDATE abilities SET recastTime = "7200" WHERE name = "mijin_gakure"; -UPDATE abilities SET recastTime = "7200" WHERE name = "spirit_surge"; -UPDATE abilities SET recastTime = "7200" WHERE name = "astral_flow"; -UPDATE abilities SET recastTime = "7200" WHERE name = "azure_lore"; -UPDATE abilities SET recastTime = "7200" WHERE name = "wild_card"; -UPDATE abilities SET recastTime = "7200" WHERE name = "overdrive"; diff --git a/modules/era/sql/item_cooldowns.sql b/modules/era/sql/item_cooldowns.sql deleted file mode 100644 index 5bed8c8672f..00000000000 --- a/modules/era/sql/item_cooldowns.sql +++ /dev/null @@ -1,2 +0,0 @@ -UPDATE `item_usable` SET reuseDelay = 259200 WHERE `name` = "moogle_cap"; -- 72 hours (in seconds) -UPDATE `item_usable` SET reuseDelay = 259200 WHERE `name` = "nomad_cap"; -- 72 hours (in seconds) diff --git a/modules/era/sql/original_absorb_casting_time.sql b/modules/era/sql/original_absorb_casting_time.sql deleted file mode 100644 index ddb6b11aff9..00000000000 --- a/modules/era/sql/original_absorb_casting_time.sql +++ /dev/null @@ -1,17 +0,0 @@ --- The update on December 19th 2006 changed the absorb spell casting times from four seconds to two seconds: http://www.playonline.com/pcd/update/ff11us/20061219WH3cX1/detail.html --- It should be noted that the current game client will say the spells have a two second cast time - -UPDATE spell_list -SET - castTime = 4000 -WHERE - name IN ( - "absorb-str", - "absorb-dex", - "absorb-vit", - "absorb-agi", - "absorb-int", - "absorb-mnd", - "absorb-chr", - "absorb-tp" - ); diff --git a/modules/era/lua/The_Kuftal_Tour.lua b/modules/rov/lua/The_Kuftal_Tour.lua similarity index 86% rename from modules/era/lua/The_Kuftal_Tour.lua rename to modules/rov/lua/The_Kuftal_Tour.lua index 7dbd068eb46..d1d8a9d5b8e 100644 --- a/modules/era/lua/The_Kuftal_Tour.lua +++ b/modules/rov/lua/The_Kuftal_Tour.lua @@ -1,6 +1,8 @@ ----------------------------------- -- Module to change the party size requirements in 'The Kuftal Tour' quest to 6. --- Originally this quest required 6 players, but was dropped to 2 with the June 2015 Update https://forum.square-enix.com/ffxi/threads/47481-Jun-25-2015-%28JST%29-Version-Update +-- Originally this quest required 6 players, but was dropped to 2 with the June 2015 Update +----------------------------------- +-- Source: https://forum.square-enix.com/ffxi/threads/47481-Jun-25-2015-%28JST%29-Version-Update ----------------------------------- require('modules/module_utils') ----------------------------------- diff --git a/modules/era/lua/era_effect_composure.lua b/modules/rov/lua/era_effect_composure.lua similarity index 67% rename from modules/era/lua/era_effect_composure.lua rename to modules/rov/lua/era_effect_composure.lua index 882c7c05bab..da28c218675 100644 --- a/modules/era/lua/era_effect_composure.lua +++ b/modules/rov/lua/era_effect_composure.lua @@ -1,7 +1,8 @@ ----------------------------------- -- Era Composure effect --- Pre 8 Feb 2019 --- https://forum-square--enix-com.translate.goog/ffxi/threads/55024?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=sc +-- Removes extra effects added to Composure in RoV +----------------------------------- +-- Source: https://forum.square-enix.com/ffxi/threads/55025-February.-8-2019-%28JST%29-Version-Update ----------------------------------- require('modules/module_utils') ----------------------------------- diff --git a/modules/era/lua/era_moongate_time.lua b/modules/rov/lua/era_moongate_time.lua similarity index 92% rename from modules/era/lua/era_moongate_time.lua rename to modules/rov/lua/era_moongate_time.lua index 27f3bb651d0..36bcd4d0325 100644 --- a/modules/era/lua/era_moongate_time.lua +++ b/modules/rov/lua/era_moongate_time.lua @@ -1,8 +1,8 @@ ----------------------------------- --- Era Override: Ro'Meave Moongate Time +-- Ro'Meave Moongate Time Module -- Opens only on Full Moon between 00:00 and 03:00 --- --- Source: https://ffxiclopedia.fandom.com/wiki/Moongate_Pass_Quest?oldid=1493013 +----------------------------------- +-- Source: https://forum.square-enix.com/ffxi/threads/50760-Jun.-7-2016-%28JST%29-Version-Update -- Moongate Pass Quest did not change to 18:00 - 06:00 until the July 13, 2011 version update. ----------------------------------- require('modules/module_utils') diff --git a/modules/rov/sql/guild_item_points.sql b/modules/rov/sql/guild_item_points.sql new file mode 100644 index 00000000000..3225fd7e0c2 --- /dev/null +++ b/modules/rov/sql/guild_item_points.sql @@ -0,0 +1,11 @@ +-- -------------------------------------------------------- +-- Guild Point Rewards - RoV Adjustment +-- -------------------------------------------------------- +-- Dividing Max Values by 3 due to guild points being tripled in 11/08/2016. +-- Patch Notes: The maximum number of points that may be earned from delivering guild point items has been increased. +-- Patch Notes Link: https://forum.square-enix.com/ffxi/threads/51624 +-- -------------------------------------------------------- + +-- Divide all max_points by 3 for LSB adjustment +UPDATE `guild_item_points` +SET `max_points` = `max_points` / 3; diff --git a/modules/era/lua/northward.lua b/modules/soa/lua/northward.lua similarity index 78% rename from modules/era/lua/northward.lua rename to modules/soa/lua/northward.lua index 210abd19f31..db1aa61927b 100644 --- a/modules/era/lua/northward.lua +++ b/modules/soa/lua/northward.lua @@ -1,6 +1,8 @@ ----------------------------------- -- Module to remove exp and gil from 'Northward' quest reward. --- Gil and exp were added to the quest reward in 2017 so they are removed here. https://ffxiclopedia.fandom.com/wiki/Northward +-- Gil and exp were added to the quest reward in 2013 so they are removed here. +----------------------------------- +-- Source: https://forum.square-enix.com/ffxi/threads/38100 ----------------------------------- require('modules/module_utils') ----------------------------------- diff --git a/modules/soa/lua/physical_hit_cap.lua b/modules/soa/lua/physical_hit_cap.lua index 3047e7c21cc..88407b1b4f1 100644 --- a/modules/soa/lua/physical_hit_cap.lua +++ b/modules/soa/lua/physical_hit_cap.lua @@ -1,7 +1,7 @@ ----------------------------------- -- Hit Rate Cap Override Module -- Reverts all melee hit caps to 95% to undo hit cap raise in December 2014. --- +----------------------------------- -- Source: https://forum.square-enix.com/ffxi/threads/45365?p=534537#post534537 ----------------------------------- require('modules/module_utils') diff --git a/modules/era/sql/pre_2014_skill_ranks.sql b/modules/soa/sql/pre_2014_skill_ranks.sql similarity index 70% rename from modules/era/sql/pre_2014_skill_ranks.sql rename to modules/soa/sql/pre_2014_skill_ranks.sql index 43b28137150..f78db843ba8 100644 --- a/modules/era/sql/pre_2014_skill_ranks.sql +++ b/modules/soa/sql/pre_2014_skill_ranks.sql @@ -1,5 +1,10 @@ --- https://forum.square-enix.com/ffxi/threads/44592?p=527238#post527239 +----------------------------------- +-- Pre-2014 Skill Ranks Module +-- This module reverts skill rank changes made in late 2014 +----------------------------------- +-- Source: https://forum.square-enix.com/ffxi/threads/44592?p=527238#post527239 -- search for "The following jobs have undergone adjustments." +----------------------------------- UPDATE `skill_ranks` SET `thf` = 2 WHERE `name` = 'dagger'; -- Down to A(2) from A+(1) UPDATE `skill_ranks` SET `bst` = 2 WHERE `name` = 'axe'; -- Down to A(2) from A+(1) diff --git a/modules/era/lua/cop_signet.lua b/modules/toau/lua/cop_signet.lua similarity index 93% rename from modules/era/lua/cop_signet.lua rename to modules/toau/lua/cop_signet.lua index 1caaadae640..69b9f353b95 100644 --- a/modules/era/lua/cop_signet.lua +++ b/modules/toau/lua/cop_signet.lua @@ -1,7 +1,8 @@ ----------------------------------- -- Pre TOAU Signet effect -- Pre 8 March 2007 --- https://www.bg-wiki.com/ffxi/The_History_of_Final_Fantasy_XI/2007 +----------------------------------- +-- Source: https://www.bg-wiki.com/ffxi/The_History_of_Final_Fantasy_XI/2007 ----------------------------------- require('modules/module_utils') ----------------------------------- diff --git a/modules/toau/sql/mob_droplist_removal.sql b/modules/toau/sql/mob_droplist_removal.sql new file mode 100644 index 00000000000..80f56ecb43b --- /dev/null +++ b/modules/toau/sql/mob_droplist_removal.sql @@ -0,0 +1,31 @@ +----------------------------------- +-- Mob drop list item removal module +-- This module removes or dds items for the ToAU era +----------------------------------- +-- Source: http://www.playonline.com/pcd/update/ff11us/20070308c2bbd1/detail.html +----------------------------------- + +-- Define rate variables +SET @COMMON = 150; -- Common, 15% + +-- ACP/AMK/ASA Items +DELETE FROM mob_droplist WHERE itemId = 2741; -- Seedspall Luna (Uncommon, 10%) ACP +DELETE FROM mob_droplist WHERE itemId = 2758; -- Quadav Backscale (Rare, 5%) AMK +DELETE FROM mob_droplist WHERE itemId = 2778; -- Inferior Cocoon (Uncommon, 10%) ASA item +DELETE FROM mob_droplist WHERE itemId = 2776; -- Pumice Stone (Uncommon, 10%) ASA item +DELETE FROM mob_droplist WHERE itemId = 2757; -- Orcish Armor Plate (Rare, 5%) AMK item +DELETE FROM mob_droplist WHERE itemId = 2759; -- Block Of Yagudo Caulk (Rare, 5%) AMK item +DELETE FROM mob_droplist WHERE itemId = 2742; -- Seedspall Astrum +DELETE FROM mob_droplist WHERE itemId = 2740; -- Seedspall Lux (Uncommon, 10%) ACP Item + +-- WOTG +DELETE FROM mob_droplist WHERE itemId = 4702; -- Scroll of Sacrifice +DELETE FROM mob_droplist WHERE itemId = 4703; -- Scroll Of Esuna WOTG +DELETE FROM mob_droplist WHERE itemId = 4726; -- Scroll Of Enthunder II WOTG +DELETE FROM mob_droplist WHERE itemId = 4703; -- Scroll Of Esuna WOTG +DELETE FROM mob_droplist WHERE itemId = 4725; -- Scroll Of Enstone II WOTG +DELETE FROM mob_droplist WHERE itemId = 4724; -- Scroll Of Enaero II WOTG +DELETE FROM mob_droplist WHERE itemId = 4723; -- Scroll of Enblizzard II WOTG +DELETE FROM mob_droplist WHERE itemId = 4722; -- Scroll of Enfire II +DELETE FROM mob_droplist WHERE itemId = 4701; -- Scroll Of Cura WOTG +DELETE FROM mob_droplist WHERE itemId = 4704; -- Scroll Of Auspice diff --git a/modules/toau/sql/original_absorb_casting_time.sql b/modules/toau/sql/original_absorb_casting_time.sql new file mode 100644 index 00000000000..313ee62c033 --- /dev/null +++ b/modules/toau/sql/original_absorb_casting_time.sql @@ -0,0 +1,22 @@ +----------------------------------- +-- Original Absorb Casting Time Module +-- The update on December 19th 2006 changed the absorb spell casting times from four seconds to two seconds +-- Note: The current game client will say the spells have a two second cast time +----------------------------------- +-- Source: http://www.playonline.com/pcd/update/ff11us/20061219WH3cX1/detail.html +----------------------------------- + +UPDATE spell_list +SET + castTime = 4000 +WHERE + name IN ( + "absorb-str", + "absorb-dex", + "absorb-vit", + "absorb-agi", + "absorb-int", + "absorb-mnd", + "absorb-chr", + "absorb-tp" + ); diff --git a/modules/era/sql/pre_rmt_drops.sql b/modules/toau/sql/pre_rmt_drops.sql similarity index 99% rename from modules/era/sql/pre_rmt_drops.sql rename to modules/toau/sql/pre_rmt_drops.sql index d1a02966937..7aad0fc0e1f 100644 --- a/modules/era/sql/pre_rmt_drops.sql +++ b/modules/toau/sql/pre_rmt_drops.sql @@ -46,7 +46,7 @@ CALL replace_drop('Ordelles_Caves', 'Stroper_Chyme', 'shikaree_ring', 'archers_r SET @COMMON = 150; -- 15% SET @UNCOMMON = 100; -- 10% SET @RARE = 50; -- 5% -SET @VRARE = 10; -- 1% +SET @VRARE = 10; -- 1% INSERT INTO `mob_droplist` VALUES (2588,0,0,1000,1313,@RARE); -- Sea Serpent Grotto - Voll the Sharkfinned - Siren's Hair (5%) INSERT INTO `mob_droplist` VALUES (2813,0,0,1000,1313,@RARE); -- Sea Serpent Grotto - Zuug the Shoreleaper - Siren's Hair (5%) diff --git a/modules/era/lua/base/combat/original_pdif_caps.lua b/modules/wotg/lua/pdif_caps_revert.lua similarity index 100% rename from modules/era/lua/base/combat/original_pdif_caps.lua rename to modules/wotg/lua/pdif_caps_revert.lua diff --git a/modules/era/lua/toau/weaponskills/archery.lua b/modules/wotg/lua/weaponskills/archery.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/archery.lua rename to modules/wotg/lua/weaponskills/archery.lua diff --git a/modules/era/lua/toau/weaponskills/axe.lua b/modules/wotg/lua/weaponskills/axe.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/axe.lua rename to modules/wotg/lua/weaponskills/axe.lua diff --git a/modules/era/lua/toau/weaponskills/club.lua b/modules/wotg/lua/weaponskills/club.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/club.lua rename to modules/wotg/lua/weaponskills/club.lua diff --git a/modules/era/lua/toau/weaponskills/dagger.lua b/modules/wotg/lua/weaponskills/dagger.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/dagger.lua rename to modules/wotg/lua/weaponskills/dagger.lua diff --git a/modules/era/lua/toau/weaponskills/great_axe.lua b/modules/wotg/lua/weaponskills/great_axe.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/great_axe.lua rename to modules/wotg/lua/weaponskills/great_axe.lua diff --git a/modules/era/lua/toau/weaponskills/great_katana.lua b/modules/wotg/lua/weaponskills/great_katana.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/great_katana.lua rename to modules/wotg/lua/weaponskills/great_katana.lua diff --git a/modules/era/lua/toau/weaponskills/great_sword.lua b/modules/wotg/lua/weaponskills/great_sword.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/great_sword.lua rename to modules/wotg/lua/weaponskills/great_sword.lua diff --git a/modules/era/lua/toau/weaponskills/hand_to_hand.lua b/modules/wotg/lua/weaponskills/hand_to_hand.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/hand_to_hand.lua rename to modules/wotg/lua/weaponskills/hand_to_hand.lua diff --git a/modules/era/lua/toau/weaponskills/katana.lua b/modules/wotg/lua/weaponskills/katana.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/katana.lua rename to modules/wotg/lua/weaponskills/katana.lua diff --git a/modules/era/lua/toau/weaponskills/marksmanship.lua b/modules/wotg/lua/weaponskills/marksmanship.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/marksmanship.lua rename to modules/wotg/lua/weaponskills/marksmanship.lua diff --git a/modules/era/lua/toau/weaponskills/polearm.lua b/modules/wotg/lua/weaponskills/polearm.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/polearm.lua rename to modules/wotg/lua/weaponskills/polearm.lua diff --git a/modules/era/lua/toau/weaponskills/scythe.lua b/modules/wotg/lua/weaponskills/scythe.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/scythe.lua rename to modules/wotg/lua/weaponskills/scythe.lua diff --git a/modules/era/lua/toau/weaponskills/staff.lua b/modules/wotg/lua/weaponskills/staff.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/staff.lua rename to modules/wotg/lua/weaponskills/staff.lua diff --git a/modules/era/lua/toau/weaponskills/sword.lua b/modules/wotg/lua/weaponskills/sword.lua similarity index 100% rename from modules/era/lua/toau/weaponskills/sword.lua rename to modules/wotg/lua/weaponskills/sword.lua diff --git a/modules/era/sql/2007_exp_tables.sql b/modules/wotg/sql/2007_exp_tables.sql similarity index 98% rename from modules/era/sql/2007_exp_tables.sql rename to modules/wotg/sql/2007_exp_tables.sql index 94b62645ccc..8a6b1d87554 100644 --- a/modules/era/sql/2007_exp_tables.sql +++ b/modules/wotg/sql/2007_exp_tables.sql @@ -1,4 +1,9 @@ --- XP values as of 08/28/2007 gathered from https://ffxiclopedia.fandom.com/wiki/Experience_Points?oldid=334881#Base_Experience +----------------------------------- +-- 2007 Experience Tables Module +----------------------------------- +-- Source: https://ffxiclopedia.fandom.com/wiki/Experience_Points?oldid=334881#Base_Experience +----------------------------------- + UPDATE exp_table SET r1 = "600", r2 = "600", r3 = "600", r4 = "600", r5 = "600", r6 = "600", r7 = "600", r8 = "600", r9 = "600", r10 = "530", r11 = "530", r12 = "580", r13 = "800", r14 = "800", r15 = "800", r16 = "800", r17 = "800", r18 = "800", r19 = "800", r20 = "800" WHERE level = 15; UPDATE exp_table SET r1 = "600", r2 = "600", r3 = "600", r4 = "600", r5 = "600", r6 = "600", r7 = "600", r8 = "600", r9 = "600", r10 = "530", r11 = "530", r12 = "580", r13 = "720", r14 = "720", r15 = "720", r16 = "720", r17 = "720", r18 = "720", r19 = "720", r20 = "720" WHERE level = 14; UPDATE exp_table SET r1 = "600", r2 = "600", r3 = "600", r4 = "600", r5 = "600", r6 = "600", r7 = "600", r8 = "600", r9 = "600", r10 = "530", r11 = "530", r12 = "580", r13 = "630", r14 = "630", r15 = "630", r16 = "630", r17 = "630", r18 = "630", r19 = "630", r20 = "630" WHERE level = 13; diff --git a/modules/era/sql/tier_one_weapon_skills.sql b/modules/wotg/sql/tier_one_weapon_skills.sql similarity index 52% rename from modules/era/sql/tier_one_weapon_skills.sql rename to modules/wotg/sql/tier_one_weapon_skills.sql index 537a0ddcd8c..358a53f3ab4 100644 --- a/modules/era/sql/tier_one_weapon_skills.sql +++ b/modules/wotg/sql/tier_one_weapon_skills.sql @@ -1,5 +1,11 @@ --- Until early 2010 the first weapon skill for each weapon was added at skill level 10 for that weapon. Retail changed the skill level to 5 sometime in early 2010. --- It should be noted that the tutorial will still tell players that they will get their weapon skill at skill level 5 for their respective weapon. +------------------------------------ +-- WotG Tier One Weapon Skills Reversion +-- This module reverts all starter weaponskills from 5 to 10 skill +-- Note: Tutorial text still states 5 skill level +------------------------------------ +-- Source : https://www.bg-wiki.com/ffxi/Version_Update_(09/08/2008) +----------------------------------- + UPDATE weapon_skills SET skilllevel = 10