CODE
If (skapi.AcoFromEqm(eqmWeapons) == ("Silver Tachi")); // see if wielded weapon is the user defined for melee
skapi.SetCombatMode(true); // go into combat mode
} else { // if not wielded weapon is not user defined
skapi.SelectAco("Silver Tachi"); // select weapon
skapi.Keys(cmidUSE); // use weapon (wield)
skapi.SetCombatMode(true); // go into combat mode
}
skapi.SetCombatMode(true); // go into combat mode
} else { // if not wielded weapon is not user defined
skapi.SelectAco("Silver Tachi"); // select weapon
skapi.Keys(cmidUSE); // use weapon (wield)
skapi.SetCombatMode(true); // go into combat mode
}
I get a syntax error on the } else { line. I don't really know what I'm doing, more like guess and check, this is my first project so I'm in the learning stage.
I used eqmWeapons because it looks like that is meant for any object in the weapon slot, missile/melee/wand, whereas eqmWeapon was for only melee/missile and eqmFocusWeapon was for wands etc, is this right?
Can anybody shed some light on my code and maybe give me a more efficient way of checking current wielded item, seeing if it is the correct one, and wielding a new weapon if not? Also is there a way to select and use a weapon without requiring AC to be the active window? I read that skapi.Keys(cmid) requires ac to be the active window...