Originally Posted by
Santa Hat
I suggest looking in the PlayerCombat class, the processWithDelay method contains a "multiplier" variable
I've been looking at that. I've used this as the example.
Code:
case 19784: // korasi sword
player.setNextAnimation(new Animation(14788));
player.setNextGraphics(new Graphics(1729));
int korasiDamage = getMaxHit(player, weaponId, attackStyle,
false, true, 1);
double multiplier = 0.5;
multiplier += Math.random();
korasiDamage *= multiplier;
delayNormalHit(weaponId, attackStyle,
getMagicHit(player, korasiDamage));
break;
Also another thing the NPC shit for the damage stuff is npc.java so would i add the a int for the multi
Code:
final Player p2 = (Player) source;
int dmg = (hit.getDamage() * 3); //*1 means if u wanna make it so if u hit a 250 u get 250 tokens
if(this.getId()==131) // 131 is the npc id
p2.getPackets().sendGameMessage ("You have gained <col=FF0000>" + dmg + "</col> " + "damage tokens");
if(this.getId()==131)
p2.getInventory().addItem(13653,dmg);
If i make the hit.getDamage into player.getDamageMP it'll just say change into a static int or something and then your multiplier doesn't save you got team viewer?