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
(Undo revision 8737 by Dannyx (talk))
Line 1: Line 1:
 +
 
<html>
 
<html>
 
<head>
 
<head>
Line 24: Line 25:
 
     <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" maxlength="9" placeholder="Your XP"> &nbsp;
+
     <input type="text" id="curxp" name="skill-xp" onkeyup="func()" maxlength="9" placeholder="Your XP"> &nbsp;
 
  </td>
 
  </td>
 
<tr>
 
<tr>
Line 30: Line 31:
 
     <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>Bonuses</td>
+
     <th>Knowledge totem</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>  
  <div id="No Brawlers">
+
    <input type="radio" name="aura" value="aura0" checked> No Aura
        <input type="checkbox" name="No Brawlers" value="0" /> Donator Totem <br />
+
     <input type="radio" name="aura" value="aura1"> Advanced Knowledge Aura
     <div id="Prayerbrawlers">
+
</td>
        <input type="checkbox" name="Prayerbrawlers" value="2" id="prayer-brawlers"/> Prayer Brawlers<br />
 
</div>
 
  </div>
 
  <button onclick="calculate();"> calculate </button>
 
 
</table>
 
</table>
  
Line 51: Line 66:
 
     document.getElementById("curxp").value = "Invalid Amount!";
 
     document.getElementById("curxp").value = "Invalid Amount!";
 
   }
 
   }
 
 
 
}
 
}
  
Line 64: Line 78:
 
}
 
}
  
 
function calculate() {
 
  
 
// ***** Getting current XP & Target Xp *****
 
// ***** Getting current XP & Target Xp *****
Line 72: Line 84:
  
 
// ***** Fixed variables for XP ets *****  
 
// ***** Fixed variables for XP ets *****  
 
+
const regularBoneXp = 200;
var zogreBoneXp = 60000;
+
const bigBoneXp = 600;
 
+
const babydragonBoneXp = 1200;
if(document.getElementById("prayer-brawlers").checked == true) {
+
const dragonBoneXp = 2880;
zogreBoneXp *= 2;
+
const wyvernBoneXp = 4000;
}
+
const dagannothBoneXp = 5000;
 
+
const frostdragonBoneXp = 7200;
console.log(zogreBoneXp);
+
const zogreBoneXp = 60000;
 
+
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 98: Line 103:
 
// ***** 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 118: Line 169:
 
     <td id="zogrer"> </td>   
 
     <td id="zogrer"> </td>   
 
   </tr>
 
   </tr>
   <td>  
+
   <tr>
 +
    <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:23, 7 July 2018

Prayer Table:

Your Prayer XP    
Target XP    
Knowledge totem No totem Regular Donator Super Donator Extreme Donator
Bonus days No bonus days Bonus days (1st-5th)
Prayer Brawlers No Brawlers Prayer Brawlers
Aura No Aura Advanced Knowledge Aura
Name Bones Needed
Bones
Big Bones
Babydragon Bones
Dragon Bones
Wyvern Bones
Dagannoth Bones
Frost Dragon Bones
Zogre Bones
Ourg Bones