Użytkownik:West: Różnice pomiędzy wersjami
Nie podano opisu zmian |
Nie podano opisu zmian |
||
Linia 33: | Linia 33: | ||
<spoiler> | <spoiler> | ||
<style> | <style> | ||
.container { | .container { | ||
Linia 65: | Linia 63: | ||
} | } | ||
</style> | </style> | ||
<div class="container"> | <div class="container"> | ||
<h1>Kalkulator punktów nauki</h1> | <h1>Kalkulator punktów nauki</h1> | ||
<select id="profession"> | <select id="profession"> | ||
<option value=" | <option value="3000">Wojownik</option> | ||
<option value=" | <option value="4000">Łucznik</option> | ||
<option value=" | <option value="2000">Mag</option> | ||
</select> | </select> | ||
<select id="ability"> | <select id="ability"> | ||
<option value=" | <option value="strength">Siła</option> | ||
<option value=" | <option value="shield">Obrona Tarczą</option> | ||
<option value="1h">Bron Jednoręczna</option> | <option value="1h">Bron Jednoręczna</option> | ||
<option value="2h">Broń Dwuręczna</option> | <option value="2h">Broń Dwuręczna</option> | ||
<option value=" | <option value="dist">Walka Dystansowa</option> | ||
<option value=" | <option value="magic">Magia</option> | ||
<option value=" | <option value="alchemy">Alchemia</option> | ||
<option value=" | <option value="agility">Zręczność</option> | ||
</select> | </select> | ||
<br> | <br /> | ||
<label for="currentLevel">Wybierz obecny poziom:</label> | <label for="currentLevel">Wybierz obecny poziom:</label> | ||
Linia 94: | Linia 91: | ||
</select> | </select> | ||
<br> | <br> | ||
<script> | <script> | ||
const currentLevelSelect = document.querySelector('#currentLevel'); | const currentLevelSelect = document.querySelector('#currentLevel'); | ||
Linia 104: | Linia 102: | ||
const targetLevelSelect = document.querySelector('#targetLevel'); | const targetLevelSelect = document.querySelector('#targetLevel'); | ||
for (let i = 4; i <= 200; i++) { | for(let i = 4; i <= 200; i++) { | ||
const option = document.createElement('option'); | const option = document.createElement('option'); | ||
option.value = i; | option.value = i; | ||
Linia 110: | Linia 108: | ||
targetLevelSelect.appendChild(option); | targetLevelSelect.appendChild(option); | ||
} | } | ||
function calculatePoints() { | |||
var profession = document.getElementById("profession").value; | |||
var currentLevel = document.getElementById("currentLevel").value; | |||
var targetLevel = document.getElementById("targetLevel").value; | |||
var ability = document.getElementById("ability").value; | |||
var pointsNeeded = 0; | |||
for(var i = currentLevel; i < targetLevel; i++) { | |||
pointsNeeded += Altaron.getLearnPointsForLevel(profession, ability, i); | |||
} | |||
document.getElementById("pointsNeeded").innerHTML = pointsNeeded; | |||
} | |||
</script> | </script> | ||
<button onclick=" | <button onclick="calculatePoints()">Oblicz</button> | ||
<br> | <br /> | ||
Brakuje ci: <span id="pointsNeeded"></span> punktów nauki. | Brakuje ci: <span id="pointsNeeded"></span> punktów nauki. | ||
<br><br> | <br><br> | ||
</div> | </div> | ||
</spoiler> | </spoiler> |
Wersja z 19:43, 12 lut 2023
Spoiler
Notatka Jakis tekst zadania wiecej tekstu. |
Macieij: linia 1
Gracz: linia 2323232
Macieij: linia 3
asda dadaa ad
Panelik 1
asdasdasd
Spoiler
Zadania Tajemnicza wieża Alchemika
Spoiler
<style> .container { width: 500px; margin: 5 auto; text-align: center;
border: solid;
} h1 { font-size: 24px; margin-bottom: 20px; } select { font-size: 16px; padding: 10px; margin-bottom: 20px; } input[type="number"] { font-size: 12px; padding: 5px 10px; margin-bottom: 10px;
width: 300px;
text-align: center; } button { padding: 10px 10px; font-size: 16px; margin-top: 05px;
margin-bottom: 05px;
} </style>
Kalkulator punktów nauki
<select id="profession"> <option value="3000">Wojownik</option>
<option value="4000">Łucznik</option>
<option value="2000">Mag</option> </select> <select id="ability"> <option value="strength">Siła</option>
<option value="shield">Obrona Tarczą</option>
<option value="1h">Bron Jednoręczna</option>
<option value="2h">Broń Dwuręczna</option>
<option value="dist">Walka Dystansowa</option>
<option value="magic">Magia</option>
<option value="alchemy">Alchemia</option>
<option value="agility">Zręczność</option>
</select>
<label for="currentLevel">Wybierz obecny poziom:</label> <select id="currentLevel"> </select>
<label for="targetLevel">Wybierz docelowy poziom:</label> <select id="targetLevel"> </select>
<script>
const currentLevelSelect = document.querySelector('#currentLevel'); for (let i = 3; i <= 200; i++) { const option = document.createElement('option'); option.value = i; option.textContent = i; currentLevelSelect.appendChild(option); }
const targetLevelSelect = document.querySelector('#targetLevel'); for(let i = 4; i <= 200; i++) { const option = document.createElement('option'); option.value = i; option.textContent = i; targetLevelSelect.appendChild(option); } function calculatePoints() { var profession = document.getElementById("profession").value; var currentLevel = document.getElementById("currentLevel").value; var targetLevel = document.getElementById("targetLevel").value; var ability = document.getElementById("ability").value; var pointsNeeded = 0;
for(var i = currentLevel; i < targetLevel; i++) { pointsNeeded += Altaron.getLearnPointsForLevel(profession, ability, i); }
document.getElementById("pointsNeeded").innerHTML = pointsNeeded; }
</script>
<button onclick="calculatePoints()">Oblicz</button>
Brakuje ci: punktów nauki.
Nazwa | Wymagania | Potrzebne przedmioty | Status Szlachecki | Nagroda | |||
---|---|---|---|---|---|---|---|
WIEŻA - dziwne notatki | 55 poziom | Nie | Exp, dostęp do części mapy zwanej przeszłość |