Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HTML>
- <SCRIPT LANGUAGE="JavaScript">
- function cookies(){
- var xpperth = new Array(10080, 8750, 630, 665000, 57500, 2100);
- var desc = new Array(" Dragon bones" ," Infernal Ashes", " Bones"," Gorak kills", " Bandos kills", "");
- var gmmutiple = new Array(7, 1, 0.2);
- var mutiplier = new Array(1, 1.35, 1.5, 1.55, 1.85, 2.05);
- var targetlvl = parseInt(targetlevel.value);
- var currentxp = parseInt(currentXP.value);
- var points = 0;
- var amofth;
- for(var i = 1; i < targetlvl; i++){
- points = points + Math.floor(i + 300 * Math.pow(2, i / 7.));
- var xpforxlevel = Math.floor(points / 4);
- }
- var xpneeded = xpforxlevel - currentxp;
- if(xpsrc.value != 1337 && typeskill.value == 1){
- var xpperth3 = xpperth[parseInt(xpsrc.value)] * gmmutiple[parseInt(gm.value)] * mutiplier[parseInt(mutiple.value)];
- amofth = xpneeded / xpperth3;
- amofth = Math.ceil(amofth);
- output.setAttribute("value", amofth + desc[parseInt(xpsrc.value)]);
- } else if(xpsrc.value != 1337){
- var xpperth3 = xpperth[parseInt(xpsrc.value)] * mutiplier[parseInt(mutiple.value)];
- amofth = xpneeded / xpperth3
- amofth = Math.ceil(amofth);
- output.setAttribute("value", amofth + desc[parseInt(xpsrc.value)]);
- } else {
- var xpperth3 = xpperth[parseInt(xpsrc.value)] * mutiplier[parseInt(mutiple.value)];
- amofth = xpneeded / xpperth3
- amofth = Math.ceil(amofth);
- output.setAttribute("value", amofth + " More of what you were doing!");
- }
- console.log(xpneeded)
- }
- </SCRIPT>
- <BODY>
- What type of skill are you leveling? (prayer is not a combat skill)<br>
- <select id="typeskill">
- <option value="0">Non-combat skill</option>
- <option value="1">Combat skill</option>
- </select><br><br>
- What is your gamemode?<br>
- <select id="gm">
- <option value="0">Lord</option>
- <option value="1">Legend</option>
- <option value="2">Master</option>
- </select><br><br>
- How much XP do you have in your chosen skill?<br>
- <input type=text id=currentXP value=""><br><br>
- What level do you want for your chosen skill?<br>
- <input type=text id=targetlevel value=""><br><br>
- What is the current xp mutiplier?<br>
- <select id="mutiple">
- <option value="0">1x (Regular day)</option>
- <option value="1">1.35x (Weekend day)</option>
- <option value="2">1.5x (Vote bonus)</option>
- <option value="3">1.55x (Donor + Weekend day)</option>
- <option value="4">1.85x (Weekend day + Vote bonus)</option>
- <option value="5">2.05x (Weekend day + Donor + Vote bonus)</option>
- </select><br>
- What XP source are you going to use?<br>
- <select id="xpsrc">
- <option value="1337">Custom</option>
- <optgroup label="Prayer">
- <option value="0">Dragon Bones</option>
- <option value="1">Infernal Ashes</option>
- <option value="2">Bones</option>
- <option value="5">Daggonoth Bones</option>
- </optgroup>
- <optgroup label="Combat">
- <option value="3">Gorak</option>
- <option value="4">General Graardor</option>
- </optgroup>
- </select>
- <br>
- How much XP does that give you? (Only needed when you selected "custom")<br>
- <input type=text id=custominput value=""><br><br>
- <button onclick="cookies()">Calculate!</button><br>
- You will need: <input type=text id=output value="">
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement