Code:
fire(player.cannon, NPCHandler.npcs[j]);
CombatEngine.attack(NPCHandler.npcs[j], player, AttackTypes.MELEE);
break;
} else if (player.inMulti() && NPCHandler.npcs[j] != null) {//change this to multi
fire(player.cannon, NPCHandler.npcs[j]);
CombatEngine.attack(NPCHandler.npcs[j], player, AttackTypes.MELEE);
Code:
if(!player.inMulti() && NPCHandler.npcs[j] != null && player.getInteractingEntity() != null && player.getInteractingEntity().getClientIndex() == j) {
Does anyone know how to configure those pieces of code to match a "normal" PI? I've been trying to find out but no luck.
Here's the tutorial i followed. http://www.rune-server.org/runescape...cannon-pi.html
If it's needed i can put the errors i get when compiling.