forked from RattlesHyper/TrafficerMC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
527 lines (526 loc) · 28.2 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="./assets/style/style.css">
</head>
<body>
<div class="titlebar draggable">
<div class=" center-elements">
<img class="icon-sm"src="./assets/icons/app/icon.png">
<label>TrafficerMC</label>
<label id="topBarVersion" class="p-1"></label>
</div>
<div class="nodrag center-elements">
<img id="btnMinimize" class="btn minimize" src="./assets/icons/app/minus.svg">
<img id="btnClose" class="btn close" src="./assets/icons/app/x.svg">
</div>
</div>
<div class="sidebar" >
<ul class="flex-colum flex tab-selectors" style="border: none; opacity: 1;">
<button class="button button-selected" data-target=".tab-general">General</button>
<button class="button" id="btnBotting" data-target=".tab-botting">Botting</button>
<button class="button" data-target=".tab-settings">Settings</button>
<button class="button" data-target=".tab-about">About</button>
</ul>
</div>
<div class="contentArea">
<div id="general" class="tab-functsBtn tab-general">
<div class="flex p-4">
<span class="label">
<label class="label-text">Username:</label>
</span>
<input id="botUsename" class="input" type="text" placeholder="Name Default random">
<img src="./assets/icons/app/info.svg" class="icon-sm hpop" data-popup="popupName" >
<div class="popup" id="popupName">
<span class="label-text">Name Randomizer</span>
<br>
<span>Usage: put options in Username input</span>
<br>
<span>options: (LEGIT), (SALT)</span>
<br>
<span>(LEGIT) Generates legit names</span>
<br>
<span>(SALT) Generates 4 random letters</span>
<br>
<span>can be used multiple times in name</span>
<br>
<span>or with other text</span>
<br>
<span>for example: Text_(SALT)</span>
</div>
</div>
<div class="p-4">
<label class="label-text">Auth type:</label>
</span>
<select id="botAuthType" class="select">
<option value="">Cracked</option>
<option value="microsoft">Microsoft</option>
</select>
</div>
<div class="flex p-4">
<span class="label">
<label class="label-text">Server address:</label>
</span>
<input id="botConnectIp" class="input" type="text" placeholder="localhost:25565">
<select id="botversion" class="select">
<option value="">Version Auto</option>
<option value="1.19.4">1.19.4</option>
<option value="1.19.3">1.19.3</option>
<option value="1.19.2">1.19.2</option>
<option value="1.19.1">1.19.1</option>
<option value="1.19">1.19</option>
<option value="1.18.2">1.18.2</option>
<option value="1.18.1">1.18.1</option>
<option value="1.18">1.18</option>
<option value="1.17.1">1.17.1</option>
<option value="1.17">1.17</option>
<option value="1.16.5">1.16.5</option>
<option value="1.16.4">1.16.4</option>
<option value="1.16.3">1.16.3</option>
<option value="1.16.2">1.16.2</option>
<option value="1.16.1">1.16.1</option>
<option value="1.16">1.16</option>
<option value="1.15.2">1.15.2</option>
<option value="1.15.1">1.15.1</option>
<option value="1.15">1.15</option>
<option value="1.14.4">1.14.4</option>
<option value="1.14.3">1.14.3</option>
<option value="1.14.1">1.14.1</option>
<option value="1.14">1.14</option>
<option value="1.13.2">1.13.2</option>
<option value="1.13.1">1.13.1</option>
<option value="1.13">1.13</option>
<option value="1.12.2">1.12.2</option>
<option value="1.12.1">1.12.1</option>
<option value="1.12">1.12</option>
<option value="1.11.2">1.11.2</option>
<option value="1.11">1.11</option>
<option value="1.10.2">1.10.2</option>
<option value="1.10.1">1.10.1</option>
<option value="1.10">1.10</option>
<option value="1.9">1.9</option>
<option value="1.8">1.8.x</option>
</select>
</div>
<div class="flex p-4">
<span class="label">
<label class="label-text">Max accounts:</label>
</span>
<input id="botCount" class="input" type="number" min="1" placeholder="1">
</div>
<div class="flex p-4">
<span class="label">
<label class="label-text">Join delay:</label>
</span>
<input id="joinDelay" class="input" type="number" min="0" placeholder="1000 (ms)">
</div>
<div class="flex p-4">
<span class="label">
<label class="label-text">Join message:</label>
</span>
<input id="joinMessage" class="input" type="text" min="0" placeholder="/register">
</div>
<div class="flex flex-colum p-4">
<span class="">
<button id="btnStart" class="button" onclick="document.getElementById('btnBotting').click()">Start</button>
<button id="btnStop" class="button">Stop</button>
</span>
</div>
</div>
<div id="botting" class="tab-functsBtn tab-botting" style="display:none">
<div class="flex">
<div class="pl-4">
<span>Bots list</span>
<ul id="botList" class="flex-colum" style="height: 11pc; width:15pc; margin-top: 0;"></ul>
<div style="display: flex; position: relative; top: -12px; width:15pc;">
<button style="flex: 1;" class="button" onclick="selectAll()">All</button>
<button style="flex: 1;" class="button" onclick="selectRemove()">None</button>
</div>
<ul id="ul-options" class="flex-colum input-group selectors" style="height: 14pc; width:15pc; position: relative; top: -20px; opacity: 1;">
<button class="button button-selected" data-target=".controls" >Controls</button>
<button class="button" data-target=".chat" >Chat</button>
<button class="button" data-target=".spam" >Spam</button>
<button class="button" data-target=".setHotbatSlot">Set hotbar slot</button>
<button class="button" data-target=".clickWindow">Click window</button>
<button class="button" data-target=".moveDirection">Control move</button>
<button class="button" data-target=".followPlayer">Follow Player</button>
<button class="button" data-target=".look">Look</button>
<button class="button" data-target=".drop">Drop</button>
<button class="button" data-target=".antiafk">Anti-AFK</button>
<button class="button" data-target=".killaura">Killaura</button>
</ul>
</div>
<div id="main-options" class="pl-4">
<div id="windowName">
<span id="botOpenWindowName">Window</span>
</div>
<ul id="botOpenWindow" class="flex-colum" style="height: 11pc; width:15pc; margin: 0;"></ul>
<div id="controls" class="controls functsBtn" >
<div class="input-group flex-colum center-elements">
<span class="label">
<label class="label-text">Main controls</label>
</span>
<div class="input-group flex-colum">
<button id="btnDisconnect" class="button">Disconnect</button>
<button id="btnReconnect" class="button">Reconnect</button>
<button id="btnUseHeld" class="button">Use Held</button>
<button id="btnCloseWin" class="button">Close Window</button>
<button id="btnStartScript" class="button">Start script</button>
</div>
</div>
</div>
<div id="chat" class="chat functsBtn" style="display:none">
<div class="input-group flex-colum center-elements">
<span class="label">
<label class="label-text">Send message</label>
</span>
<div class="input-group flex-colum">
<input id="chatMessage" class="input" type="text" placeholder="Message">
<button id="btnChatMessage" class="button mu-4">Send</button>
</div>
</div>
</div>
<div id="spam" class="spam functsBtn" style="display:none">
<div class="input-group center-elements flex-colum">
<span class="label">
<label class="label-text">Spam message</label>
</span>
<div class="input-group flex-colum">
<input id="spamMessageBox" class="input" type="text" placeholder="Message">
<input id="spamDelay" class="input" type="number" min="0" placeholder="Spam Delay 1000 (ms)">
</div>
<div class="flex center-elements mu-4">
<button id="startSpam" class="button">Start</button>
<button id="stopSpam" class="button">Stop</button>
</div>
<div class="flex mu-4">
<label class="container">
<label style="position: relative; top: -3px">Anti-spam</label>
<input id="checkAntiSpam" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="input-group flex-colum">
<input id="antiSpamLength" class="input" type="number" min="1" placeholder="Random letters (Default 5)">
</div>
</div>
</div>
<div id="setHotbatSlot" class="setHotbatSlot functsBtn" style="display:none">
<div class="input-group flex-colum">
<div class="center-elements">
<span class="label">
<label class="label-text">Set hotbar slot</label>
</span>
</div>
<div class="input-group">
<div class="input-group center-elements">
<div class="flex">
<select id="hotbarSlot" class="input">
<option class="button" value="0">Slot 1</option>
<option class="button" value="1">Slot 2</option>
<option class="button" value="2">Slot 3</option>
<option class="button" value="3">Slot 4</option>
<option class="button" value="4">Slot 5</option>
<option class="button" value="5">Slot 6</option>
<option class="button" value="6">Slot 7</option>
<option class="button" value="7">Slot 8</option>
<option class="button" value="8">Slot 9</option>
</select>
<button id="btnSetHotbar" class="button">Set</button>
</div>
</div>
</div>
</div>
</div>
<div id="clickWindow" class="clickWindow functsBtn" style="display:none">
<div class="center-elements">
<span class="label">
<label class="label-text">Click window slot</label>
</span>
</div>
<div class="input-group flex-colum">
<input id="windowValue" type="number" class="input" placeholder="Window slot">
<select id="clickWindowLorR" class="input">
<option value="0" class="button">Left click</option>
<option value="1" class="button">Right click</option>
</select>
<button id="btnWindowClick" class="button">Click</button>
</div>
</div>
<div id="moveDirection" class="moveDirection functsBtn" style="display:none">
<div class="input-group flex-colum center-elements">
<div>
<span class="label">
<label class="label-text">Control Move</label>
</span>
</div>
<div class="input-group flex-colum">
<select id="controlValue" class="select">
<option value="forward">Forward</option>
<option value="back">Backwards</option>
<option value="left">Left</option>
<option value="right">Right</option>
<option value="jump">Jump</option>
<option value="sneak">Sneak</option>
</select>
</div>
<div class="input-group mu-4">
<button id="startControl" class="button">Start</button>
<button id="stopControl" class="button">Stop</button>
</div>
</div>
</div>
<div id="followPlayer" class="followPlayer functsBtn" style="display:none">
<div class="input-group flex-colum center-elements">
<div>
<span class="label">
<label class="label-text">Follow Player</label>
</span>
</div>
<div class="input-group flex-colum">
<input id="followTargetPlayer" class="input" type="text" placeholder="Player Name">
</div>
<div class="input-group mu-4">
<button id="startFollow" class="button">Start</button>
<button id="stopFollow" class="button">Stop</button>
</div>
</div>
</div>
<div id="look" class="look functsBtn" style="display:none">
<span class="label">
<label class="label-text">Look at direction</label>
</span>
<div class="input-group">
<select id="lookValue" class="select">
<option value="0">North</option>
<option value="3">South</option>
<option value="-1.5">East</option>
<option value="1.5">West</option>
</select>
<button id="setLook" class="button">Set</button>
</div>
</div>
<div id="drop" class="drop functsBtn" style="display:none">
<div class="input-group flex-colum center-elements">
<span class="label">
<label class="label-text">Drop items</label>
</span>
<div class="input-group flex-colum ">
<input id="dropValue" class="input" type="number" placeholder="Inventory slot (Empty = all)">
<button id="btnDrop" class="button">Drop</button>
</div>
</div>
</div>
<div id="antiafk" class="antiafk functsBtn" style="display:none">
<div class="input-group flex-colum center-elements">
<span class="label">
<label class="label-text">Anti-AFK</label>
</span>
<div class="input-group flex-colum">
<button id="startAfk" class="button">Start</button>
<button id="stopAfk" class="button">Stop</button>
</div>
</div>
</div>
<div id="killaura" class="killaura functsBtn" style="display: none" >
<div class="input-group flex-colum center-elements">
<span class="label">
<label class="label-text">Killaura</label>
</span>
<div class="input-group flex-colum">
<label class="container">
<label>Toggle killaura</label>
<input id="toggleka" type="checkbox">
<span class="checkmark"></span>
<hr>
</label>
<span>Range</span>
<input id="kaRange" type="range" min="1" max="6" value="1" class="slider">
<div class="flex" style="margin-top: 10px; position: relative; left: -35px;" >
<label class="container">
<label>Delay</label>
</label>
<input id="kaDelay" type="number" min="0" class="input-sm m-1" placeholder="(500ms)">
</div>
<div class="flex">
<label class="container" style="margin-top: 10px;" >
<label>Look at target</label>
<input id="toggleKaLook" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="flex">
<label class="container" style="margin-top: 10px;" >
<label>Player</label>
<input id="kaTp" type="checkbox">
<span class="checkmark"></span>
</label>
<label class="container" style="margin-top: 10px; margin-left: 10px;" >
<label>Vehicle</label>
<input id="kaTv" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="flex">
<label class="container" style="margin-top: 10px;" >
<label>Mob</label>
<input id="kaTm" type="checkbox">
<span class="checkmark"></span>
</label>
<label class="container" style="margin-top: 10px; margin-left: 30px;" >
<label>Animal</label>
<input id="kaTa" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
</div>
</div>
</div>
</div>
<div class="flex-colum pl-4">
<ul id="chatBox" style="height: 25pc; width:20pc; user-select: text;"></ul>
<div class="flex center-elements">
<label class="container">
<label>Show chat</label>
<input id="showChatCheck" type="checkbox" checked>
<span class="checkmark"></span>
</label>
<button class="button m-4" onclick="clearChat()">Clear logs</button>
</div>
</div>
</div>
</div>
<div id="settings" class="tab-functsBtn p-4 tab-settings" style="display: none;">
<div class="flex">
<div class="border" >
<span class="label" style="position: relative; top:-25px">
<label class="label-text">Bot settings</label>
</span>
<div class="flex">
<label class="container">
<label >Linear</label>
</label>
<input id="linearValue" type="number" min="0" class="input-sm m-1" placeholder="delay (0ms)">
<img src="./assets/icons/app/info.svg" class="icon-sm hpop" data-popup="popupLinear" >
<div class="popup" id="popupLinear">
<span>Delay between each bots</span>
</div>
</div>
<div class="flex">
<label class="container">
<label>Auto reconnect</label>
<input id="checkboxAutoRc" type="checkbox">
<span class="checkmark"></span>
</label>
<input id="reconDelay" type="number" min="0" class="input-sm m-1" placeholder="delay (0ms)">
</div>
<label class="container">
<label>Sprint</label>
<input id="checkboxSprint" type="checkbox">
<span class="checkmark"></span>
</label>
<div class="flex">
<label class="container">
<label>Script file</label>
<input id="scriptCheck" type="checkbox">
<span class="checkmark"></span>
</label>
<input id="scriptPath" type="file" accept=".txt" class="pl-4">
</div>
<div class="flex">
<label class="container">
<label>Account file</label>
<input id="accountFileCheck" type="checkbox">
<span class="checkmark"></span>
</label>
<input id="accountFilePath" type="file" accept=".txt" class="pl-4">
</div>
</div>
<div class="border m-4" style="width: 275px;">
<span class="label" style="position: relative; top:-25px">
<label class="label-text">App settings</label>
</span>
<div class="flex">
<label class="container">
<label>Connect sound</label>
<input id="connectSound" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<label class="container">
<label>Disconnect sound</label>
<input id="disconnectSound" type="checkbox">
<span class="checkmark"></span>
</label>
<label class="container">
<label>Error sound</label>
<input id="errorSound" type="checkbox">
<span class="checkmark"></span>
</label>
<div class="p-4">
<label>Theme</label>
<div class="flex">
<button class="button" id="btnSaveTheme">Save</button>
<input id="customCssFile" type="file" accept=".css">
</div>
</div>
</div>
</div>
<div class="border mu-4" style="width: 420px;">
<span class="label" style="position: relative; top:-25px">
<label class="label-text">Proxy settings</label>
</span>
<div class="flex">
<label class="container">
<label>Proxy file</label>
<input id="useProxy" type="checkbox">
<span class="checkmark"></span>
</label>
<input id="proxyFilePath" type="file" accept=".txt" class="pl-4">
</div>
<label class="container">
<label>Random proxy order</label>
<input id="proxyOrderRnd" type="checkbox">
<span class="checkmark"></span>
</label>
<label class="container">
<label>Proxy type</label>
<select id="proxyType" class="select button">
<option value="4">SOCKS 4</option>
<option value="5">SOCKS 5</option>
</select>
</label>
</div>
</div>
<div id="about" class="tab-functsBtn tab-about" style="width: 800px; display:none">
<div class="m-4">
<h1>Info</h1>
<label>Author: RattlesHyper</label>
<div class="flex">
<label>Version:</label>
<label id="aboutPageVersion" class="m-1"></label>
</div>
<hr class="mu-4">
<div class="flex center-elements">
<img src="./assets/icons/app/icon.png" style="width: 50px;">
<h1>TrafficerMC</h1>
</div>
<div class="flex center-elements">
<img class="icon" src="./assets/icons/app/discord.svg" onclick="shell.openExternal('https://discord.gg/m6b8Pw4NR8')">
<img class="icon" src="./assets/icons/app//youtube.svg" onclick="shell.openExternal('https://youtube.com/rattleshyper')">
<img class="icon" src="./assets/icons/app/github.svg" style="width: 40px;" onclick="shell.openExternal('https://github.com/RattlesHyper/TrafficerMC')">
</div>
</div>
</div>
</div>
<div class="downbar flex">
<span class="label"><img src="./assets/icons/app/user.svg" class="icon-sm"><label>Bots:</label><label id="downbarBotCount" class="m-1">0</label></span>
<span class="label"><img src="./assets/icons/app/clock.svg" class="icon-sm"><label>Uptime:</label><label id="uptime" class="m-1">00:00</label></span>
<span id="outdatedVersion" class="label" style="display:none" onClick="shell.openExternal('https://github.com/RattlesHyper/TrafficerMC/releases')"><img src="./assets/icons/app/alert-triangle.svg" class="icon-sm error-icon"><label class="m-1 error-text" style="cursor: pointer">Outdated version</label></span>
</div>
<img class="bgimg" width="100%" >
<ul id="listul" style="pointer-events: none; position: fixed; bottom: 10px; right: 10px; border: none; opacity: 1; background: transparent; " dir="rtl" ></ul>
</body>
<script src="./assets/js/botMain.js"></script>
<script src="./assets/js/htmlcontrol.js"></script>
</html>