bonus table.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <html><head><title>EQ2 Harvesting Bonus Table</title>
  2. <script>
  3. function twodecimal(n)
  4. {
  5. var s = n + "";
  6. var d = s.indexOf(".");
  7. return(s.substr(0,d+3));
  8. }
  9. // Tier 1 2 3 4 5 6 7 8 9
  10. var base = [ 0, 20, 90, 140, 190, 240, 290, 340, 390]; // min skill for harvseting this node
  11. var bonus = [ 19, 89, 139, 189, 239, 289, 339, 389, 439]; // skill lvl at which you get chance at bonus table
  12. var skill = [ 45, 95, 145, 195, 245, 295, 345, 395, 445]; // some harvester's skills
  13. function bonusPull()
  14. {
  15. document.write("<P><table border=1 cellpadding=5>");
  16. document.write("<tr>");
  17. document.write("<td rowspan=2>Tier</td><td rowspan=2>Base</td><td rowspan=2>Bonus</td>");
  18. document.write("<td colspan=9 align=left>Your Harvesting Skills (maxed for that tier) / Chance at Bonus Table</td>");
  19. document.write("</tr>");
  20. document.write("<tr>");
  21. for(var y=0; y<9; ++y)
  22. document.write("<td align=right>" + skill[y] + "</td>");
  23. document.write("</tr>");
  24. for(var t=0; t<9; ++t)
  25. {
  26. document.write("<tr>");
  27. document.write("<td align=right>" + (t+1) + "</td>");
  28. document.write("<td align=right>" + base[t] + "</td>");
  29. document.write("<td align=right>" + bonus[t] + "</td>");
  30. for(var y=0; y<9; ++y)
  31. {
  32. if(skill[y] < base[t])
  33. document.write("<td><hr></td>");
  34. else
  35. {
  36. var lowroll = base[t];
  37. var highroll = (skill[y] >= bonus[t]) ? skill[y] : bonus[t];
  38. var range = highroll - lowroll + 1;
  39. var rarechance = (skill[y] >= bonus[t]) ? (skill[y]-bonus[t]) : 0;
  40. document.write("<td align=right>");
  41. document.write(lowroll + "-" + highroll);
  42. document.write("<BR>" + rarechance + "/" + range);
  43. document.write("<BR>" + twodecimal(rarechance/range*100) + "%");
  44. document.write("</td>");
  45. }
  46. }
  47. document.write("</tr>");
  48. }
  49. document.write("</table>");
  50. }
  51. </script>
  52. </head>
  53. <body>
  54. <h2>EQ2 Harvesting Bonus Table</h2>
  55. <h3>Chance at the Bonus Table</h3>
  56. <script>
  57. document.write("<P>This is your chance to get a roll in the bonus table. It's based on how high over the lvl x8 skill for that tier Your harvesting skills are. Note that your harvesting skills must be maxed out (ie: x/x) to even get this calculation made.");
  58. document.write("<P>Table information (line):");
  59. document.write("<ol>");
  60. document.write("<LI>random range");
  61. document.write("<LI>chance of you getting a high enough roll to get a chance at bonus table roll");
  62. document.write("<LI>2 decimal percent of above");
  63. document.write("</ol>");
  64. bonusPull();
  65. document.write("<P>&nbsp;");
  66. base[1] = 40;
  67. bonus[0] = 39;
  68. bonusPull();
  69. </script></body></html>