Debuffed - Adding In Blu Spells?

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXI » Jobs » Blue Mage » Debuffed - adding in blu spells?
Debuffed - adding in blu spells?
 Bahamut.Kelg
Offline
サーバ: Bahamut
Game: FFXI
user: Kelg
Posts: 58
By Bahamut.Kelg 2021-08-16 18:06:12  
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?
Offline
Posts: 2613
By Nariont 2021-08-16 19:18:55  
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'
 Bismarck.Radec
Offline
サーバ: Bismarck
Game: FFXI
user: Radec
Posts: 146
By Bismarck.Radec 2021-08-16 21:59:33  
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
end


Sample 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.
 Asura.Chiaia
VIP
Offline
サーバ: Asura
Game: FFXI
user: Demmis
Posts: 1656
By Asura.Chiaia 2021-08-16 22:18:07  
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
[+]
Log in to post.