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 Cypher3"

From RuneGlory
Jump to: navigation, search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 
Test page from Cypher to make the build-in XP Calculator
 
Test page from Cypher to make the build-in XP Calculator
  
Line 22: Line 23:
 
</h2>
 
</h2>
  
<input type="hidden" id="reglog" value="1781">
+
<table width ="100%">
<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>
 
 
   <tr>
 
   <tr>
     <td>Your firemaking XP</td>
+
    <th>Your character</td>
     <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()">
+
    <input type="text" id="playername" name="players-name" placeholder="Your characters name" oninput="myFunction()"> &nbsp;<img id="firemaking" src="https://imgur.com/baIMjWJ.gif">
 +
<tr>
 +
</td>
 +
    <th>Your firemaking XP</td>
 +
     <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">&nbsp;
 +
     <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>
 +
    <th>Target XP</td>
 +
    <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">&nbsp;
 +
    <input type="text" id="tarxp" name="skill-xp" maxlength="9" value="200000000"> &nbsp; <img id="firemaking" src="https://imgur.com/baIMjWJ.gif">
 
  </td>
 
  </td>
 
<tr>
 
<tr>
     <td>Target XP</td>
+
     <th>Use knowledge totem</td>
 
     <td>
 
     <td>
     <input type="text" id="tarxp" name="skill-xp" value="200000000" oninput="myFunction()">
+
     <input type="radio" name="radiodonor" value="donor0" checked> No totem
 +
    <input type="radio" name="radiodonor" value="donor1"> <img id="next" src="https://i.imgur.com/Ugz3obm.png"> Regular Donator
 +
    <input type="radio" name="radiodonor" value="donor2"> <img id="next" src="https://i.imgur.com/Pjnz1Wh.png"> Super Donator
 +
    <input type="radio" name="radiodonor" value="donor3"> <img id="next" src="https://i.imgur.com/qHYfynX.png"> Extreme Donator
 
  </td>
 
  </td>
 
<tr>
 
<tr>
     <td>Use knowledgetotem</td>
+
     <th>Bonus days</td>
     <td>
+
     <td>  
     <input type="radio" name="radiodonor" value="donor0" checked> No knowledge totem
+
     <input type="radio" name="bonusdays" value="bonusday0" checked> No bonus days
    <input type="radio" name="radiodonor" value="donor1"> Donator
+
     <input type="radio" name="bonusdays" value="bonusday1"> Bonus days (1st-5th)
    <input type="radio" name="radiodonor" value="donor2"> Super Donator
 
     <input type="radio" name="radiodonor" value="donor3"> Extreme Donator
 
 
  </td>
 
  </td>
 
</table>
 
</table>
  
 
<script>
 
<script>
 +
 +
function func() {
 +
  if (document.getElementById("curxp").value > 200000000) {
 +
    //alert("reached max limit");
 +
    document.getElementById("curxp").value = "Invalid amount silly!";
 +
  }
 +
}
 +
document.getElementById("playername").oninput = function() {FunctionURLencode()};
 +
 +
function FunctionURLencode(){
 +
 +
var url = "https://www.etherumps.com/highscores/user/";
 +
var lasturl = "/1";
 +
var playername = document.getElementById("playername").value;
 +
 +
var MadeUrl = [url + playername + lasturl]
 +
 +
    var uri = MadeUrl;
 +
    var res = encodeURI(uri);
 +
    document.getElementById("urlencoded").innerHTML = res;
 +
 +
}
 +
 +
function Get(urlencoded){
 +
    var Httpreq = new XMLHttpRequest(); // a new request
 +
    Httpreq.open("GET",yourUrl,false);
 +
    Httpreq.send(null);
 +
    return Httpreq.responseText; 
 +
 +
var json_obj = JSON.parse(Get(urlencoded));
 +
//console.log(json_obj.11);       
 +
}
 +
 +
 +
// ***** Getting current XP & Target Xp *****
 +
document.getElementById("curxp").oninput = function() {myFunction()};
 +
document.getElementById("tarxp").oninput = function() {myFunction()};
 +
 +
// ***** Fixed variables for XP ets *****
 +
const regularLogXp = 1781;
 +
const oakLogXp = 2250;
 +
const willowLogXp = 3076;
 +
const mapleLogXp = 4125;
 +
const yewLogXp = 5000;
 +
const magicLogXp = 6000;
 +
 +
const regularLogCoin = 375;
 +
const oakLogCoin = 375;
 +
const willowLogCoin = 375;
 +
const mapleLogCoin = 375;
 +
const yewLogCoin = 375;
 +
const magicLogCoin = 375;
 +
 +
// ***** Start of function to calculate everything *****
 
function myFunction() {
 
function myFunction() {
  
// Getting values of xps
+
var x = document.getElementById("curxp").value;
    var x = document.getElementById("curxp").value;
+
var y = document.getElementById("tarxp").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
+
// ***** Calculate XP *****
     document.getElementById("magicr").innerHTML = Math.ceil((y - x)/magic);
+
     document.getElementById("magicr").innerHTML = Math.ceil((y - x)/magicLogXp);
     document.getElementById("yewr").innerHTML = Math.ceil((y - x)/yew);
+
     document.getElementById("yewr").innerHTML = Math.ceil((y - x)/yewLogXp);
     document.getElementById("mapler").innerHTML = Math.ceil((y - x)/maple);
+
     document.getElementById("mapler").innerHTML = Math.ceil((y - x)/mapleLogXp);
     document.getElementById("willowr").innerHTML = Math.ceil((y - x)/willow);
+
     document.getElementById("willowr").innerHTML = Math.ceil((y - x)/willowLogXp);
     document.getElementById("oakr").innerHTML = Math.ceil((y - x)/oak);
+
     document.getElementById("oakr").innerHTML = Math.ceil((y - x)/oakLogXp);
     document.getElementById("reglogr").innerHTML = Math.ceil((y - x)/reglog);
+
     document.getElementById("reglogr").innerHTML = Math.ceil((y - x)/regularLogXp);
  
 +
// ***** Calculate XP required *****
 
     document.getElementById("xpneeded").innerHTML = (y - x);
 
     document.getElementById("xpneeded").innerHTML = (y - x);
 +
 +
// ***** Calculate skillpoints obtained *****
 
     document.getElementById("spobtained").innerHTML = Math.floor((y - x)/500000)*3;
 
     document.getElementById("spobtained").innerHTML = Math.floor((y - x)/500000)*3;
  
     document.getElementById("coinsmadereglog").innerHTML = (Math.ceil((y - x)/reglog))*coinsreglog;
+
// ***** Calculate coins obtained *****
document.getElementById("coinsmadeoak").innerHTML = (Math.ceil((y - x)/oak))*coinsoak;
+
     document.getElementById("coinsmadereglog").innerHTML = (Math.ceil((y - x)/regularLogXp))*regularLogCoin;
document.getElementById("coinsmadewillow").innerHTML = (Math.ceil((y - x)/reglog))*coinswillow;
+
    document.getElementById("coinsmadeoak").innerHTML = (Math.ceil((y - x)/oakLogXp))* oakLogCoin;
document.getElementById("coinsmademaple").innerHTML = (Math.ceil((y - x)/maple))*coinsmaple;
+
    document.getElementById("coinsmadewillow").innerHTML = (Math.ceil((y - x)/willowLogXp))* willowLogCoin;
document.getElementById("coinsmadeyew").innerHTML = (Math.ceil((y - x)/yew))*coinsyew;
+
    document.getElementById("coinsmademaple").innerHTML = (Math.ceil((y - x)/mapleLogXp))* mapleLogCoin;
document.getElementById("coinsmademagic").innerHTML = (Math.ceil((y - x)/magic))*coinsmagic;
+
    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);
 +
 
 +
 
 +
// ***** Calculate amount of skillpoints required *****
 +
    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);
  
 
}
 
}
 
</script>
 
</script>
 
+
<p id="urlencoded"></p>
 
Experience needed: <span id="xpneeded"> </span><br>
 
Experience needed: <span id="xpneeded"> </span><br>
 
Skilling points you'll obtain: <span id="spobtained"> </span><br>
 
Skilling points you'll obtain: <span id="spobtained"> </span><br>
<table>
+
<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>
 +
    <th> # of brawlers </td>
 +
     <th> Skillpoint cost </td>
 +
    <th> # of inventories </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 114: Line 184:
 
     <td id="reglogr"> </td>
 
     <td id="reglogr"> </td>
 
     <td id="coinsmadereglog"> </td>
 
     <td id="coinsmadereglog"> </td>
 +
    <td id="reglogBrawlers"> </td>
 +
    <td id="reglogSkillpoint"> </td>
 +
    <td id="reglogInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 121: Line 194:
 
     <td id="oakr"> </td>
 
     <td id="oakr"> </td>
 
     <td id="coinsmadeoak"> </td>
 
     <td id="coinsmadeoak"> </td>
 +
    <td id="oakBrawlers"> </td>
 +
    <td id="oakSkillpoint"> </td>
 +
    <td id="oakInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 128: Line 204:
 
     <td id="willowr"> </td>
 
     <td id="willowr"> </td>
 
     <td id="coinsmadewillow"> </td>
 
     <td id="coinsmadewillow"> </td>
 +
    <td id="willowBrawlers"> </td>
 +
    <td id="willowSkillpoint"> </td>
 +
    <td id="willowInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 135: Line 214:
 
     <td id="mapler"> </td>
 
     <td id="mapler"> </td>
 
     <td id="coinsmademaple"> </td>
 
     <td id="coinsmademaple"> </td>
 +
    <td id="mapleBrawlers"> </td>
 +
    <td id="mapleSkillpoint"> </td>
 +
    <td id="mapleInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 142: Line 224:
 
     <td id="yewr"> </td>
 
     <td id="yewr"> </td>
 
     <td id="coinsmadeyew"> </td>
 
     <td id="coinsmadeyew"> </td>
 +
    <td id="yewBrawlers"> </td>
 +
    <td id="yewSkillpoint"> </td>
 +
    <td id="yewInv"> </td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
Line 149: Line 234:
 
     <td id="magicr"> </td>
 
     <td id="magicr"> </td>
 
     <td id="coinsmademagic"> </td>
 
     <td id="coinsmademagic"> </td>
 +
    <td id="magicBrawlers"> </td>
 +
    <td id="magicSkillpoint"> </td>
 +
    <td id="magicInv"> </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Latest revision as of 18:20, 16 February 2018

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


Test Firemaking Tables:

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)

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