-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ceizak Battlegrounds NM, Mobskills, HP/MP/ItemLevel
- Loading branch information
Showing
29 changed files
with
928 additions
and
48 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,27 @@ | ||
----------------------------------- | ||
-- Name: Orthopterror | ||
-- Description: Delivers a threefold attack, Conal AoE, inflicts Terror and Knockback. | ||
-- Type: Physical | ||
-- Utsusemi/Blink absorb: 3 shadows | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local numhits = 3 | ||
local accmod = 1.1 | ||
local dmgmod = 2.1 | ||
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, dmgmod, xi.mobskills.magicalTpBonus.NO_EFFECT) | ||
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.SLASHING, info.hitslanded) | ||
target:takeDamage(dmg, mob, xi.attackType.PHYSICAL, xi.damageType.SLASHING) | ||
|
||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.TERROR, 100, 0, 10) | ||
|
||
return dmg | ||
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,33 @@ | ||
----------------------------------- | ||
-- Proboscis | ||
-- Description: Drains MP and steal 1 Buff | ||
-- Type: Magical (Element) | ||
-- Range: Conal | ||
-- Utsusemi/Blink absorb: 1 shadow | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
-- Dark magical damage calculation | ||
local dmgmod = 1.5 | ||
local info = xi.mobskills.mobMagicalMove(mob, target, skill, mob:getWeaponDmg() * dmgmod, xi.element.DARK, dmgmod, xi.mobskills.magicalTpBonus.MAB_BONUS, 1) | ||
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.MAGICAL, xi.damageType.DARK, xi.mobskills.shadowBehavior.NUMSHADOWS_1) | ||
|
||
-- Convert damage dealt into MP for the mob | ||
mob:addMP(dmg) | ||
|
||
-- Steal one buff from the player | ||
xi.mobskills.mobDrainStatusEffectMove(mob, target) | ||
|
||
-- Set message to indicate MP drain | ||
skill:setMsg(xi.msg.basic.MP_DRAIN) | ||
|
||
return dmg | ||
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,33 @@ | ||
----------------------------------- | ||
-- Benumbing Blaze | ||
-- Description: Very High Fire Damage and Paralysis | ||
-- Yalms: 20' | ||
-- Area: AoE | ||
-- Type: Magical | ||
-- Element: Fire | ||
-- Utsusemi/Blink absorb: Wipes shadows | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
-- Fire damage calculation | ||
local dmgmod = 2.5 | ||
local duration = math.random(15, 120) | ||
local info = xi.mobskills.mobMagicalMove(mob, target, skill, mob:getWeaponDmg() * 4, xi.element.FIRE, dmgmod, xi.mobskills.magicalTpBonus.NO_EFFECT) | ||
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.MAGICAL, xi.damageType.FIRE, xi.mobskills.shadowBehavior.WIPE_SHADOWS) | ||
|
||
-- Apply Paralysis (AoE effect can be considered) | ||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.PARALYSIS, 10, 3, duration) | ||
-- Apply damage and set message | ||
target:takeDamage(dmg, mob, xi.attackType.MAGICAL, xi.damageType.FIRE) | ||
skill:setMsg(xi.msg.basic.MAGIC_DAMAGE) | ||
|
||
return dmg | ||
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,26 @@ | ||
----------------------------------- | ||
-- Blackout | ||
-- Description: AoE Silence, Paralysis, Blind. | ||
-- Attack Type: Magical | ||
-- Shadows: Ignores | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local power = math.random(10, 20) | ||
local duration = math.random(60, 180) | ||
|
||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.PARALYSIS, power, 0, duration) | ||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.SILENCE, power, 0, duration) | ||
|
||
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.BLINDNESS, power, 0, duration)) | ||
|
||
return xi.effect.BLINDNESS | ||
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,26 @@ | ||
----------------------------------- | ||
-- Booming Bombination | ||
-- Description: Deals damage. Additional effect: "Plague", "Def. Down", "M. Def. Down". | ||
-- Type: Magical | ||
-- Utsusemi/Blink absorb: Wipes shadows | ||
-- Range: Aoe | ||
----------------------------------- | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local power = 10 | ||
local duration = math.random(60, 180) | ||
|
||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.PLAGUE, power, 0, duration) | ||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.DEFENSE_DOWN, power, 0, duration) | ||
|
||
skill:setMsg(xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.MAGIC_DEF_DOWN, power, 0, duration)) | ||
|
||
return xi.effect.MAGIC_DEF_DOWN | ||
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,28 @@ | ||
----------------------------------- | ||
-- Erosion Dust | ||
-- Description: Damage and Dia | ||
-- Yalms: 20' | ||
-- Area: AoE | ||
-- Type: Magical | ||
-- Element: Light | ||
-- Utsusemi/Blink absorb: Wipes shadows | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local dmgmod = 1.5 | ||
local duration = math.random(15, 120) | ||
local info = xi.mobskills.mobMagicalMove(mob, target, skill, mob:getWeaponDmg() * 3.5, xi.element.LIGHT, dmgmod, xi.mobskills.magicalTpBonus.NO_EFFECT) | ||
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.MAGICAL, xi.damageType.LIGHT, xi.mobskills.shadowBehavior.WIPE_SHADOWS) | ||
|
||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.DIA, 10, 3, duration) | ||
target:takeDamage(dmg, mob, xi.attackType.MAGICAL, xi.damageType.LIGHT) | ||
return dmg | ||
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,20 @@ | ||
----------------------------------- | ||
-- Hell Scissors | ||
-- Description: Damage equal to 95% of target's HP. | ||
-- Type: Physical (Slashing) | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local dmg = target:getHP() * 0.95 | ||
target:takeDamage(dmg, mob, xi.attackType.PHYSICAL, xi.damageType.SLASHING) | ||
mob:resetEnmity(target) | ||
return dmg | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
----------------------------------- | ||
-- Nat. Meditation (Mob) | ||
-- Gains an undispellable attack bonus that decays over time. | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local duration = 30 | ||
local attack = mob:getStat(xi.mod.ATT) | ||
local attBoost = attack * 0.3 | ||
|
||
if not mob:hasStatusEffect(xi.effect.ATTACK_BOOST) then | ||
skill:setMsg(xi.mobskills.mobBuffMove(mob, xi.effect.ATTACK_BOOST, attBoost, 0, duration)) -- Apply attack boost | ||
xi.mobskills.mobBuffMove(mob, xi.effect.ATTACK_BOOST, attBoost, 0, duration) | ||
end | ||
|
||
return xi.effect.ATTACK_BOOST | ||
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,28 @@ | ||
----------------------------------- | ||
-- Name: Sanguinary Slash | ||
-- Description: Knockback and Max HP Down. | ||
-- Type: Physical (Slashing) | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local numhits = 1 | ||
local accmod = 2 | ||
local dmgmod = 1.5 | ||
local duration = math.random(15, 120) | ||
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, dmgmod, xi.mobskills.physicalTpBonus.DMG_VARIES, 1, 2, 3) | ||
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.SLASHING, info.hitslanded, xi.mobskills.shadowBehavior.WIPE_SHADOWS) | ||
|
||
target:takeDamage(dmg, mob, xi.attackType.PHYSICAL, xi.damageType.SLASHING) | ||
|
||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.MAX_HP_DOWN, 10, 0, duration) | ||
|
||
return dmg | ||
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,23 @@ | ||
----------------------------------- | ||
-- Name: Sensilla Blades | ||
-- Description: Conal with knockback. | ||
-- Type: Physical (Slashing) | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local numhits = 1 | ||
local accmod = 2 | ||
local dmgmod = 1.1 | ||
local info = xi.mobskills.mobPhysicalMove(mob, target, skill, numhits, accmod, dmgmod, xi.mobskills.physicalTpBonus.DMG_VARIES, 1, 2, 3) | ||
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.PHYSICAL, xi.damageType.SLASHING, info.hitslanded) | ||
target:takeDamage(dmg, mob, xi.attackType.PHYSICAL, xi.damageType.SLASHING) | ||
return dmg | ||
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,27 @@ | ||
----------------------------------- | ||
-- Smouldering Swarm | ||
-- | ||
-- Description: Deals Fire damage to enemies within an area of effect. Additional effect: Knockback | ||
-- Type: Magical (Fire) | ||
-- Utsusemi/Blink absorb: 2-3 shadows | ||
-- Range: 10' radial | ||
----------------------------------- | ||
---@type TMobSkill | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local dmgmod = 1.5 -- Increased damage modifier for stronger effect | ||
local duration = math.random(15, 90) | ||
local info = xi.mobskills.mobMagicalMove(mob, target, skill, mob:getWeaponDmg() * 3, xi.element.FIRE, dmgmod, xi.mobskills.magicalTpBonus.MAB_BONUS, 1) | ||
local dmg = xi.mobskills.mobFinalAdjustments(info.dmg, mob, skill, target, xi.attackType.MAGICAL, xi.damageType.FIRE, xi.mobskills.shadowBehavior.WIPE_SHADOWS) | ||
|
||
target:takeDamage(dmg, mob, xi.attackType.MAGICAL, xi.damageType.FIRE) | ||
target:addStatusEffect(xi.effect.BURN, 20, 3, duration) -- Applying burn effect | ||
return dmg | ||
end | ||
|
||
return mobskillObject |
Oops, something went wrong.