mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Combat changes and bug fixes
Added the combo and proc systems Added scripts for most weaponskill and spells as well as some abilities and status effects Added support for multihit attacks Added AbilityState for abilities Added hiteffects that change based on an attack's parameters Added positionals Changed how targeting works for battlecommands Fixed bug that occurred when moving or swapping hotbar commands Fixed bug that occurred when losing status effects
This commit is contained in:
parent
837c7a9223
commit
b8d6a943aa
175 changed files with 4361 additions and 1213 deletions
14
data/scripts/commands/magic/aero.lua
Normal file
14
data/scripts/commands/magic/aero.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
27
data/scripts/commands/magic/aerora.lua
Normal file
27
data/scripts/commands/magic/aerora.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
--Increased damage and conversion to single target
|
||||
function onCombo(caster, target, spell)
|
||||
spell.aoeType = 0;
|
||||
spell.potency = spell.potency * 1.5;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
--Dispels an effect on each target.
|
||||
local effects = target.statusEffects.GetStatusEffectsByFlag(16); --lose on dispel
|
||||
if effects != nil then
|
||||
target.statusEffects.RemoveStatusEffect(effects[0]);
|
||||
end;
|
||||
return damage;
|
||||
end;
|
14
data/scripts/commands/magic/ballad_of_magi.lua
Normal file
14
data/scripts/commands/magic/ballad_of_magi.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onBuffMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -10,15 +10,5 @@ function onMagicStart(caster, target, spell)
|
|||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
return damage;
|
||||
return magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -9,13 +9,5 @@ function onMagicStart(caster, target, spell)
|
|||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
return damage;
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -9,16 +9,11 @@ function onMagicStart(caster, target, spell)
|
|||
return 0;
|
||||
end;
|
||||
|
||||
--Increased damage with lesser current hp
|
||||
function onCombo(caster, target, spell)
|
||||
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(1000, 2500);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
return damage;
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/cura.lua
Normal file
14
data/scripts/commands/magic/cura.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onCureMagicFinish(caster, target, spell, action)
|
||||
end;
|
15
data/scripts/commands/magic/curaga.lua
Normal file
15
data/scripts/commands/magic/curaga.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
--http://forum.square-enix.com/ffxiv/threads/41900-White-Mage-A-Guide read
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onCureMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/cure.lua
Normal file
14
data/scripts/commands/magic/cure.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onCureMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/default.lua
Normal file
14
data/scripts/commands/magic/default.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onCureMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -9,16 +9,11 @@ function onMagicStart(caster, target, spell)
|
|||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
--Increased Damage and reduced recast time in place of stun
|
||||
function onCombo(caster, target, spell)
|
||||
spell.castTimeMs = spell.castTimeMs / 2;
|
||||
end;
|
||||
|
||||
return damage;
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -9,16 +9,11 @@ function onMagicStart(caster, target, spell)
|
|||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(1000, 2500);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
--Increased critical damage
|
||||
function onCombo(caster, target, spell)
|
||||
spell.castTimeMs = spell.castTimeMs / 2;
|
||||
end;
|
||||
|
||||
return damage;
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -10,18 +10,5 @@ function onMagicStart(caster, target, spell)
|
|||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
if target.hateContainer then
|
||||
target.hateContainer.UpdateHate(caster, damage);
|
||||
end;
|
||||
return damage;
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -10,15 +10,7 @@ function onMagicStart(caster, target, spell)
|
|||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(1000, 2500);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
return damage;
|
||||
--increase potency based on proximity to target
|
||||
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -10,15 +10,5 @@ function onMagicStart(caster, target, spell)
|
|||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
return damage;
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -10,15 +10,5 @@ function onMagicStart(caster, target, spell)
|
|||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(1000, 2500);
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
return damage;
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
21
data/scripts/commands/magic/holy_succor.lua
Normal file
21
data/scripts/commands/magic/holy_succor.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
spell.statusId = 228011;
|
||||
spell.statusDuration = 25;
|
||||
spell.statusChance = 1.0;
|
||||
magic.onCureMagicFinish(caster, target, spell, action)
|
||||
|
||||
if caster != target then
|
||||
action.AddHealAction(caster.actorId, (action.amount / 2));
|
||||
end
|
||||
end;
|
14
data/scripts/commands/magic/minuet_of_rigor.lua
Normal file
14
data/scripts/commands/magic/minuet_of_rigor.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onBuffMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/paeon_of_war.lua
Normal file
14
data/scripts/commands/magic/paeon_of_war.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onBuffMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/protect.lua
Normal file
14
data/scripts/commands/magic/protect.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onStatusMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/repose.lua
Normal file
14
data/scripts/commands/magic/repose.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/sanguine_rite.lua
Normal file
14
data/scripts/commands/magic/sanguine_rite.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onStatusMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/sleep.lua
Normal file
14
data/scripts/commands/magic/sleep.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onStatusMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/stone.lua
Normal file
14
data/scripts/commands/magic/stone.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
20
data/scripts/commands/magic/stonera.lua
Normal file
20
data/scripts/commands/magic/stonera.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
--Increased damage and conversion to single target
|
||||
function onCombo(caster, target, spell)
|
||||
spell.aoeType = 0;
|
||||
spell.potency = spell.potency * 1.5;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
14
data/scripts/commands/magic/stoneskin.lua
Normal file
14
data/scripts/commands/magic/stoneskin.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
require("global");
|
||||
require("magic");
|
||||
|
||||
function onMagicPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onStatusMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -8,14 +8,11 @@ function onMagicStart(caster, target, spell)
|
|||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
--Increased critical damage
|
||||
function onCombo(caster, target, spell)
|
||||
spell.critDamageModifier = 1.5;
|
||||
end;
|
||||
|
||||
return damage;
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -8,14 +8,13 @@ function onMagicStart(caster, target, spell)
|
|||
return 0;
|
||||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
--Increased Damage and reduced recast time in place of stun
|
||||
function onCombo(caster, target, spell)
|
||||
spell.statusChance = 0;
|
||||
spell.basePotency = spell.basePotency * 1.5;
|
||||
spell.recastTimeMs = spell.recastTimeMs / 2;
|
||||
end;
|
||||
|
||||
return damage;
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
|
@ -9,13 +9,5 @@ function onMagicStart(caster, target, spell)
|
|||
end;
|
||||
|
||||
function onMagicFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
|
||||
action.worldMasterTextId = 0x765D;
|
||||
|
||||
-- todo: populate a global script with statuses and modifiers
|
||||
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||||
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||||
|
||||
return damage;
|
||||
magic.onMagicFinish(caster, target, spell, action)
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue