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
(One intermediate revision 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> | ||
− | < | + | <table width ="100%"> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<tr> | <tr> | ||
− | < | + | <th>Your character</td> |
<td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | ||
<input type="text" id="playername" name="players-name" placeholder="Your characters name" oninput="myFunction()"> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | <input type="text" id="playername" name="players-name" placeholder="Your characters name" oninput="myFunction()"> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | ||
+ | <tr> | ||
</td> | </td> | ||
− | + | <th>Your firemaking XP</td> | |
− | < | ||
<td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | ||
− | <input type="text" id="curxp" name="skill-xp" placeholder="Your XP | + | <input type="text" id="curxp" name="skill-xp" onkeyup="func()" maxlength="9" placeholder="Your XP"> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> |
</td> | </td> | ||
<tr> | <tr> | ||
− | < | + | <th>Target XP</td> |
<td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | <td> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> | ||
− | <input type="text" id="tarxp" name="skill-xp" | + | <input type="text" id="tarxp" name="skill-xp" maxlength="9" value="200000000"> <img id="firemaking" src="https://imgur.com/baIMjWJ.gif"> |
</td> | </td> | ||
<tr> | <tr> | ||
− | < | + | <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 61: | Line 48: | ||
</td> | </td> | ||
<tr> | <tr> | ||
− | < | + | <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 69: | Line 56: | ||
<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() { | ||
− | + | var x = document.getElementById("curxp").value; | |
− | + | var y = document.getElementById("tarxp").value; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | // Calculate XP | + | // ***** Calculate XP ***** |
− | document.getElementById("magicr").innerHTML = Math.ceil((y - x)/ | + | document.getElementById("magicr").innerHTML = Math.ceil((y - x)/magicLogXp); |
− | document.getElementById("yewr").innerHTML = Math.ceil((y - x)/ | + | document.getElementById("yewr").innerHTML = Math.ceil((y - x)/yewLogXp); |
− | document.getElementById("mapler").innerHTML = Math.ceil((y - x)/ | + | document.getElementById("mapler").innerHTML = Math.ceil((y - x)/mapleLogXp); |
− | document.getElementById("willowr").innerHTML = Math.ceil((y - x)/ | + | document.getElementById("willowr").innerHTML = Math.ceil((y - x)/willowLogXp); |
− | document.getElementById("oakr").innerHTML = Math.ceil((y - x)/ | + | document.getElementById("oakr").innerHTML = Math.ceil((y - x)/oakLogXp); |
− | document.getElementById("reglogr").innerHTML = Math.ceil((y - x)/ | + | 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)/ | + | // ***** Calculate coins obtained ***** |
− | document.getElementById("coinsmadeoak").innerHTML = (Math.ceil((y - x)/ | + | document.getElementById("coinsmadereglog").innerHTML = (Math.ceil((y - x)/regularLogXp))*regularLogCoin; |
− | document.getElementById("coinsmadewillow").innerHTML = (Math.ceil((y - x)/ | + | document.getElementById("coinsmadeoak").innerHTML = (Math.ceil((y - x)/oakLogXp))* oakLogCoin; |
− | document.getElementById("coinsmademaple").innerHTML = (Math.ceil((y - x)/ | + | document.getElementById("coinsmadewillow").innerHTML = (Math.ceil((y - x)/willowLogXp))* willowLogCoin; |
− | document.getElementById("coinsmadeyew").innerHTML = (Math.ceil((y - x)/ | + | document.getElementById("coinsmademaple").innerHTML = (Math.ceil((y - x)/mapleLogXp))* mapleLogCoin; |
− | document.getElementById("coinsmademagic").innerHTML = (Math.ceil((y - x)/ | + | 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> | ||
− | < | + | <th> Level </td> |
− | < | + | <th> Name </td> |
− | < | + | <th> # required </td> |
− | < | + | <th> Coins made </td> |
− | < | + | <th> # of brawlers </td> |
− | < | + | <th> Skillpoint cost </td> |
− | < | + | <th> # of inventories </td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 128: | Line 184: | ||
<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 138: | Line 194: | ||
<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 148: | Line 204: | ||
<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 158: | Line 214: | ||
<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 168: | Line 224: | ||
<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 178: | Line 234: | ||
<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> |
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) |
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 |