GS Question: Coding Help Please

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Support » GS Question: Coding Help Please
GS Question: Coding Help Please
 Lakshmi.Vadian
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 55
By Lakshmi.Vadian 2017-11-27 16:13:51
Link | Quote | Reply
 
Wanting this to allow for gear change on ws and enmity swaps.
Code
-- If DefenseMode is active, apply that gear over midcast
	-- choices.  Precast is allowed through for fast cast on
	-- spells, but we want to return to def gear before there's
	-- time for anything to hit us.
	-- Exclude Job Abilities from this restriction, as we probably want
	-- the enhanced effect of whatever item of gear applies to them,
	-- and only one item should be swapped out.
	if state.DefenseMode.value ~= 'None' and spell.type ~= 'JobAbility' then
		handle_equipping_gear(player.status)
		eventArgs.handled = true
Log in to post.