//function reload() { //location. reload() //} //setInterval(reload, 10000) let inv2_save = localStorage.getItem("inv2_ls"); if (inv2_save !== null) { inv2 = JSON.parse(inv2_save); } locBasedImage("mine", "miningIcon") locBasedImage("wc", "wcIcon") locBasedImage("cardio", "cardioIcon") locBasedImage("fighting", "fightingIcon") locBasedImage("fishing", "fishingIcon") locBasedImage("city", "cookingIcon") locBasedImage("city", "smeltIcon") locBasedImage("city", "smithIcon") locBasedImage("farm", "farmIcon") locBasedImage("brightside", "brightside") locBasedImage("boulevard", "boulevard") locBasedImage("neon tiger", "neonTiger") locBasedImage("kiki", "kiki") locBasedImage("bouba", "bouba") locBasedImage("cemetaryGates", "cemetaryGates") locBasedImage("pompeii", "pompeii") locBasedImage("frostbite", "frostbite") function locBasedImage(locTypeName, imgSrc) { if ((localStorage.getItem("travelLocType_ls")).includes(`${locTypeName}`)) { document.write(``) } } document.write("
") document.write("
") document.write("
") document.write(' ') document.write("
") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("
") document.write(` Mining: ${xpToLevel(localStorage.getItem("miningEXP_ls"))}/99`); document.write("") document.write(` Woodcutting: ${xpToLevel(localStorage.getItem("wcEXP_ls"))}/99`); document.write("
") document.write(` Cardio: ${xpToLevel(localStorage.getItem("cardioEXP_ls"))}/99`); document.write("") document.write(` Fighting: ${xpToLevel(localStorage.getItem("fightingEXP_ls"))}/99`); document.write("
") document.write(` Fishing: ${xpToLevel(localStorage.getItem("fishingEXP_ls"))}/99`); document.write("") document.write(` Cooking: ${xpToLevel(localStorage.getItem("cookingEXP_ls"))}/99`); document.write("
") document.write(` Smelting: ${xpToLevel(localStorage.getItem("smeltEXP_ls"))}/99`); document.write("") document.write(` Smithing: ${xpToLevel(localStorage.getItem("smithEXP_ls"))}/99`); document.write("
") document.write(` Health: ${xpToLevel(localStorage.getItem("healthEXP_ls"))}/99`); document.write("") document.write(` Defence: ${xpToLevel(localStorage.getItem("defenceEXP_ls"))}/99`); document.write("
") document.write(` Farming: ${xpToLevel(localStorage.getItem("farmEXP_ls"))}/99`); document.write("") document.write("
") //document.write("
") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("
") document.write(`
${localStorage.getItem("coins_ls")}
`) document.write("
") document.write(`
${localStorage.getItem("hp_ls")}/${xpToLevel(localStorage.getItem("healthEXP_ls"))}
`) document.write("
") document.write(`
`) document.write("
") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("
") document.write(`
Brightside: ${localStorage.getItem("brightsideKills_ls")}
`) document.write("
") document.write(`
Boulevard: ${localStorage.getItem("boulevardKills_ls")}
`) document.write("
") document.write(`
Kiki: ${localStorage.getItem("kikiKills_ls")}
`) document.write("
") document.write(`
Bouba: ${localStorage.getItem("boubaKills_ls")}
`) document.write("
") document.write(`
Pompeii: ${localStorage.getItem("pompeiiKills_ls")}
`) document.write("
") document.write(`
Frostbite: ${localStorage.getItem("frostbiteKills_ls")}
`) document.write("
") document.write(`
Neon Tiger: ${localStorage.getItem("neonTigerKills_ls")}
`) document.write("
") document.write(`
Cemetary Gates: ${localStorage.getItem("cemetaryGatesKills_ls")}
`) document.write("
") document.write("
") document.write("
") //document.write('') document.write("
") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("") document.write("
") document.write("Inventory                                   ") document.write("
") if (inv2[0] === undefined) { document.write(" "); } else { document.write(inv2[0]); } document.write("
") if (inv2[1] === undefined) { document.write(" "); } else { document.write(inv2[1]); } document.write("
") if (inv2[2] === undefined) { document.write(" "); } else { document.write(inv2[2]); } document.write("
") if (inv2[3] === undefined) { document.write(" "); } else { document.write(inv2[3]); } document.write("
") if (inv2[4] === undefined) { document.write(" "); } else { document.write(inv2[4]); } document.write("
") if (inv2[5] === undefined) { document.write(" "); } else { document.write(inv2[5]); } document.write("
") if (inv2[6] === undefined) { document.write(" "); } else { document.write(inv2[6]); } document.write("
") if (inv2[7] === undefined) { document.write(" "); } else { document.write(inv2[7]); } document.write("
") if (inv2[8] === undefined) { document.write(" "); } else { document.write(inv2[8]); } document.write("
") if (inv2[9] === undefined) { document.write(" "); } else { document.write(inv2[9]); } document.write("
") if (inv2[10] === undefined) { document.write(" "); } else { document.write(inv2[10]); } document.write("
") if (inv2[11] === undefined) { document.write(" "); } else { document.write(inv2[11]); } document.write("
") if (inv2[12] === undefined) { document.write(" "); } else { document.write(inv2[12]); } document.write("
") if (inv2[13] === undefined) { document.write(" "); } else { document.write(inv2[13]); } document.write("
") if (inv2[14] === undefined) { document.write(" "); } else { document.write(inv2[14]); } document.write("
") if (inv2[15] === undefined) { document.write(" "); } else { document.write(inv2[15]); } document.write("
") if (inv2[16] === undefined) { document.write(" "); } else { document.write(inv2[16]); } document.write("
") if (inv2[17] === undefined) { document.write(" "); } else { document.write(inv2[17]); } document.write("
") if (inv2[18] === undefined) { document.write(" "); } else { document.write(inv2[18]); } document.write("
") if (inv2[19] === undefined) { document.write(" "); } else { document.write(inv2[19]); } document.write("
") if (inv2[20] === undefined) { document.write(" "); } else { document.write(inv2[20]); } document.write("
") if (inv2[21] === undefined) { document.write(" "); } else { document.write(inv2[21]); } document.write("
") if (inv2[22] === undefined) { document.write(" "); } else { document.write(inv2[22]); } document.write("
") if (inv2[23] === undefined) { document.write(" "); } else { document.write(inv2[23]); } document.write("
") if (inv2[24] === undefined) { document.write(" "); } else { document.write(inv2[24]); } document.write("
") if (inv2[25] === undefined) { document.write(" "); } else { document.write(inv2[25]); } document.write("
") if (inv2[26] === undefined) { document.write(" "); } else { document.write(inv2[26]); } document.write("
") if (inv2[27] === undefined) { document.write(" "); } else { document.write(inv2[27]); } document.write("
") if (inv2[28] === undefined) { document.write(" "); } else { document.write(inv2[28]); } document.write("
") if (inv2[29] === undefined) { document.write(" "); } else { document.write(inv2[29]); } document.write("
") //document.write(localStorage.getItem("inv2_ls")) document.write("
") function removeAndReplaceAll() { //debugger; document.body.innerHTML = '' document.write(``) } // function xpToLevel(exp) { let level = Math.trunc(Math.pow(exp, 1/4)); if (level > 99) { return 99; } if (level <= 99) { return level; } } /*function functionToRemoveAll() { removeAll() setTimeout(functionToRemoveAll, 50000) } functionToRemoveAll()*/