GS Question: Coding Help Please

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » GS Question: Coding Help Please
GS Question: Coding Help Please
 Lakshmi.Vadian
Offline
サーバ: Lakshmi
Game: FFXI
user: elii
Posts: 55
By Lakshmi.Vadian 2017-11-27 16:13:51  
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.