Page 1 of 1

Missing Blue Magic Spells

Posted: Thu May 05, 2016 1:21 am
by bdk
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!

Re: Missing Blue Magic Spells

Posted: Thu May 05, 2016 1:41 am
by kjLotus
did you equip the spell

Re: Missing Blue Magic Spells

Posted: Thu May 05, 2016 2:31 am
by bdk
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;

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

Re: Missing Blue Magic Spells

Posted: Thu May 05, 2016 9:28 am
by kjLotus
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

Re: Missing Blue Magic Spells

Posted: Thu May 05, 2016 11:06 pm
by bdk
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?

Re: Missing Blue Magic Spells

Posted: Fri May 06, 2016 12:38 am
by kjLotus
no idea, one of the wikis or bg forums probably