Dragonfire shield operate
First of all just open your itempackethandler class, under public void itemoperate add this code:
case 11283:
case 11284:
if (!player.Attacking && player.id == 0) {
player.sm("You arent attacking any player at the moment.");
return;
}
if(player.dfs != 0) {
player.sm("You cant use the dfs again until: "+player.dfs+ "seconds, then you may operate again.");
return;
}
Player enemy = World.getInstance().getPlayerList().get(player.id);
player.dfs = 120;
enemy.hit(Misc.random(30));
player.animate(6696, 0);
player.graphics(1165, 0);
World.getInstance().getProjectileManager().fire(player.getLocation(), enemy.getLocation(), 50, 70, 1166, 43, 31, enemy);
enemy.graphics(1167, 0);
break;
At the top of your playerclass add this one:
/*
* DFS stuff
*/
public transient int dfs = 0;
And under the public void tick or public void process add this:
if (dfs > 0)
dfs--;
I hope this help, if not ill update this post more