Nobodys looking at my help thread so i misewell post here
my Atk Ani is not working, i have this, what else do i need
Code:
public int getAttackEmote(int id) {
String weapon = Engine.items.getItemName(id);
if(weapon.endsWith(" dart") || weapon.endsWith(" knife")) {
return 2;
} else if(weapon.endsWith(" c'bow") || weapon.endsWith(" c'bow")) {
return 4230;
} else if(weapon.endsWith(" bow") || weapon.equals("Shortbow") || weapon.endsWith(" longbow") || weapon.endsWith(" shortbow")) {
return 426;
} else if (weapon.endsWith("2h sword") || weapon.endsWith("godsword") || weapon.equals("Saradomin sword")) {
return 7041;
} else if (weapon.equals("Abyssal whip")) {
return 1658;
} else if (weapon.endsWith("longsword") || weapon.endsWith("scimitar")) {
return 451;
}
return 422;
}