try this
Code:} else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 9245)) { d = 9.90;
|
|
here's my range formula code
i'm testing with onyx bolts(e) and my max hit is 18Code:public int maxRangeHit2() { double a = playerLevel[playerRanged] / 10; //9.9 double b = a + playerLevel[playerRanged]; //108.9 double c = b / 10; //10.89 double d = 0;//120 if(hasCrystalBow()) { d = 70; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 882 || playerEquipment[playerArrows] == 883)) { d = 1.37; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 884 || playerEquipment[playerArrows] == 885)) { d = 1.87; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 886 || playerEquipment[playerArrows] == 887)) { d = 2.88; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 888 || playerEquipment[playerArrows] == 889)) { d = 3.88; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 890 || playerEquipment[playerArrows] == 891)) { d = 5.38; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 892 || playerEquipment[playerArrows] == 893)) { d = 8.70; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 882 || playerEquipment[playerArrows] == 883)) { d = 1.50; } else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 9245)) { d = 120; } else { d = 0.00; } int e = (int)Math.floor(d)/80 + (int)Math.floor(d); int f = (int)Math.floor(d) * playerLevel[playerRanged]; int g = f / 640; return (int) g; }
when it should be 30
where's the mistake?

try this
Code:} else if(!hasCrystalBow() && (playerEquipment[playerArrows] == 9245)) { d = 9.90;
| « Hitpoint bar help! | how to fix this? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |