Auto Divine Caress Gearswap

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXI » Jobs » White Mage » Auto divine caress gearswap
Auto divine caress gearswap
Offline
Posts: 11
By bboyhard 2014-06-30 16:16:17  
Anyone have a plugin function for auto divine caress gearswap.

Currently using motes whm gs but this is one thing I loved having when I was using spellcast

Tia
 Bahamut.Shirai
Offline
サーバ: Bahamut
Game: FFXI
user: Shirai
By Bahamut.Shirai 2014-07-10 05:29:30  
This is among the rules of my whm Gearswap, which is written by Bokura.

Lines 13 to 16 cover automatic Divine Caress.
I hope it helps.
Code
function pretarget(spell,action)
        if midaction() then
                add_to_chat(123, '****** ['..spell.name..' CANCELED] ******')
                canceled = true
                return
        elseif spell.action_type == 'Magic' and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
                cancel_spell()
                send_command('input /item "Echo Drops" <me>')
        elseif spell.english:ifind("Cure") and player.mp<actualCost(spell.mp_cost) then
                degrade_spell(spell,Cure_Spells)
        elseif spell.english:ifind("Curaga") and player.mp<actualCost(spell.mp_cost) then
                degrade_spell(spell,Curaga_Spells)
        elseif Na_Spells:contains(spell.english) then -- Auto Divine Caress --
                if windower.ffxi.get_ability_recasts()[32] < 1 and (spell.target.type == 'PLAYER' or spell.target.name == player.name) and not buffactive.amnesia and not buffactive.charm and spell.english ~= "Erase" then
                        cancel_spell()
                        send_command('DivineCaress;wait 1.7;input /ma "'..spell.english..'" '..spell.target.name)
                end


http://pastebin.com/u/Bokura
Log in to post.