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 "Dannyx Test2"

From RuneGlory
Jump to: navigation, search
Line 1: Line 1:
 
 
<html>
 
<html>
 
<head>
 
<head>
Line 25: Line 24:
 
     <th>Your Prayer XP</td>
 
     <th>Your Prayer XP</td>
 
     <td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png">&nbsp;
 
     <td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png">&nbsp;
     <input type="text" id="curxp" name="skill-xp" onkeyup="func()" maxlength="9" placeholder="Your XP"> &nbsp;
+
     <input type="text" id="curxp" name="skill-xp" maxlength="9" placeholder="Your XP"> &nbsp;
 
  </td>
 
  </td>
 
<tr>
 
<tr>
Line 31: Line 30:
 
     <td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png">&nbsp;
 
     <td> <img id="prayer" src="https://i.imgur.com/Vq65Tdh.png">&nbsp;
 
     <input type="text" id="tarxp" name="skill-xp" maxlength="9" value="13034431"> &nbsp;  
 
     <input type="text" id="tarxp" name="skill-xp" maxlength="9" value="13034431"> &nbsp;  
 +
</td>
 +
 
 
<tr>
 
<tr>
     <th>Knowledge totem</td>
+
     <th>Bonuses</td>
    <td>
 
    <input type="radio" name="radiodonor" value="donor0" checked> No totem
 
    <input type="radio" name="radiodonor" value="donor1"> <img id="next" src=""> Regular Donator
 
    <input type="radio" name="radiodonor" value="donor2"> <img id="next" src=""> Super Donator
 
    <input type="radio" name="radiodonor" value="donor3"> <img id="next" src=""> Extreme Donator
 
</td>
 
<tr>
 
    <th>Bonus days</td>
 
    <td>
 
    <input type="radio" name="bonusdays" value="bonusday0" checked> No bonus days
 
    <input type="radio" name="bonusdays" value="bonusday1"> Bonus days (1st-5th)
 
</td>
 
<tr>
 
    <th>Prayer Brawlers</td>
 
      <td>
 
    <input type="radio" name="brawlers" value="brawlers0" checked> No Brawlers
 
    <input type="radio" name="brawlers" value="brawlers1"> Prayer Brawlers
 
</td>
 
<tr>
 
    <th>Aura</td>
 
 
       <td>  
 
       <td>  
    <input type="radio" name="aura" value="aura0" checked> No Aura
+
  <div id="No Brawlers">
     <input type="radio" name="aura" value="aura1"> Advanced Knowledge Aura
+
        <input type="checkbox" name="No Brawlers" value="0" /> Donator Totem <br />
</td>
+
     <div id="Prayerbrawlers">
 +
        <input type="checkbox" name="Prayerbrawlers" value="2" id="prayer-brawlers"/> Prayer Brawlers<br />
 +
</div>
 +
  </div>
 +
  <button onclick="calculate();"> calculate </button>
 
</table>
 
</table>
  
Line 66: Line 51:
 
     document.getElementById("curxp").value = "Invalid Amount!";
 
     document.getElementById("curxp").value = "Invalid Amount!";
 
   }
 
   }
 +
 
 
}
 
}
  
Line 78: Line 64:
 
}
 
}
  
 +
 +
function calculate() {
  
 
// ***** Getting current XP & Target Xp *****
 
// ***** Getting current XP & Target Xp *****
Line 84: Line 72:
  
 
// ***** Fixed variables for XP ets *****  
 
// ***** Fixed variables for XP ets *****  
const regularBoneXp = 200;
+
 
const bigBoneXp = 600;
+
var zogreBoneXp = 60000;
const babydragonBoneXp = 1200;
+
 
const dragonBoneXp = 2880;
+
if(document.getElementById("prayer-brawlers").checked == true) {
const wyvernBoneXp = 4000;
+
zogreBoneXp *= 2;
const dagannothBoneXp = 5000;
+
}
const frostdragonBoneXp = 7200;
+
 
const zogreBoneXp = 60000;
+
console.log(zogreBoneXp);
const ourgBoneXp = 80000;
+
 
 +
myFunction(zogreBoneXp)
 +
 
 +
 
 +
}
 +
 
 +
 
  
 
// ***** Start of function to calculate everything *****
 
