I'm trying to retrieve the value for the skill associated with equipment in the main hand.
I see that weapons in items.lua haves values for skill which correspond to the various weapon types (ie: 1 for hand to hand, 3 for sword, etc.)
I'm trying to have gearswap check against this value when attempting to use a weaponskill. ie:
if spell.name == "Combo" and player.equip.main[skill] == 3 then cancel_spell() send_command("input /ws \"Fast Blade\" <t>") end
I realize this doesn't work but I can't figure out how to access the values in items.lua for function handling. I've seen some references to res.items and the variables.xlsx file has some things that I don't quite understand how to make use of like getraw but I'm not at all experienced with Lua and I can't seem to find any information on how to do so.
Any help would be appreciated.