Welcome to the RuneGlory Wiki, where we do our best to make your life easier!

You can use the search menu on the right side of the wiki (or at the bottom if you are on mobile) to search for the page you are looking for. The most popular pages can be found on the right side of the wiki aswell (or again at the bottom if you are on mobile).

Difference between revisions of "Main page/Test Cypher"

From RuneGlory
Jump to: navigation, search
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>

Revision as of 16:47, 25 January 2018

Test page from Cypher to make the build-in XP Calculator


Your character    
Your firemaking XP    
Target XP    
Use knowledge totem No totem Regular Donator Super Donator Extreme Donator
Bonus days No bonus days Bonus days (1st-5th)