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
(Created page with "<head> <style> table, th, td { border: 1px solid black; } select { color: white; width: 100%;...")
(No difference)

Revision as of 22:36, 30 March 2019

<head>

   <style>
       table,
       th,
       td {
           border: 1px solid black;
       }
       select {
           color: white;
           width: 100%;
       }
   </style>

</head>

<body>

Fletching Calculator:

</td>
Your Fletching XP</td>
           <td> <img id="Fletch" src="6sEXz9t.png"> 
               <input type="text" id="curxp" name="skill-xp" maxlength="9" onkeyup="func()" placeholder="Your XP">  
           </td>
           <tr>
               <th>Target XP</td>
                   <td> <img id="Fletch" src="6sEXz9t.png"> 
                       <input type="text" id="tarxp" name="skill-xp" maxlength="9" onkeyup="func()" value="13034431">  
                   </td>
                   <tr>
                       <th>Bonuses</td>
                           <td>
                           

                                   </div>      
                           
                                       <input type="checkbox" name="Reg Donator" id="reg-donor" onclick="myFunction()" /> Regular Donator Totem
                                       <input type="checkbox" name="Super Donator" id="super-donor" onclick="myFunction()" /> Super Donator Totem
                                       <input type="checkbox" name="extdonor" id="ext-donor" onclick="myFunction()" /> Extreme Donator Totem
                                       <input type="checkbox" name="bonus days" id="bonus-days" onclick="myFunction()" /> 1st-5th Bonus Days
                                       <input type="checkbox" name="aura" id="ak-aura" onclick="myFunction()" /> Advanced Knowledge Aura
                                       <input type="checkbox" name="server event" id="event" onclick="myFunction()" /> 25% Skilling Hour
                                       <input type="checkbox" name="prestige" id="prestige" onclick="myFunction()" /> Prestige 20


                           </td>
                           </div>
                           </div>
   </table>
   <script>
       function func() {
           if (document.getElementById("curxp").value > 200000000) {
               //alert("reached max limit");
               document.getElementById("curxp").value = "Invalid Amount!";
               return;
           }
       }
       




       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);        
       }
       
       document.getElementById("curxp").oninput = function() {
           myFunction()
       };
       document.getElementById("tarxp").oninput = function() {
           myFunction()
       };
       var shaftXp= 200;
       var shortXp = 125;
       var longXp = 250;
       var oaksXp = 400;
       var oaklXp = 625;
       var willowsXp = 1;
       var willowlXp = 201;
       var maplesXp = 1250;
       var maplelXp = 1450;
       var yewsXp = 1675;
       var yewlXp = 1875;
       var magicsXp = 2075;
       var magiclXp = 2275;
       var opalXp = 640;
       var topazXp = 1560;
       var sapphireXp = 1880;
       var emeraldXp = 2200;
       var rubyXp = 2520;
       var diamondXp = 2800;
       var dragonXp = 3280;
       var onyxXp = 3760;       
       
       
       // ***** Getting current XP & Target Xp *****
       function setup() {
       
        shaftXp= 660;
        shortXp = 660;
        longXp = 1320;
        oaksXp = 2244;
        oaklXp = 3300;
        willowsXp = 4356;
        willowlXp = 5544;
        maplesXp = 6600;
        maplelXp = 7656;
        yewsXp = 8976;
        yewlXp = 9900;
        magicsXp = 10956;
        magiclXp = 12012;
        opalXp = 640;
        topazXp = 1560;
        sapphireXp = 1880;
        emeraldXp = 2200;
        rubyXp = 2520;
        diamondXp = 2800;
        dragonXp = 3280;
        onyxXp = 3760;


           // ***** Fixed variables for XP ets ***** 
           //*********FOR EVERYTHING***********


        if (document.getElementById("curxp").value > 13034431) {
        
        shaftXp /= 2;
        shortXp  /= 2;
        longXp  /= 2;
        oaksXp  /= 2;
        oaklXp  /= 2;
        willowsXp  /= 2;
        willowlXp /= 2;  
        maplesXp  /= 2;
        maplelXp  /= 2;
        yewsXp  /= 2;
        yewlXp  /= 2;
        magicsXp  /= 2;
        magiclXp  /= 2;
        opalXp  /= 2;
        topazXp  /= 2;
        sapphireXp  /= 2;;
        emeraldXp  /= 2;
        rubyXp  /= 2;
        diamondXp  /= 2;
        dragonXp  /= 2;
        onyxXp  /= 2;


           }
           

//******Extreme Donator Totem*******


          if (document.getElementById("ext-donor").checked) {
          
          
        shaftXp *= 2.1;
        shortXp  *= 2.1;
        longXp  *= 2.1;
        oaksXp  *= 2.1;
        oaklXp  *= 2.1;
        willowsXp  *= 2.1;
        willowlXp *= 2.1;  
        maplesXp  *= 2.1;
        maplelXp  *= 2.1;
        yewsXp  *= 2.1;
        yewlXp  *= 2.1;
        magicsXp  *= 2.1;
        magiclXp  *= 2.1;
        opalXp  *= 2.1;
        topazXp  *= 2.1;
        sapphireXp  *= 2.1;
        emeraldXp  *= 2.1;
        rubyXp  *= 2.1;
        diamondXp  *= 2.1;
        dragonXp  *= 2.1;
        onyxXp  *= 2.1;

}


//*****Super Donator Totem*********


          if (document.getElementById("super-donor").checked) {
          
        shaftXp *= 2;
        shortXp  *= 2;
        longXp  *= 2;
        oaksXp  *= 2;
        oaklXp  *= 2;
        willowsXp  *= 2;
        willowlXp *= 2;  
        maplesXp  *= 2;
        maplelXp  *= 2;
        yewsXp  *= 2;
        yewlXp  *= 2;
        magicsXp  *= 2;
        magiclXp  *= 2;
        opalXp  *= 2;
        topazXp  *= 2;
        sapphireXp  *= 2;
        emeraldXp  *= 2;
        rubyXp  *= 2;
        diamondXp  *= 2;
        dragonXp  *= 2;
        onyxXp  *= 2;
        

}

//******Regular Donator Totem*******


         if (document.getElementById("reg-donor").checked) {
         
         
        shaftXp *= 1.75;
        shortXp  *= 1.75;
        longXp  *= 1.75;
        oaksXp  *= 1.75;
        oaklXp  *= 1.75;
        willowsXp  *= 1.75;
        willowlXp *= 1.75;  
        maplesXp  *= 1.75;
        maplelXp  *= 1.75;
        yewsXp  *= 1.75;
        yewlXp  *= 1.75;
        magicsXp  *= 1.75;
        magiclXp  *= 1.75;
        opalXp  *= 1.75;
        topazXp  *= 1.75;
        sapphireXp  *= 1.75;
        emeraldXp  *= 1.75;
        rubyXp  *= 1.75;
        diamondXp  *= 1.75;
        dragonXp  *= 1.75;
        onyxXp  *= 1.75;

}

//******Advanced Knowledge Aura********


         if (document.getElementById("ak-aura").checked) {
         
        shaftXp *= 1.30;
        shortXp  *= 1.30;
        longXp  *= 1.30;
        oaksXp  *= 1.30;
        oaklXp  *= 1.30;
        willowsXp  *= 1.30;
        willowlXp *= 1.30;  
        maplesXp  *= 1.30;
        maplelXp  *= 1.30;
        yewsXp  *= 1.30;
        yewlXp  *= 1.30;
        magicsXp  *= 1.30;
        magiclXp  *= 1.30;
        opalXp  *= 1.30;
        topazXp  *= 1.30;
        sapphireXp  *= 1.30;
        emeraldXp  *= 1.30;
        rubyXp  *= 1.30;
        diamondXp  *= 1.30;
        dragonXp  *= 1.30;
        onyxXp  *= 1.30;

}


//********25% skilling event hour*********


         if (document.getElementById("event").checked) {
         
         
        shaftXp *= 1.25;
        shortXp  *= 1.25;
        longXp  *= 1.25;
        oaksXp  *= 1.25;
        oaklXp  *= 1.25;
        willowsXp  *= 1.25;
        willowlXp *= 1.25;  
        maplesXp  *= 1.25;
        maplelXp  *= 1.25;
        yewsXp  *= 1.25;
        yewlXp  *= 1.25;
        magicsXp  *= 1.25;
        magiclXp  *= 1.25;
        opalXp  *= 1.25;
        topazXp  *= 1.25;
        sapphireXp  *= 1.25;
        emeraldXp  *= 1.25;
        rubyXp  *= 1.25;
        diamondXp  *= 1.25;
        dragonXp  *= 1.25;
        onyxXp  *= 1.25;

}

//*********Prestige 20************


         if (document.getElementById("prestige").checked) {
         
         
        shaftXp *= 2;
        shortXp  *= 2;
        longXp  *= 2;
        oaksXp  *= 2;
        oaklXp  *= 2;
        willowsXp  *= 2;
        willowlXp *= 2;  
        maplesXp  *= 2;
        maplelXp  *= 2;
        yewsXp  *= 2;
        yewlXp  *= 2;
        magicsXp  *= 2;
        magiclXp  *= 2;
        opalXp  *= 2;
        topazXp  *= 2;
        sapphireXp  *= 2;
        emeraldXp  *= 2;
        rubyXp  *= 2;
        diamondXp  *= 2;
        dragonXp  *= 2;
        onyxXp  *= 2;
        

}

//*********1st-5th Bonus Days************


         if (document.getElementById("bonus-days").checked) {
         
         
        shaftXp *= 1.25;
        shortXp  *= 1.25;
        longXp  *= 1.25;
        oaksXp  *= 1.25;
        oaklXp  *= 1.25;
        willowsXp  *= 1.25;
        willowlXp *= 1.25;  
        maplesXp  *= 1.25;
        maplelXp  *= 1.25;
        yewsXp  *= 1.25;
        yewlXp  *= 1.25;
        magicsXp  *= 1.25;
        magiclXp  *= 1.25;
        opalXp  *= 1.25;
        topazXp  *= 1.25;
        sapphireXp  *= 1.25;
        emeraldXp  *= 1.25;
        rubyXp  *= 1.25;
        diamondXp  *= 1.25;
        dragonXp  *= 1.25;
        onyxXp  *= 1.25;

}

}

       // ***** Start of function to calculate everything *****
       function myFunction() {
           setup();
           var x = document.getElementById("curxp").value;
           var y = document.getElementById("tarxp").value;
           if (x.length == 0) return;
           // ***** Calculate XP ***** 
           
   
document.getElementById("shaftr").innerHTML = Math.ceil((y - x) / shaftXp);

 document.getElementById("shortr").innerHTML = Math.ceil((y - x) / shortXp);
 
 document.getElementById("longr").innerHTML = Math.ceil((y - x) / longXp);
 
 document.getElementById("oaksr").innerHTML = Math.ceil((y - x) / oaksXp);
 
 document.getElementById("oaklr").innerHTML = Math.ceil((y - x) / oaklXp);
 
 document.getElementById("willowsr").innerHTML = Math.ceil((y - x) / willowsXp);
 
 document.getElementById("willowlr").innerHTML = Math.ceil((y - x) / willowlXp);
 
 document.getElementById("maplesr").innerHTML = Math.ceil((y - x) / maplesXp);
 
 document.getElementById("maplelr").innerHTML = Math.ceil((y - x) / maplelXp);
 
 document.getElementById("yewsr").innerHTML = Math.ceil((y - x) / yewsXp);
 
 document.getElementById("yewlr").innerHTML = Math.ceil((y - x) / yewlXp);
 
 document.getElementById("magicsr").innerHTML = Math.ceil((y - x) / magicsXp);
 
 document.getElementById("magiclr").innerHTML = Math.ceil((y - x) / magiclXp);
 
 document.getElementById("opalr").innerHTML = Math.ceil((y - x) / opalXp);
 
 document.getElementById("topazr").innerHTML = Math.ceil((y - x) / topazXp);
 
 document.getElementById("sapphirer").innerHTML = Math.ceil((y - x) / sapphireXp);
 
 document.getElementById("emeraldr").innerHTML = Math.ceil((y - x) / emeraldXp);
 
 document.getElementById("rubyr").innerHTML = Math.ceil((y - x) / rubyXp);
 
 document.getElementById("diamondr").innerHTML = Math.ceil((y - x) / diamondXp);
 
 document.getElementById("dragonr").innerHTML = Math.ceil((y - x) / dragonXp);
 
 document.getElementById("onyxr").innerHTML = Math.ceil((y - x) / onyxXp);
 
 
  // ***** Calculate XP required ***** 
           //document.getElementById("xpneeded").innerHTML = "" + (y - x);
           
                   }
   </script>
 </tr>
 </tr> 
