Skip to content

Commit

Permalink
[Lua] Implement remaining Geomantic Reservoirs (#2305)
Browse files Browse the repository at this point in the history
* Add remaining Geomantic Reservoirs

* Fix ordering

* Remove trailing whitespaces

* add zoneid to !pos in comments of each npc

* More out of order ID's...

* Fix incorrect description
  • Loading branch information
CatsEyeXI authored Jul 21, 2022
1 parent ab990eb commit a12722a
Show file tree
Hide file tree
Showing 57 changed files with 806 additions and 6 deletions.
1 change: 1 addition & 0 deletions scripts/globals/geomantic_reservoir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ local geoSpellTable =
[xi.magic.spell.GEO_MND ] = { xi.items.GEO_MND },
[xi.magic.spell.GEO_FURY ] = { xi.items.GEO_FURY },
[xi.magic.spell.GEO_INT ] = { xi.items.GEO_INT },
[xi.magic.spell.GEO_AGI ] = { xi.items.GEO_AGI },
[xi.magic.spell.GEO_POISON ] = { xi.items.GEO_POISON },
[xi.magic.spell.GEO_FEND ] = { xi.items.GEO_FEND },
[xi.magic.spell.GEO_VIT ] = { xi.items.GEO_VIT },
Expand Down
2 changes: 2 additions & 0 deletions scripts/zones/Batallia_Downs/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ zones[xi.zone.BATALLIA_DOWNS] =
VOIDWALKER_UPGRADE_KI_2 = 11342, -- The <keyitem> takes on a deeper, richer hue and becomes <keyitem>!
VOIDWALKER_BREAK_KI = 11343, -- The <keyitem> shatters into tiny fragments.
VOIDWALKER_OBTAIN_KI = 11344, -- Obtained key item: <keyitem>!
LEARNS_SPELL = 12842, -- <name> learns <spell>!
UNCANNY_SENSATION = 12844, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 12851, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
RAPTOR_OVERCOME_MUNCHIES = 13004, -- The raptor has overcome the munchies! (<number>/<number>)
RAPTOR_SECOND_WIND = 13005, -- The raptor has gained a second wind!
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Batallia_Downs/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Batallia Downs
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-Barrier
-- !pos -677.645 -32.000 157.981 105
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_BARRIER)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_BARRIER)
end

return entity
2 changes: 2 additions & 0 deletions scripts/zones/Beadeaux/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ zones[xi.zone.BEADEAUX] =
YOU_CAN_NOW_BECOME_A_DARK_KNIGHT = 7357, -- You can now become a dark knight!
FOUL_SMELLING_SOIL_IS_SPILLING_OUT = 7358, -- Foul-smelling soil is spilling out.
CHEST_UNLOCKED = 7368, -- You unlock the chest!
LEARNS_SPELL = 7786, -- <name> learns <spell>!
UNCANNY_SENSATION = 7788, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 7795, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},
mob =
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Beadeaux/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Beadeaux
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-Slow
-- !pos 162.194 -3.250 38.661 147
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_SLOW)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_SLOW)
end

return entity
3 changes: 2 additions & 1 deletion scripts/zones/Beaucedine_Glacier/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ zones[xi.zone.BEAUCEDINE_GLACIER] =
VOIDWALKER_UPGRADE_KI_2 = 11888, -- The <keyitem> takes on a deeper, richer hue and becomes <keyitem>!
VOIDWALKER_BREAK_KI = 11889, -- The <keyitem> shatters into tiny fragments.
VOIDWALKER_OBTAIN_KI = 11890, -- Obtained key item: <keyitem>!
LEARNS_SPELL = 12780, -- <name> learns <spell>!
UNCANNY_SENSATION = 12782, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 12789, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},

mob =
{
GARGANTUA_PH =
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Beaucedine_Glacier/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-INT
-- !pos 8.527 -59.729 -104.909 111
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_INT)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_INT)
end

return entity
26 changes: 26 additions & 0 deletions scripts/zones/Beaucedine_Glacier/npcs/Geomantic_Reservoir_2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-Acumen
-- !pos 275.620 -0.137 247.116 111
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_ACUMEN)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_ACUMEN)
end

return entity
2 changes: 2 additions & 0 deletions scripts/zones/Behemoths_Dominion/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ zones[xi.zone.BEHEMOTHS_DOMINION] =
ALREADY_POSSESS_TEMP = 7354, -- You already possess that temporary item.
NO_COMBINATION = 7359, -- You were unable to enter a combination.
REGIME_REGISTERED = 9537, -- New training regime registered!
LEARNS_SPELL = 11526, -- <name> learns <spell>!
UNCANNY_SENSATION = 11528, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 11535, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},
mob =
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Behemoths_Dominion/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Behemoth's Dominion
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-DEX
-- !pos -232.162 -20.199 4.927 127
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_DEX)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_DEX)
end

return entity
2 changes: 2 additions & 0 deletions scripts/zones/Bostaunieux_Oubliette/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ zones[xi.zone.BOSTAUNIEUX_OUBLIETTE] =
PLAYER_OBTAINS_TEMP_ITEM = 10594, -- <name> obtains the temporary item: <item>!
ALREADY_POSSESS_TEMP = 10595, -- You already possess that temporary item.
NO_COMBINATION = 10600, -- You were unable to enter a combination.
LEARNS_SPELL = 10624, -- <name> learns <spell>!
UNCANNY_SENSATION = 10626, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 10633, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},
mob =
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Bostaunieux_Oubliette/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Bostaunieux Oubliette
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-Languor
-- !pos -13.337 0.009 -333.022 167
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_LANGUOR)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_LANGUOR)
end

