This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
upgrades.html
executable file
·130 lines (106 loc) · 3.03 KB
/
upgrades.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
<html>
<head>
<title>Upgrades</title>
<link href="style.css" media="all" rel="stylesheet" />
</head>
<body>
<!--
-->
<span class="txtlbl">Ship Upgrades</span>
<br /><br />
<button id="btn1" class="button">Add Warp</button>
<button id="btn2" class="button">Remove Warp</button>
<br /><br />
<button id="btn3" class="button">Add Jump</button>
<button id="btn4" class="button">Remove Jump</button>
<br /><br />
<button id="btn5" class="button">Max Energy to 1500</button>
<button id="btn6" class="button">Max Energy to 1000</button>
<br /><br />
<!--
<button id="btn7" class="button">Max Homings to 20</button>
<button id="btn8" class="button">Max Homings to 10</button>
<br /><br />
<button id="btn9" class="button">Add Front Torpedo Tube</button>
<br /><br />
<button id="btn10" class="button">Auto Engineer disable</button>
<br /><br />
-->
<script src="jquery-1.12.0.min.js"></script>
<script>
server=""; //"http://localhost:8080";
$(document).ready(function(){
$("#btn1").click(function(){
addwarp();
});
$("#btn2").click(function(){
removewarp();
});
$("#btn3").click(function(){
addjump();
});
$("#btn4").click(function(){
removejump();
});
$("#btn5").click(function(){
maxenergy1500();
});
$("#btn6").click(function(){
maxenergy1000();
});
});
$(document).keydown(function(e) {
if(e.which == 49) { //1
addwarp();
}
if(e.which == 50) { //2
removewarp();
}
if(e.which == 51) { //3
addjump(true);
}
if(e.which == 52) { //4
removejump()
}
if(e.which == 53) { //5
maxenergy1500();
}
if(e.which == 54) { //6
maxenergy1000();
}
if(e.which == 55) { //7
loose();
}
if(e.which == 56) { //8
fixhull();
}
});
function addwarp() {
url = server+'/set.lua?setWarpDrive(true)&addCustomMessage("Helms","WarpDriveAdded","Warp Drive has been added to your ship")';
$.get( url );
}
function removewarp() {
url = server+'/set.lua?setWarpDrive(false)&addCustomMessage("Helms","WarpDriveRemoved","Warp Drive has been removed from your ship")';
$.get( url );
}
function addjump() {
url = server+'/set.lua?setJumpDrive(true)&addCustomMessage("Helms","JumpDriveAdded","Jump Drive has been added to your ship")';
$.get( url );
}
function removejump() {
url = server+'/set.lua?setJumpDrive(false)&addCustomMessage("Helms","JumpDriveRemoved","Jump Drive has been removed from your ship")';
$.get( url );
}
function maxenergy1500() {
var mss = "maxenergy1500";
url = server+'/set.lua?setEnergyLevelMax("1500")&addCustomMessage("Engineering","MaxEnergy1500","Max Energy is now 1500")';
$.get( url );
}
function maxenergy1000() {
var mss = "maxenergy1000";
url = server+'/set.lua?setEnergyLevelMax("1000")&addCustomMessage("Engineering","MaxEnergy1000","Max Energy is now 1000")';
$.get( url );
}
</script>
</body>
</html>