Hi, i need help whit some code. I'm using YEP.13 – Auto Passive States, i need help white same JavaScript code. I'm using this code only be active if the player is using a sword.
What i need is remake the same code but for Armor Types, for the number 6 to be more specific.
Code:
<Custom Passive Condition>
if (user.hasSkill(648)) {
condition = false;
} else {
var weapons = user.weapons();
var arma = 2;
condition = false;
for (var i = 0; i < weapons.length; ++i) {
var weapon = weapons[i];
if (weapon && weapon.wtypeId === arma) {
condition = true;
break;
}
}
}
</Custom Passive Condition>
What i need is remake the same code but for Armor Types, for the number 6 to be more specific.