-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautotarget.tin
182 lines (151 loc) · 3.09 KB
/
autotarget.tin
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
#nop This code was taken from the tintin forum and written by PowerGod and also doctorly. Edited by Bonginc to work with Legends of the Jedi mud. www.legendsofthejedi.com.
#nop http://tintin.sourceforge.net/board/viewtopic.php?t=2439
#nop Still a work in progress.
#nop Things that work: Using the prox command pulls a random target that's in space.
#nop Things to add: choosing the closest ship and targeting it without loosing the current target.
#nop Also have capital ships listed with position listed.
#alias {inf} {info $targets[1]}
#alias {fa} {
face $targets[1]
}
#nop intercom Facing: $targets[1];
#alias {ttt} {
#variable {radarCoords} {};
#variable {pirateShips} {};
#variable {enemyradarCoords} {};
#variable {targets} {};
#variable {time} {};
#variable {partName} {};
#variable {holdLocation} {};
#variable {channelName} {};
#variable {channelNumber} {};
#variable {cargos} {};
#variable {planetCargo} {};
#variable {creditamount} {};
#variable {EnergyBone} {};
#variable {HullBone} {};
#variable {CrewBone} {};
#variable {EnergyBtwo} {};
#variable {HullBtwo} {};
#variable {CrewBtwo} {};
#variable {shipName[1]} {};
show_targets
}
#list split_targets clr
#var split_targets_row 1
#var targets_max_len 18
#function get_split_targets
{
#var result $targets;
#foreach {$targets}
{
#var result $result M T
}
}
#function get_target_len
{
#list targets len result
}
#alias {pc}
{
#list planetCargo ins 1 %0;
#if {@get_target_len{} > $targets_max_len}
{
#list planetCargo del -1
}
}
#alias {cargo}
{
#list cargos ins 1 %0;
#if {@get_target_len{} > $targets_max_len}
{
#list cargos del -1
}
}
#alias {addradarCoords}
{
#list radarCoords ins 1 %0;
#if {@get_target_len{} > $targets_max_len}
{
#list radarCoords del -1
}
}
#alias {enemyradarCoords}
{
#list enemyradarCoords ins 1 %0;
#if {@get_target_len{} > $targets_max_len}
{
#list enemyradarCoords del -1
}
}
#alias {t}
{
#list targets ins 1 %0;
#if {@get_target_len{} > $targets_max_len}
{
#list targets del -1
};
show_targets
}
#alias {pt}
{
#list pirateShips ins 1 %0;
#if {@get_target_len{} > $targets_max_len}
{
#list pirateShips del -1
};
show_targets
}
#alias {dt}
{
#list enemyradarCoords del +1;
#list targets del +1;
show_targets
}
#alias {tf}
{
targ $targets[1]
}
#alias {tt}
{
#echo {Targeting: $targets[1]};
star
}
#alias {jm}
{
jam $targets[1]
}
#alias {stat}
{
status $targets[1]
}
#ali np
{
#list planetCargo ins -1 $planetCargo[1];
#list planetCargo del 1;
#list cargos ins -1 $cargos[1];
#list cargos del 1;
#showme $planetCargo[1];
#showme $cargos[1];
show_targets
}
#ali nt
{
#list enemyradarCoords ins -1 $enemyradarCoords[1];
#list enemyradarCoords del 1;
#list targets ins -1 $targets[1];
#list targets del 1;
show_targets
}
#ali lt
{
#list targets ins 1 $targets[-1];
#list targets del -1;
show_targets
}
#ali pin
{
#list pirateShips ins -1 $pirateShips[1];
#list pirateShips del 1;
show_targets
}