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 18: Line 18:
 
<body>
 
<body>
  
<table>
+
<h2 style="color:orange">
 +
Test Firemaking Tables:
 +
</h2>
 +
 
 +
<table width ="100%">
 
   <tr>
 
   <tr>
     <td>Your character</td>
+
     <th>Your firemaking XP</td>
 
     <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">&nbsp;
 
     <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">&nbsp;
     <input type="text" id="playername" name="players-name" placeholder="Your character name" oninput="FunctionURLencode()"> &nbsp;<img id="firemaking" src="https://imgur.com/baIMjWJ.gif">
+
     <input type="text" id="curxp" name="skill-xp" onkeyup="func()" maxlength="9" placeholder="Your XP"> &nbsp;<img id="firemaking" src="https://imgur.com/baIMjWJ.gif">
</td>
 
  <tr>
 
    <td>Your firemaking XP</td>
 
    <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">&nbsp;
 
    <input type="text" id="curxp" name="skill-xp" placeholder="Your XP" oninput="myFunction()"> &nbsp;<img id="firemaking" src="https://imgur.com/baIMjWJ.gif">
 
 
  </td>
 
  </td>
 
<tr>
 
<tr>
     <td>Target XP</td>
+
     <th>Target XP</td>
 
     <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">&nbsp;
 
     <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">&nbsp;
     <input type="text" id="tarxp" name="skill-xp" value="200000000" oninput="myFunction()"> &nbsp; <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">
+
     <input type="text" id="tarxp" name="skill-xp" onkeyup="func2()" maxlength="9" value="200000000"> &nbsp; <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">
 
  </td>
 
  </td>
 
<tr>
 
<tr>
     <td>Use knowledge totem</td>
+
     <th>Use knowledge totem</td>
 
     <td>
 
     <td>
 
     <input type="radio" name="radiodonor" value="donor0" checked> No totem
 
     <input type="radio" name="radiodonor" value="donor0" checked> No totem
Line 43: Line 42:
 
  </td>
 
  </td>
 
<tr>
 
<tr>
     <td>Bonus days</td>
+
     <th>Bonus days</td>
 
     <td>  
 
     <td>  
 
     <input type="radio" name="bonusdays" value="bonusday0" checked> No bonus days  
 
     <input type="radio" name="bonusdays" value="bonusday0" checked> No bonus days  
Line 52: Line 51:
 
<script>
 
<script>
  