return entity
2 changes: 2 additions & 0 deletions scripts/zones/Castle_Oztroja/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ zones[xi.zone.CASTLE_OZTROJA] =
YAGUDO_AVATAR_DEATH = 7454, -- Our lord, Tzee Xicu the Manifest! Even should our bodies be crushed and broken, may our souls endure into eternity...
YAGUDO_KING_ENGAGE = 7455, -- You are not here as sacrifices, are you? Could you possibly be committing this affront in the face of a deity? Very well, I will personally mete out your divine punishment, kyah!
YAGUDO_KING_DEATH = 7456, -- You have...bested me... However, I...am...a god... I will never die...never rot...never fade...never...
LEARNS_SPELL = 8295, -- <name> learns <spell>!
UNCANNY_SENSATION = 8297, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 8304, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},
mob =
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Castle_Oztroja/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Castle Oztroja
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-AGI
-- !pos -210.032 -16.000 95.255 151
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_AGI)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_AGI)
end

return entity
1 change: 1 addition & 0 deletions scripts/zones/Ceizak_Battlegrounds/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ zones[xi.zone.CEIZAK_BATTLEGROUNDS] =
ARTIFACT_TERMINAL_VOLUME = 7608, -- Your artifact has been charged to its terminal volume of kinetic units.
SURPLUS_LOST_TO_AETHER = 7609, -- A surplus of <number> kinetic unit[/s] has been lost to the aether.
HOMEPOINT_SET = 7791, -- Home point set!
LEARNS_SPELL = 8031, -- <name> learns <spell>!
UNCANNY_SENSATION = 8033, -- You are assaulted by an uncanny sensation.
ENERGIES_COURSE = 8034, -- The arcane energies begin to course within your veins.
MYSTICAL_WARMTH = 8035, -- You feel a mystical warmth welling up inside you!
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Ceizak_Battlegrounds/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Ceizak Battlegrounds
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-Frailty
-- !pos -450.391 0.001 -0.491 261
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_FRAILTY)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_FRAILTY)
end

return entity
2 changes: 2 additions & 0 deletions scripts/zones/Crawlers_Nest/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ zones[xi.zone.CRAWLERS_NEST] =
ALREADY_POSSESS_TEMP = 7353, -- You already possess that temporary item.
NO_COMBINATION = 7358, -- You were unable to enter a combination.
REGIME_REGISTERED = 9436, -- New training regime registered!
LEARNS_SPELL = 11354, -- <name> learns <spell>!
UNCANNY_SENSATION = 11356, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 11388, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},
mob =
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Crawlers_Nest/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Crawler's Nest
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-STR
-- !pos -170.623 -1.376 347.089 197
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_STR)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_STR)
end

return entity
2 changes: 2 additions & 0 deletions scripts/zones/Davoi/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ zones[xi.zone.DAVOI] =
WHERE_THE_TONBERRY_TOLD_YOU = 7928, -- This is where the Tonberry from Carpenters' Landing told you to bring the <item>...
NOTHING_TO_DO = 7929, -- You have nothing left to do here.
UNDER_ATTACK = 7931, -- You are under attack!
LEARNS_SPELL = 7971, -- <name> learns <spell>!
UNCANNY_SENSATION = 7973, -- You are assaulted by an uncanny sensation.
COMMON_SENSE_SURVIVAL = 7980, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},
mob =
Expand Down
26 changes: 26 additions & 0 deletions scripts/zones/Davoi/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----------------------------------
-- Area: Davoi
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-Fend
-- !pos 173.098 3.643 -386.962 149
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
-----------------------------------
local entity = {}

entity.onTrade = function(player, npc, trade)
end

entity.onTrigger = function(player, npc)
xi.geomanticReservoir.onTrigger(player, npc, xi.magic.spell.GEO_FEND)
end

entity.onEventUpdate = function(player, csid, option)
end

entity.onEventFinish = function(player, csid, option)
xi.geomanticReservoir.onEventFinish(player, csid, xi.magic.spell.GEO_FEND)
end

return entity
2 changes: 1 addition & 1 deletion scripts/zones/East_Ronfaure/npcs/Geomantic_Reservoir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Area: East Ronfaure
-- NPC: Geomantic Reservoir
-- Unlocks: Geo-Poison
-- !pos 379.572 -39.057 57.502
-- !pos 379.572 -39.057 57.502 101
-----------------------------------
require("scripts/globals/geomantic_reservoir")
require("scripts/globals/spell_data")
Expand Down
2 changes: 2 additions & 0 deletions scripts/zones/FeiYin/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ zones[xi.zone.FEIYIN] =
ALREADY_POSSESS_TEMP = 7518, -- You already possess that temporary item.
NO_COMBINATION = 7523, -- You were unable to enter a combination.
REGIME_REGISTERED = 9601, -- New training regime registered!
LEARNS_SPELL = 10649, -- <name> learns <spell>!
UNCANNY_SENSATION = 10651, -- You are assaulted by an uncanny sensation.
HOMEPOINT_SET = 10700, -- Home point set!
},
mob =
Expand Down
Loading

0 comments on commit a12722a

Please sign in to comment.