<img id="next" src="SwJt3RQ.gif"> Arrow Shaft
<img id="next" src="Gk3GriH.gif"> Shortbow
<img id="next" src="9erabM8.gif"> Longbow
<img id="next" src="DfJsYyn.png"> Opal Bolt Tips
<img id="next" src="FTd5QZe.gif"> Oak Shortbow
<img id="next" src="ZPsK20o.gif"> Oak Longbow
<img id="next" src="LdA7mvC.gif"> Willow Shortbow
<img id="next" src="6YFsCA7.gif"> Willow Longbow
<img id="next" src="3MhN28r.png"> Red Topaz Bolt Tips
<img id="next" src="9aGfpcV.gif"> Maple Shortbow
<img id="next" src="22xtp6C.gif"> Maple Longbow
<img id="next" src="dfFeKuw.png"> Sapphire Bolt Tips
<img id="next" src="XtU7Avj.png"> Emerald Bolt Tips
<img id="next" src="0eXYFA2.png"> Ruby Bolt Tips
<img id="next" src="yx20pX4.png"> Diamond Bolt Tips
<img id="next" src="vFwweYh.gif"> Yew Shortbow
<img id="next" src="gNlySfC.gif"> Yew Longbow
<img id="next" src="xmtzcsZ.png"> Dragon Bolt Tips
<img id="next" src="2PmZNLK.png"> Onyx Bolt Tips
<img id="next" src="Aqp7Qt7.gif"> Magic Shortbow
<img id="next" src="j1yC3Mo.gif"> Magic Longbow
</body>