Dont listen to Jae. I have no clue why he is even commenting this thread, when he is obviously not helping anyone.
Add this to InventoryOptionHandler.java
Code:
public static void DFS(Player player, final int slotId, final int itemId) {
if (itemId == 11283) {
player.out("You're shield has " +player.DFS+ " charges.");
} else {
}
}
Add these two in Player.java
Code:
public void DfsSpec(final int shieldId) {
if (combatDefinitions.hasDfs()) {
}
}
Code:
public int DFS = 0;
Add these two in PlayerCombat.java
Code:
if (player.getEquipment().getShieldId() == 11283 && player.DFS >= 1) {
player.setNextAnimation(new Animation(6696));
player.DFS--;
delayMagicHit(2, getMagicHit(player, getRandomMagicMaxHit(player, (5 * player.getSkills().getLevel(Skills.MAGIC)) - 180)));
player.out("BOOM OWNED!");
}
Code:
case 11283:
player.setNextAnimation(new Animation(6696));
player.DFS--;
target.setNextGraphics(new Graphics(1194));
delayNormalHit(
shieldId,
attackStyle,
getMagicHit(player, 50 + Utils.getRandom(100)),
getMagicHit(
player,
getRandomMaxHit(player, shieldId, attackStyle,
false, true, 1.1, true)));
break;
Add this in Combat.java
Code:
public static boolean hasAntiDragProtection(Entity target) {
if (target instanceof NPC)
return false;
Player p2 = (Player) target;
int shieldId = p2.getEquipment().getShieldId();
if (shieldId == 11283) {
p2.setNextAnimation(new Animation(6695));
p2.DFS++;
}
return shieldId == 1540 || shieldId == 11283 || shieldId == 11284;
}
public static boolean hasDragonFire(Entity target) {
if (target instanceof NPC)
return false;
Player p2 = (Player) target;
int shieldId = p2.getEquipment().getShieldId();
if (shieldId == 11283 && p2.DFS >= 1) {
p2.setNextAnimation(new Animation(6696));
p2.DFS--;
return true;
}
return shieldId == 11283;
}
Add this to CombatDefinitions.java
Code:
public boolean hasDfs() {
return player.getEquipment().getShieldId() == 11283;
}
Let me know if you are getting any errors and if im missing anything.