Missing Blue Magic Spells

Post Reply
bdk
Posts: 20
Joined: Mon Jan 13, 2014 11:23 pm

Missing Blue Magic Spells

Post by bdk » Thu May 05, 2016 1:21 am

Hi, just messing around with DSP. Got the server up and running. Had a crack at fixing BLU spells. Copied Frenetic_Rip.lua and updated with Quadratic Continuum params. Quad. Continuum is in the the Bluemagic spells list and mods list but when I try to cast it, I get the error that "player cannot cast Quad. Continuum".

Is there somewhere else that I need to update to get it to work? I did restart the server afterwards too just in case but still no go.

Thanks in advance for any assistance/tips that anyone can provide!

Cheers!

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Missing Blue Magic Spells

Post by kjLotus » Thu May 05, 2016 1:41 am

did you equip the spell

bdk
Posts: 20
Joined: Mon Jan 13, 2014 11:23 pm

Re: Missing Blue Magic Spells

Post by bdk » Thu May 05, 2016 2:31 am

kjLotus wrote:did you equip the spell
Yes, of course. I think it's just the spells that don't have a lua script in scripts\globals\spells\bluemagic that don't work. I can equip them, just cannot cast.

Here's my script for Quadratic_Continuum. Wonder if I have to rename it to "Quad._Continuum.lua"... I don't see any other spells with an abbreviated file name though.


========================================================================================

-----------------------------------------
-- Spell: Quadratic Continuum
-- Delivers a fourfold attack. Damage varies with TP.
-- Spell cost: 91 MP
-- Monster Type: Empty
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 4
-- Stat Bonus: DEX+3 CHR-2
-- Level: 85
-- Casting Time: 1 seconds
-- Recast Time: 28 seconds
-- Skillchain Element(s): Distortion (can open/close Darkness with Gravitation WSs and spells)and Scission
-- Combos: Dual Wield
-----------------------------------------

require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");

-----------------------------------------
-- OnMagicCastingCheck
-----------------------------------------

function onMagicCastingCheck(caster,target,spell)
return 0;
end;

-----------------------------------------
-- OnSpellCast
-----------------------------------------

function onSpellCast(caster,target,spell)

local params = {};
-- This data should match information on http://wiki.ffxiclopedia.org/wiki/Calcu ... gic_Damage
params.tpmod = TPMOD_DAMAGE;
params.dmgtype = DMGTYPE_PIERCE;
params.scattr = SC_DISTORTION;
params.numhits = 4;
params.multiplier = 1.25;
params.tp150 = 1.5;
params.tp300 = 1.75;
params.azuretp = 2.0;
params.duppercap = 100; -- D upper >=69
params.str_wsc = 0.32;
params.dex_wsc = 0.0;
params.vit_wsc = 0.32;
params.agi_wsc = 0.0;
params.int_wsc = 0.0;
params.mnd_wsc = 0.0;
params.chr_wsc = 0.0;
damage = BluePhysicalSpell(caster, target, spell, params);
damage = BlueFinalAdjustments(caster, target, spell, damage, params);

return damage;
end;

=================================================================================================

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Missing Blue Magic Spells

Post by kjLotus » Thu May 05, 2016 9:28 am

ah - the name of the script must match exactly the name column in spell_list, which in this case is "quad_continuum"

edit: and it is case sensitive for linux

bdk
Posts: 20
Joined: Mon Jan 13, 2014 11:23 pm

Re: Missing Blue Magic Spells

Post by bdk » Thu May 05, 2016 11:06 pm

kjLotus wrote:ah - the name of the script must match exactly the name column in spell_list, which in this case is "quad_continuum"

edit: and it is case sensitive for linux
Thanks KJ! That did the trick :D


So, ignore dots an replace spaces with an underscore seems to be the rule :)


Whilst I got your attention, don't suppose you know where I can get the correct "duppercap" values for BLU spells from?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Missing Blue Magic Spells

Post by kjLotus » Fri May 06, 2016 12:38 am

no idea, one of the wikis or bg forums probably

Post Reply