I use F10 as a key bind for weapon skills and wanted to have spellcast auto bind F10 based on main hand weapon but so far I cant get it to work 100% of the time. This is the code I am using:
Code:
<var name="CurrentWS">null</var>
Code:
<!-- Bind F10 to Kikoku WS -->
<if EquipMain="Kikoku" advanced='"$CurrentWS"!="BladeMetsu"'>
<var cmd="set CurrentWS BladeMetsu" />
<cmd>bind f10 input /ws "Blade: Metsu" <t></cmd>
<addtochat color="121">------------------------------------------------------------ F10 Bind Blade: Metsu</addtochat>
</if>
<!-- Bind F10 to Kannagi WS -->
<elseif EquipMain="Kannagi" advanced='"$CurrentWS"!="BladeHi"'>
<var cmd="set CurrentWS BladeHi" />
<cmd>bind f10 input /ws "Blade: Hi" <t></cmd>
<addtochat color="121">------------------------------------------------------------ F10 Bind Blade: Hi</addtochat>
</elseif>
<!-- Bind F10 to Dagger WS -->
<elseif EquipMain="Twilight Knife" advanced='"$CurrentWS"!="Evisceration"'>
<var cmd="set CurrentWS Evisceration" />
<cmd>bind f10 input /ws "Evisceration" <t></cmd>
<addtochat color="121">------------------------------------------------------------ F10 Bind Evisceration</addtochat>
</elseif>
<elseif NotEquipMain="Kikoku|Kannagi|Twilight Knife">
<var cmd="set CurrentWS null" />
<addtochat color="121">------------------------------------------------------------ F10 Not bound to any WeaponSkills</addtochat>
</elseif>
Can anyone offer a better way of doing this so it will work for me?
Thank you.