Gearswap Gear Lock

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Windower » Support » Gearswap gear lock
Gearswap gear lock
 Fairy.Yunachan
Offline
サーバ: Fairy
Game: FFXI
user: Yunachan
Posts: 27
By Fairy.Yunachan 2017-10-14 10:57:14  
Hi there again,

here I am with another question:

I would like to implement a function in which, as first, come activated JB are checked. If so, equip a certain gear, and lock in, even if, in further true condition of the function, that gear would be changed.

what I thought:
Code

function midcast(spell)
   if buffactive['light arts' then
         
       "here I declare a command in which I can lock a pieace of gear, I.E. body, so that it will remain that in all other functions."
 
     
   if spell.skill == 'Healing Magic' then
        equip_heal()
    elseif spell.skill == 'Enfeebling Magic' then
        equip_enfeebling()
    elseif spell.skill == 'Enhancing Magic' then
        equip_enhancing()
			if spell.name == 'Stoneskin' then
			equip_enhancingstoneskin()	
		   end	
    elseif spell.skill == 'Elemental Magic' then
        equip_elemental()
    elseif spell.skill == 'Dark Magic' then
			if spell.name == 'Aspir' or 'Drain' then
			equip_darkaspirdrain()
			else
        equip_dark()
		end
		
	end	
    end

Hope it's clear.

Thanks guys ^^
 Fairy.Yunachan
Offline
サーバ: Fairy
Game: FFXI
user: Yunachan
Posts: 27
By Fairy.Yunachan 2017-10-14 12:56:11  
Nvm,

solved it with "disable" command :)

Thanks anyway!