Debuffed - Adding In Blu Spells? |
||
|
Debuffed - adding in blu spells?
Hi, I was looking through the code on the debuffed addon and can't seem to find where the spells are listed for display here. I'm trying to add support for a few of the blu spells, stuff like Barbed crescent, Paralyzing triad, Saurian Slide, Embalming earth, etc. that don't show up, but are usable debuffs. Does anyone know how to add these?
Its likely possible to add manually but its impossible to tell if its landed since its not conveyed like regular debuffs. Same issue for pets/player debuff ws'
It's based off the windower/res/spells.lua file. Lines ~180:210 in debuffed.lua is the relevant section.
Code function inc_action(act)
if act.category ~= 4 then
if act.category == 6 and act.param == 131 then
handle_shot(act.targets[1].id)
end
return
end
-- Damaging spells
if S{2,252}:contains(act.targets[1].actions[1].message) then
local target = act.targets[1].id
local spell = act.param
local effect = res.spells[spell].status
local actor = act.actor_id
if effect then
apply_debuff(target, effect, spell, actor)
end
-- Non-damaging spells
elseif S{236,237,268,271}:contains(act.targets[1].actions[1].message) then
local target = act.targets[1].id
local effect = act.targets[1].actions[1].param
local spell = act.param
local actor = act.actor_id
if res.spells[spell].status and res.spells[spell].status == effect then
apply_debuff(target, effect, spell, actor)
end
end
endSample debuff lines from spells.lua for everything that applies paralyze (note, "status=4" on all lines): Code [58] = {id=58,en="Paralyze",... status=4, ...},
[80] = {id=80,en="Paralyze II",... status=4, ...},
[341] = {id=341,en="Jubaku: Ichi",... status=4, ...},
[342] = {id=342,en="Jubaku: Ni",... status=4, ...},
[343] = {id=343,en="Jubaku: San",... status=4, ...},So to add other blue magic? Talk to windower folks and ask them to add status=??? lines for the right spells, or patch it in yourself each update. If you want to submit a pull request to this file we'll take it someone else recently added a few Blu spells.
https://github.com/Windower/ResourceExtractor/blob/master/fixes.xml You can see see a Blue Spell being added to it here incase you have no idea how to format it. https://github.com/Windower/ResourceExtractor/commit/05d79b5506ffb1f953f77e10c26d8f6cedc9b949#diff-caed089a614f0bea586b8f6a495b05582611e73947ca3bf58b2605daf304b99f Spell Ids can be found here: https://raw.githubusercontent.com/Windower/Resources/master/resources_data/spells.lua Status Ids: https://raw.githubusercontent.com/Windower/Resources/master/resources_data/buffs.lua |
||
|
All FFXI content and images © 2002-2025 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|
||