Użytkownik:West: Różnice pomiędzy wersjami
Nie podano opisu zmian Znacznik: Ręczne wycofanie zmian |
Nie podano opisu zmian |
||
Linia 31: | Linia 31: | ||
{{:WIEŻA - dziwne notatki|Lista}} | {{:WIEŻA - dziwne notatki|Lista}} | ||
</spoiler> | </spoiler> | ||
<html> | |||
<head> | |||
<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> | |||
<script> | |||
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; | |||
if (profession === "Warrior" && ability === "Strength") | |||
{ | |||
var levelPoints = [ | |||
2, 2, 2, 3, 3, 3, 4, 4, 4, 5, | |||
5, 5, 6, 6, 6, 7, 8, 9, 10, 11, | |||
12, 14, 16, 17, 18, 20, 21, 23, 26, 29, | |||
33, 37, 43, 48, 54, 60, 67, 74, 82, 91, | |||
101, 112, 124, 137, 151, 166, 182, 200, 219, 240 | |||
]; | |||
var index = currentLevel - 1; | |||
if (index >= 0 && index < levelPoints.length) { | |||
for (var i = currentLevel; i < targetLevel; i++) { | |||
pointsNeeded += levelPoints[i - 1]; | |||
} | |||
} | |||
} | |||
else if (profession === "Mage" && ability === "Strength") | |||
{ | |||
var levelPoints = [ | |||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | |||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | |||
2, 3, 3, 3, 4, 4, 4, 5, 5, 5, | |||
6, 6, 7, 8, 8, 9, 10, 11, 12, 13, | |||
14, 16, 17, 18, 20, 21, 23, 26, 29, 33, | |||
37, 43, 48, 54, 61, 68, 76, 84, 93 | |||
]; | |||
var index = currentLevel - 1; | |||
if (index >= 0 && index < levelPoints.length) { | |||
for (var i = currentLevel; i < targetLevel; i++) { | |||
pointsNeeded += levelPoints[i - 1]; | |||
} | |||
} | |||
} | |||
document.getElementById("pointsNeeded").innerHTML = pointsNeeded; | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
<div class="container"> | |||
<h1>Kalkulator punktów nauki</h1> | |||
<select id="profession"> | |||
<option value="Warrior">Wojownik</option> | |||
<option value="Archer">Łucznik</option> | |||
<option value="Mage">Mag</option> | |||
</select> | |||
<select id="ability"> | |||
<option value="Strength">Siła</option> | |||
<option value="Shielding">Obrona Tarczą</option> | |||
<option value="1h">Bron Jednoręczna</option> | |||
<option value="2h">Broń Dwuręczna</option> | |||
<option value="Distance">Walka Dystansowa</option> | |||
<option value="Magic">Magia</option> | |||
<option value="Alchemy">Alchemia</option> | |||
<option value="Agility">Zręczność</option> | |||
</select> | |||
<br> | |||
<input type="number" id="currentLevel" min="3" max="199" placeholder="Obecny poziom umiejętności"> | |||
<br> | |||
<input type="number" id="targetLevel" min="4" max="200" placeholder="Docelowy poziom umiejętności"> | |||
<br> | |||
<button onclick="calculatePoints()">Oblicz</button> | |||
<br> | |||
Brakuje ci: <span id="pointsNeeded"></span> punktów nauki. | |||
<br><br> | |||
</div> | |||
</body> | |||
</html> |
Wersja z 12:36, 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
Kalkulator punktów nauki
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ść |