|
|
Line 17: |
Line 17: |
| </head> | | </head> |
| <body> | | <body> |
− |
| |
− | <h2 style="color:orange">
| |
− | Test Firemaking Tables:
| |
− | </h2>
| |
− |
| |
− | <input type="hidden" id="reglog" value="1781">
| |
− | <input type="hidden" id="oak" value="2250">
| |
− | <input type="hidden" id="willow" value="3076">
| |
− | <input type="hidden" id="maple" value="4125">
| |
− | <input type="hidden" id="yew" value="5000">
| |
− | <input type="hidden" id="magic" value="6000">
| |
− |
| |
− | <input type="hidden" id="coinreglog" value="375">
| |
− | <input type="hidden" id="coinoak" value="375">
| |
− | <input type="hidden" id="coinwillow" value="375">
| |
− | <input type="hidden" id="coinmaple" value="375">
| |
− | <input type="hidden" id="coinyew" value="375">
| |
− | <input type="hidden" id="coinmagic" value="375">
| |
| | | |
| <table> | | <table> |
Line 80: |
Line 62: |
| } | | } |
| | | |
− | function myFunction() {
| |
− |
| |
− | // Getting values of xps
| |
− | var x = document.getElementById("curxp").value;
| |
− | var y = document.getElementById("tarxp").value;
| |
− | var magic = document.getElementById("magic").value;
| |
− | var yew = document.getElementById("yew").value;
| |
− | var maple = document.getElementById("maple").value;
| |
− | var willow = document.getElementById("willow").value;
| |
− | var oak = document.getElementById("oak").value;
| |
− | var reglog = document.getElementById("reglog").value;
| |
− |
| |
− | // Gettting values of coins made
| |
− | var coinsmagic = document.getElementById("coinmagic").value;
| |
− | var coinsyew = document.getElementById("coinyew").value;
| |
− | var coinsmaple = document.getElementById("coinmaple").value;
| |
− | var coinswillow = document.getElementById("coinwillow").value;
| |
− | var coinsoak = document.getElementById("coinoak").value;
| |
− | var coinsreglog = document.getElementById("coinreglog").value;
| |
− |
| |
− | // Calculate XP
| |
− | document.getElementById("magicr").innerHTML = Math.ceil((y - x)/magic);
| |
− | document.getElementById("yewr").innerHTML = Math.ceil((y - x)/yew);
| |
− | document.getElementById("mapler").innerHTML = Math.ceil((y - x)/maple);
| |
− | document.getElementById("willowr").innerHTML = Math.ceil((y - x)/willow);
| |
− | document.getElementById("oakr").innerHTML = Math.ceil((y - x)/oak);
| |
− | document.getElementById("reglogr").innerHTML = Math.ceil((y - x)/reglog);
| |
− |
| |
− | document.getElementById("xpneeded").innerHTML = (y - x);
| |
− | document.getElementById("spobtained").innerHTML = Math.floor((y - x)/500000)*3;
| |
− |
| |
− | document.getElementById("coinsmadereglog").innerHTML = (Math.ceil((y - x)/reglog))*coinsreglog;
| |
− | document.getElementById("coinsmadeoak").innerHTML = (Math.ceil((y - x)/oak))*coinsoak;
| |
− | document.getElementById("coinsmadewillow").innerHTML = (Math.ceil((y - x)/reglog))*coinswillow;
| |
− | document.getElementById("coinsmademaple").innerHTML = (Math.ceil((y - x)/maple))*coinsmaple;
| |
− | document.getElementById("coinsmadeyew").innerHTML = (Math.ceil((y - x)/yew))*coinsyew;
| |
− | document.getElementById("coinsmademagic").innerHTML = (Math.ceil((y - x)/magic))*coinsmagic;
| |
− |
| |
− | }
| |
− | </script>
| |
| | | |
| Experience needed: <span id="xpneeded"> </span><br> | | Experience needed: <span id="xpneeded"> </span><br> |