Post: [PI] Adding a Polypore Staff
03-11-2015, 06:25 PM #1
Stunz
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({});
CombatAssistant.java

Find

    	public void attackNpc(int i) {


Under it add

    if (c.playerEquipment[c.playerWeapon] == ####) {
c.spellId = 51;
}


Find

    		public void attackPlayer(int i) {


Under it add

    if (c.playerEquipment[c.playerWeapon] == ####) {
c.spellId = 51
}


Find

    		public static int finalMagicDamage(Client c) {


Under the switch statement add

    		case ####:
damageMultiplier += .13;
break;


This makes the weapon use magic based attacks.

Player.java

Find

    	public final int[][] MAGIC_SPELLS = { 


Add a new set to the array (must be last set)

    	{0,0,xxx,yyy,zzz,www,uu,tt,0,0,0,0,0,0,0,0},


xxx Animations
yyy Starting GFX
zzz Projectile ID
www End GFX
uu Max Hit
tt XP
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo