-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lua&sql] Trust Monberaux logic and spell changes
Changes made to Trust: Monberaux and Monberaux in Upper Jeuno for the follow; Added Elixir/Hi-Elixir and Gil trading to his NPC in Upper Jeuno to allow the function of his AoE status removal and his Final Elixir mechanics. Changed his Trusts mJob and sJob to PLD/RUN to reflect his status as shown on BGWiki. Edited his spells so that if they don't remove the effect they show a "No effect on player" message, mainly only matters for AoE potions. Changed SQL for mob_skills to correct some animations and make one list of the status removal AoE and the other not. Renamed most of his skills in mobskills to have mix_ in front to hopefully avoid confusion with other potential applications. All spells range changed from 7 to 14 to accommodate his "NO_MOVE" trust behaviour, he would previous stand out of random and continuously loop some spells because he couldn't reach. No his spells are more in like with White Magic range.
- Loading branch information
Showing
17 changed files
with
346 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
----------------------------------- | ||
-- Hyper Potion - Restores 250 HP. | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
skill:setMsg(xi.msg.basic.SELF_HEAL) | ||
return xi.mobskills.mobHealMove(target, 100) | ||
end | ||
|
||
return mobskillObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
----------------------------------- | ||
-- Echo Drops - Removes Silence. | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
-- TODO: verify no effect messaging | ||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
if target:hasStatusEffect(xi.effect.SILENCE) then | ||
skill:setMsg(xi.msg.basic.SKILL_ERASE) | ||
target:delStatusEffect(xi.effect.SILENCE) | ||
return xi.effect.SILENCE | ||
else | ||
skill:setMsg(xi.msg.basic.NO_EFFECT) | ||
end | ||
end | ||
|
||
return mobskillObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
----------------------------------- | ||
-- Holy Water - Removes Curse, Zombie, and Doom. | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
local statii = | ||
{ | ||
xi.effect.CURSE_I, | ||
xi.effect.CURSE_II, -- AKA "Zombie" | ||
xi.effect.BANE, | ||
} | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local power = 33 + target:getMod(xi.mod.ENHANCES_HOLYWATER) | ||
local lastEffect = 0 | ||
|
||
for _, effect in pairs(statii) do | ||
lastEffect = effect | ||
if target:hasStatusEffect(xi.effect.DOOM) and power > math.random(1, 100) then | ||
target:delStatusEffect(xi.effect.DOOM) | ||
target:messageBasic(xi.msg.basic.NARROWLY_ESCAPE) | ||
skill:setMsg(xi.msg.basic.SKILL_ERASE) | ||
return xi.effect.DOOM | ||
else | ||
skill:setMsg(xi.msg.basic.NO_EFFECT) | ||
end | ||
|
||
if target:hasStatusEffect(effect) then | ||
target:delStatusEffect(effect) | ||
skill:setMsg(xi.msg.basic.SKILL_ERASE) | ||
return lastEffect | ||
else | ||
skill:setMsg(xi.msg.basic.NO_EFFECT) | ||
end | ||
end | ||
end | ||
|
||
return mobskillObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
----------------------------------- | ||
-- Vaccine - Removes Plague. | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
if target:hasStatusEffect(xi.effect.PLAGUE) then | ||
skill:setMsg(xi.msg.basic.SKILL_ERASE) | ||
target:delStatusEffect(xi.effect.PLAGUE) | ||
return xi.effect.PLAGUE | ||
else | ||
skill:setMsg(xi.msg.basic.NO_EFFECT) | ||
end | ||
end | ||
|
||
return mobskillObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
----------------------------------- | ||
-- Potion - Restores 50 HP. | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
skill:setMsg(xi.msg.basic.SELF_HEAL) | ||
return xi.mobskills.mobHealMove(target, 50) | ||
end | ||
|
||
return mobskillObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
----------------------------------- | ||
-- X-Potion - Restores 150 HP. | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
skill:setMsg(xi.msg.basic.SELF_HEAL) | ||
return xi.mobskills.mobHealMove(target, 150) | ||
end | ||
|
||
return mobskillObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.