// ***** Start of function to calculate everything *****
function myFunction() {
+
 
 +
function myFunction(zogreBoneXp) {
  
 
var x = document.getElementById("curxp").value;
 
var x = document.getElementById("curxp").value;
Line 103: Line 98:
 
// ***** Calculate XP *****  
 
// ***** Calculate XP *****  
  
  document.getElementById("ourgr").innerHTML = Math.ceil((y - x)/ourgBoneXp);
 
 
    
 
    
 
   document.getElementById("zogrer").innerHTML = Math.ceil((y - x)/zogreBoneXp);
 
   document.getElementById("zogrer").innerHTML = Math.ceil((y - x)/zogreBoneXp);
 
+
  document.getElementById("ourgr").innerHTML = Math.ceil((y - x)/ourgBoneXp);
  document.getElementById("frostr").innerHTML = Math.ceil((y - x)/frostdragonBoneXp);
+
 
 
 
  document.getElementById("dagannothr").innerHTML = Math.ceil((y - x)/dagannothBoneXp);
 
    document.getElementById("wyvernr").innerHTML = Math.ceil((y - x)/wyvernBoneXp);
 
    document.getElementById("dragonr").innerHTML = Math.ceil((y - x)/dragonBoneXp);
 
    document.getElementById("babydragonr").innerHTML = Math.ceil((y - x)/babydragonBoneXp);
 
    document.getElementById("bigr").innerHTML = Math.ceil((y - x)/bigBoneXp);
 
    document.getElementById("regr").innerHTML = Math.ceil((y - x)/regularBoneXp);
 
  
 
// ***** Calculate XP required *****  
 
// ***** Calculate XP required *****  
 
     document.getElementById("xpneeded").innerHTML = (y - x);
 
     document.getElementById("xpneeded").innerHTML = (y - x);
 +
   
 +
   
  
  
 +
}
  
}
 
 
</script>
 
</script>
 
<table width="75%">
 
<table width="75%">
  <tr>
 
    <th> Name </td>
 
    <th> Bones Needed </td> 
 
  </tr>
 
  <tr>
 
    <td>
 
<img id="next" src="https://i.imgur.com/CxjVoDP.png"> Bones </td>
 
    <td id="regr"> </td> 
 
  </tr>
 
  <tr>
 
    <td>
 
<img id="next" src="https://i.imgur.com/i9Nw9GH.png">  Big Bones </td>
 
    <td id="bigr"> </td> 
 
  </tr>
 
  <tr>
 
    <td>
 
<img id="next" src="https://i.imgur.com/p3wiPKl.png">  Babydragon Bones </td>
 
    <td id="babydragonr"> </td>   
 
  </tr>
 
  <tr>
 
    <td>
 
<img id="next" src="https://i.imgur.com/cEMG1TT.png">  Dragon Bones </td>
 
    <td id="dragonr"> </td>   
 
  </tr>
 
  <tr>
 
    <td>
 
<img id="next" src="https://i.imgur.com/t0ko9Ba.png">  Wyvern Bones
 
</td>
 
    <td id="wyvernr"> </td>   
 
  </tr>
 
  <tr>
 
    <td>
 
<img id="next" src="https://i.imgur.com/nHiV3oL.png">  Dagannoth Bones </td>
 
    <td id="dagannothr"> </td> 
 
  </tr>
 
  <tr>
 
    <td>
 
<img id="next" src="https://i.imgur.com/9p4qdFg.png">  Frost Dragon Bones </td>
 
    <td id="frostr"> </td> 
 
  </tr>
 
 
   <tr>
 
   <tr>
 
     <td>  
 
     <td>  
Line 169: Line 118:
 
     <td id="zogrer"> </td>   
 
     <td id="zogrer"> </td>   
 
   </tr>
 
   </tr>
   <tr>
+
   <td>  
    <td>  
 
 
<img id="next" src="https://i.imgur.com/HXjMCVh.png">  Ourg Bones </td>
 
<img id="next" src="https://i.imgur.com/HXjMCVh.png">  Ourg Bones </td>
 
     <td id="ourgr"> </td>   
 
     <td id="ourgr"> </td>   

Revision as of 07:22, 7 July 2018

Prayer Table:

Your Prayer XP    
Target XP    
Bonuses
Donator Totem
Prayer Brawlers
Zogre Bones
Ourg Bones