function FunctionURLencode(){
+
function func() {
 +
  if (document.getElementById("curxp").value > 200000000) {
 +
    //alert("reached max limit");
 +
    document.getElementById("curxp").value = "Invalid amount, but I'll calculate!";
 +
  }
 +
}
 +
 
 +
function func2() {
 +
  if (document.getElementById("tarxp").value > 200000000) {
 +
    //alert("reached max limit");
 +
    document.getElementById("tarxp").value = "Invalid amount, but I'll calculate!";
 +
  }
 +
}
  
var url = "https://www.etherumps.com/highscores/user/";
+
document.getElementById("curxp").oninput = function() {myFunction()};
var lasturl = "/1";
+
document.getElementById("tarxp").oninput = function() {myFunction()};
var playername = document.getElementById("playername").value;
 
  
var MadeUrl = [url + playername + lasturl]
+
// ***** Fixed variables for XP ets *****
 +
const regularLogXp = 1781;
 +
const oakLogXp = 2250;
 +
const willowLogXp = 3076;
 +
const mapleLogXp = 4125;
 +
const yewLogXp = 5000;
 +
const magicLogXp = 6000;
  
    var uri = MadeUrl;
+
const regularLogCoin = 375;
    var res = encodeURI(uri);
+
const oakLogCoin = 375;
    document.getElementById("urlencoded").innerHTML = res;
+
const willowLogCoin = 375;
 +
const mapleLogCoin = 375;
 +
const yewLogCoin = 375;
 +
const magicLogCoin = 375;
  
}
+
function myFunction() {
 +
 
 +
var x = document.getElementById("curxp").value;
 +
var y = document.getElementById("tarxp").value;
 +
 
 +
 +
// ***** Calculate XP *****
 +
    document.getElementById("magicr").innerHTML = Math.ceil((y - x)/magicLogXp);
 +
    document.getElementById("yewr").innerHTML = Math.ceil((y - x)/yewLogXp);
 +
    document.getElementById("mapler").innerHTML = Math.ceil((y - x)/mapleLogXp);
 +
    document.getElementById("willowr").innerHTML = Math.ceil((y - x)/willowLogXp);
 +
    document.getElementById("oakr").innerHTML = Math.ceil((y - x)/oakLogXp);
 +
    document.getElementById("reglogr").innerHTML = Math.ceil((y - x)/regularLogXp);
 +
 
 +
// ***** Calculate XP required *****
 +
    document.getElementById("xpneeded").innerHTML = (y - x);
  
 +
// ***** Calculate skillpoints obtained *****
 +
    document.getElementById("spobtained").innerHTML = Math.floor((y - x)/500000)*3;
  
</script>
+
// ***** Calculate coins obtained *****
<p id="fmxptest"></p>
+
    document.getElementById("coinsmadereglog").innerHTML = (Math.ceil((y - x)/regularLogXp))*regularLogCoin;
<p id="urlencoded"></p>
+
    document.getElementById("coinsmadeoak").innerHTML = (Math.ceil((y - x)/oakLogXp))* oakLogCoin;
 +
    document.getElementById("coinsmadewillow").innerHTML = (Math.ceil((y - x)/willowLogXp))* willowLogCoin;
 +
    document.getElementById("coinsmademaple").innerHTML = (Math.ceil((y - x)/mapleLogXp))* mapleLogCoin;
 +
    document.getElementById("coinsmadeyew").innerHTML = (Math.ceil((y - x)/yewLogXp))* yewLogCoin;
 +
    document.getElementById("coinsmademagic").innerHTML = (Math.ceil((y - x)/magicLogXp))* magicLogCoin;
  
 +
// ***** Calculate amount of brawlers required *****
 +
    document.getElementById("magicBrawlers").innerHTML = Math.ceil(((y - x)/magicLogXp)/500);
 +
    document.getElementById("yewBrawlers").innerHTML = Math.ceil(((y - x)/yewLogXp)/500);
 +
    document.getElementById("mapleBrawlers").innerHTML = Math.ceil(((y - x)/mapleLogXp)/500);
 +
    document.getElementById("willowBrawlers").innerHTML = Math.ceil(((y - x)/willowLogXp)/500);
 +
    document.getElementById("oakBrawlers").innerHTML = Math.ceil(((y - x)/oakLogXp)/500);
 +
    document.getElementById("reglogBrawlers").innerHTML = Math.ceil(((y - x)/regularLogXp)/500);
  
  
Experience needed: <span id="xpneeded"> </span><br>
+
// ***** Calculate amount of skillpoints required *****
Skilling points you'll obtain: <span id="spobtained"> </span><br>
+
    document.getElementById("magicSkillpoint").innerHTML = Math.ceil(((y - x)/magicLogXp)/500)*50;
 +
    document.getElementById("yewSkillpoint").innerHTML = Math.ceil(((y - x)/yewLogXp)/500)*50;
 +
    document.getElementById("mapleSkillpoint").innerHTML = Math.ceil(((y - x)/mapleLogXp)/500)*50;
 +
    document.getElementById("willowSkillpoint").innerHTML = Math.ceil(((y - x)/willowLogXp)/500)*50;
 +
    document.getElementById("oakSkillpoint").innerHTML = Math.ceil(((y - x)/oakLogXp)/500)*50;
 +
    document.getElementById("reglogSkillpoint").innerHTML = Math.ceil(((y - x)/regularLogXp)/500)*50;
  
  
  
 +
// ***** Calculate inventories *****
 +
    document.getElementById("magicInv").innerHTML = Math.ceil(((y - x)/magicLogXp)/27);
 +
    document.getElementById("yewInv").innerHTML = Math.ceil(((y - x)/yewLogXp)/27);
 +
    document.getElementById("mapleInv").innerHTML = Math.ceil(((y - x)/mapleLogXp)/27);
 +
    document.getElementById("willowInv").innerHTML = Math.ceil(((y - x)/willowLogXp)/27);
 +
    document.getElementById("oakInv").innerHTML = Math.ceil(((y - x)/oakLogXp)/27);
 +
    document.getElementById("reglogInv").innerHTML = Math.ceil(((y - x)/regularLogXp)/27);
  
<table>
+
}
 +
