well hello,
I am trying to add the Armadyl battlestaf :
so far i got these codes gathered up
under the void attackNpc :
Code:
if (c.playerEquipment[c.playerWeapon] == 19961) {
fireProjectileNpc();
}
under attackPlayer :
Code:
if (c.playerEquipment[c.playerWeapon] == 19961) {
fireProjectilePlayer();
}
the code in fireProjectilePlayer / Npc :
Code:
} else if (c.playerEquipment[c.playerWeapon] == 19961) {
c.gfx0(1333);
c.getPA().createPlayersProjectile2(pX, pY, offX, offY, 50, 55, getRangeProjectileGFX(), 22, 22,
c.oldPlayerIndex - 1, getStartDelay(), -1);
c.specGfx = false;
oh yeah ive added this in getWeaponDistance :
Code:
if (weaponName.contains("battlestaf"))
if (c.fightMode == 3)
return 9;
else
return 7;
there are 2 problems
1. its not ehh doing the fireprojectile
2. when i use the staff it stil runs towards the npc
instead of hitting it 7 squares further
thanks