Hmm well first of all, that's a return statement, not a switch statement.
A switch statement would be like this:
Code:
switch(integerName) {
}
But in this situation, I would switch the NPC id, and return the emote the NPC should use: So something like this.
Code:
public class AnimationHandler {
public int getAnimationId(int npcId) {
switch (npcId) {
case 90:
case 91:
return 261;
default:
return 1613;// 1834 was default
}
}
}
Then to call it simple use:
Code:
AnimationHandler.getAnimationId(npcId);
wherever you're called the block emote ID. Enjoy