hello,
What I'm trying is doing this:
Code:
c.playerEquipment[c.playerWeapon] == 5698
I want to add all the poison weapons, but I think there's a cleaner way of doing this then just adding all the item id's
I've tried this:
declared these
Code:
static boolean poisonWep(int wep) {
c.getItems();
String wepName = ItemAssistant.getItemName(wep);
for(int i = 0; i < poisionData.length; i++) {
if(wepName.toLowerCase().contains(poisionData[i][0])) {
return true;
}
}
return false;
}
Code:
private static String[][] poisionData = {
{"(p)"},
{"(p+)"},
{"(p++)"}
};
combatassistant
Code:
if (Poisonable.poisonWep(c.playerWeapon) && o.poisonDamage <= 0 && Misc.random(3) == 1)
o.getPA().appendPoison(13);
but this doesnt work?