-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
164 lines (135 loc) · 8.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en" >
<head >
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css" />
<title>RPG</title>
</head>
<body id="body" >
<div id="progressbar"><p id="progressbartext"><div id="progressbarInside"></div></p></div>
<div id="mapframe" style="display:none;"></div>
<canvas id="map" width="5000" height="5000"></canvas>
<div id="mapcontainer">
</div>
<div id="tooltip" ></div>
<div id="hotbar"></div>
<div id="healthbar"><div id="healthbarinside"></div><div id="healthbartext"></div></div>
<span id="guihandler" > f<div id="gui" ><div id="nei">
<button id="neileft" onclick="ShowRecipe(CurrentRecipeI-1)">⇦</button>
<div id="neiText"></div><button id="neiright" onclick="ShowRecipe(CurrentRecipeI+1)">⇨</button>
</div>
<div id="craftingtable"><div id="craftingarrow"></div></div>
<div id="inventory"></div>
<div class="player " id="playerStats" onmouseenter="makeSteveToolTip()" onmouseleave =
"leaveElement()"></div>
<div id="coins" onmouseenter="if(session.settings.KcoinsNotation)makeToolTip('Coins: ' + steve.coins.formateComas().color('yellow') )" onmouseleave="leaveElement()"><div id="coinspicture"></div><p id="coinstext"></p></div>
<div id="backpacks"> <p id="backpacks0">Backpacks</p><input id="backpackSeach" onfocus="removeKeysEvent();formBackPackContains()" onblur="addKeysEvent()" oninput="highLightBackPacks()" onclick="playClickSound()" oncontextmenu="wipeInput(this); backpackContains.set('',backPacksInGui); highLightBackPacks(); return false"></div>
<div id="armorgui"></div>
<div id="skills" style="display: none;"></div>
<div id="collections" style="display: none;"><h1 style="text-align: center;">Collections</h1></div>
<div id = "machines"></div>
<div id="guibuttons">
<button id="collectionsbutton" onclick="collectionGui.open();playClickSound()" onmouseenter="makeToolTip('collections')" onmouseleave =
"leaveElement()"></button>
<button id="skillsbutton" onclick="skillGui.open();playClickSound()" onmouseenter="makeToolTip('skills')" onmouseleave =
"leaveElement()"></button>
<button id="accessorybagbutton" onclick="steve.accessorybag.gui.open();playClickSound()" onmouseenter="makeToolTip('accessorybag')" onmouseleave =
"leaveElement()"></button>
</div>
<div id="accessorybag"><p> Accessories</p></div>
<div id="villagerGui"><p id="villagerName"></p></div>
<div id="trashcan" class="guiSlot" onclick="deleteItemInCursor()" onmouseenter="makeToolTip(color('Trashcan','green') + br + color('WARNING','red') + ', removed items can`t be restored')" onmouseleave =
"leaveElement()"></div>
</div></span>
<button id="settingsButton" onclick="if(activeGui.name =='settings'){
mapGui.open(); isGuiOpen = false;
}else
{
settingsGui.open(); isGuiOpen = true;
} playClickSound()" onmouseenter="makeToolTip('Settings')" onmouseleave =
"leaveElement()"></button>
<div id="settings">
<div id="accountselect" class="settingsblock">Change Account<br><select id="accounts"onclick="playClickSound()" onchange="changeAccount(this.value)"></select></div>
<div id="accountdelete" class="settingsblock">Delete Account<br><select onclick="playClickSound()" id="accountsToDelete" onchange="deleteAccount(this)"></select></div>
<div onclick="changeNick()" class="settingsblock button">Change Your Nickname</div>
<div class="settingsblockbig">
<input type="checkbox" class="settingsCheckBox" id="shopPriceCheckBox" name="shopPrice" onchange="if(this.checked) session.settings.fullStackPrice = true; else session.settings.fullStackPrice = false; ">
<label for="shopPrice">Show Price Of Full Stack</label>
<br>
<input type="checkbox" class="settingsCheckBox" id="coinsNotationCheckbox" name="coinsNotation" onchange="if(this.checked) session.settings.KcoinsNotation = true; else session.settings.KcoinsNotation = false; steve.addCoins(0) ">
<label for="coinsNotation">Change Coins Notation</label>
<br>
<input type="checkbox" class="settingsCheckBox" id="obitainedCheckBox" name="obitainedCheckBox" onchange="if(this.checked) session.settings.obitained = true; else session.settings.obitained = false; ">
<label for="obitainedCheckBox">Show when item was obtained</label>
</div>
<div onclick="changeBodyColor()" class="settingsblock button">Change Background Color</div>
<div onclick="changeFont()" class="settingsblock button">Change Your Font<br> <a href="https://www.w3schools.com/cssref/css_websafe_fonts.asp" target="_blank">Possible Fonts</a> </div>
<div class="settingsblock button" onclick="changeSkin()" onmouseenter="makeToolTip('Type Default To Get Normal Skin')" onmouseleave =
"leaveElement()">Change Skin</div>
<div class="settingsblock">
<p id="volumeP">Volume: 50</p>
<input type="range" min="0" max="100" value="50" class="slider" id="musicRange" oninput="setVolume(this.value)">
</div>
<div class="settingsblockMedium" onmouseleave="leaveElement()"
onmouseenter="makeToolTip('After how many enchants <br>description will be hidden')">
<p id="enchDesc">Enchant Description Limit : 4</p>
<input type="range" min="0" max="10" value="4" class="slider" id="enchDescRange" oninput="session.settings.enchDescLimit = this.value;e.enchDesc.innerHTML = 'Enchant Description Limit : ' + this.value">
</div>
<div class="settingsblock" >
<p id="fontExample">ToolTip FontSize: 25</p>
<input type="range" min="10" max="50" value="25" class="slider" id="fontRange" oninput="setToolTipFontSize(this.value/10)" onmouseenter="makeToolTip('example<br>Defense: 20')" onmouseleave =
"leaveElement()">
</div>
<a href="https://discord.gg/8sSTpAZ7NH" target="_blank" id="discord"></a>
</div>
<div id="editmode">
<div id="mapsGui" ></div>
<div id="blocksSelector"><button id="fill3x3" class="blockselector" onclick="turnButton(this.id,0)"></button>
<!-- <button id="fillVericalLine" class="blockselector" onclick="turnButton(this.id,1)"></button>
<button id="fillHorizontalLine" class="blockselector" onclick="turnButton(this.id,2)"></button> -->
</div>
<button id="floormode" onclick="floormode = +!floormode; this.style.backgroundColor = floormode ? 'green' : 'red' ">F</button>
<select id="fillwidthselector">
<option value="3">3</option>
<option value="5">5</option>
<option value="7">7</option>
<option value="9">9</option>
<option value="11">11</option>
</select>
<button id="randomfill" onclick="randomfill(this)">100%</button>
<select id="biomes" style="display:none" onchange="setBiome()">
</select>
<!-- <button id="selectLocation" onclick="setLocation()" onmouseenter="currentmap.location == null ? '' :makeTextToolTip(currentmap.location)" onmouseleave =
"leaveElement()">L</button> -->
<button id="saveMap" onclick='
saveMap()'>S</button>
<!-- <button id="openMaps" onclick="OpenMapGui()">M</button> -->
</div>
<!-- <button id="switchmode" onclick="switchmode()">Switch</button> -->
<div id="Location"></div>
<!-- <script>window.addEventListener("error", handleError, true);
function handleError(evt) {
if(Session.nick != "admin")
if (evt.message) { // Chrome sometimes provides this
alert("Lewis fucked something \nPlease Use F12 to open console \nand send error in discord LewisSaber#7231");
} else {
alert("Lewis fucked something \nPlease Use F12 to open console \nand send error in discord LewisSaber#7231");
}
}
</script> -->
<script src="jquery-3.6.0.min.js"></script>
<script src="notify.js"></script>
<script src="howler.js-2.2.3/howler.js-2.2.3/src/howler.core.js"></script>
<script src="ElemCreator.js"></script>
<script src="Skills&Collections.js"></script>
<script src="BasicClasses.js"></script>
<script src="playerClass.js"></script>
<script src="Classes.js"></script>
<script src="Crafting.js"></script>
<script src="maps.js"></script>
<script src="script.js"></script>
<script src="villagerTrades.js"></script>
<!-- <script>LOADING()</script> -->
<script>loadmap()</script>
</body>