</script>
 +
 
 +
Experience needed: <span id="xpneeded"> </span><br>
 +
Skilling points you'll obtain: <span id="spobtained"> </span><br>
 +
<table width="100%">
 
   <tr>
 
   <tr>
     <td> Level </td>
+
     <th> Level </td>
     <td> Name </td>
+
     <th> Name </td>
     <td> Amount </td>
+
     <th> # required </td>
     <td> Coins made </td>
+
     <th> Coins made </td>
     <td> With Brawlers </td>
+
     <th> # of brawlers </td>
     <td> With Totem </td>
+
     <th> Skillpoint cost </td>
     <td> Brawerls & Totem </td>
+
     <th> # of inventories </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 95: Line 159:
 
     <td id="reglogr"> </td>
 
     <td id="reglogr"> </td>
 
     <td id="coinsmadereglog"> </td>
 
     <td id="coinsmadereglog"> </td>
     <td> </td>
+
     <td id="reglogBrawlers"> </td>
     <td> </td>
+
     <td id="reglogSkillpoint"> </td>
     <td> </td>
+
     <td id="reglogInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 105: Line 169:
 
     <td id="oakr"> </td>
 
     <td id="oakr"> </td>
 
     <td id="coinsmadeoak"> </td>
 
     <td id="coinsmadeoak"> </td>
     <td> </td>
+
     <td id="oakBrawlers"> </td>
     <td> </td>
+
     <td id="oakSkillpoint"> </td>
     <td> </td>
+
     <td id="oakInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 115: Line 179:
 
     <td id="willowr"> </td>
 
     <td id="willowr"> </td>
 
     <td id="coinsmadewillow"> </td>
 
     <td id="coinsmadewillow"> </td>
     <td> </td>
+
     <td id="willowBrawlers"> </td>
     <td> </td>
+
     <td id="willowSkillpoint"> </td>
     <td> </td>
+
     <td id="willowInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 125: Line 189:
 
     <td id="mapler"> </td>
 
     <td id="mapler"> </td>
 
     <td id="coinsmademaple"> </td>
 
     <td id="coinsmademaple"> </td>
     <td> </td>
+
     <td id="mapleBrawlers"> </td>
     <td> </td>
+
     <td id="mapleSkillpoint"> </td>
     <td> </td>
+
     <td id="mapleInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 135: Line 199:
 
     <td id="yewr"> </td>
 
     <td id="yewr"> </td>
 
     <td id="coinsmadeyew"> </td>
 
     <td id="coinsmadeyew"> </td>
     <td> </td>
+
     <td id="yewBrawlers"> </td>
     <td> </td>
+
     <td id="yewSkillpoint"> </td>
     <td> </td>
+
     <td id="yewInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 145: Line 209:
 
     <td id="magicr"> </td>
 
     <td id="magicr"> </td>
 
     <td id="coinsmademagic"> </td>
 
     <td id="coinsmademagic"> </td>
     <td> </td>
+
     <td id="magicBrawlers"> </td>
     <td> </td>
+
     <td id="magicSkillpoint"> </td>
     <td> </td>
+
     <td id="magicInv"> </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Revision as of 12:27, 17 February 2018

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


Test Firemaking Tables:

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)
Experience needed:
Skilling points you'll obtain:
Level Name # required Coins made # of brawlers Skillpoint cost # of inventories
1 Regular log
15 Oak log
30 Willow log
45 Maple log
60 Yew log
75 Magic log