-
Notifications
You must be signed in to change notification settings - Fork 0
/
dscan_40dens.ts
95 lines (78 loc) · 2.45 KB
/
dscan_40dens.ts
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
#dscan shot
#fires at trader densities
:vars
setVar $count 0
setVar $script "(photon) [custom d_scan]"
:activate
killalltriggers
echo "*activate ]*"
setTextOutTrigger activate_script :main "]"
pause
:main
killalltriggers
getWord CURRENTLINE $location 1
if ($location <> "Command")
echo "*need command prompt*"
halt
end
:start
gettext CURRENTLINE $sector "]:[" "] (?"
setVar $warpcount SECTOR.WARPCOUNT[$sector]
setArray $warptotal $warpcount
setArray $arraydens $warpcount
#setArray $arraydens2 $warpcount
#send "'" $script " [d_scan] : active my TA*"
goto :eval
:eval
setVar $count 1
while ($count <= $warpcount)
setVar $warptotal[$count] SECTOR.WARPS[$sector][$count]
add $count 1
end
goto :getinitial
:getinitial
setVar $count 1
send "sd"
waitFor "Select"
goto :denstriggers
:denstriggers
setTextLineTrigger 1 :setsector "==>"
setTextTrigger 2 :doneinitial "Command "
pause
:setsector
killtrigger 1
killtrigger 2
getWord CURRENTLINE $initialdens 4
striptext $initialdens ","
getWord CURRENTLINE $adjsector 2
setVar $arraydens[$count] $initialdens
if ($initialdens = 140) OR ($initialdens = 145) OR ($initialdens = 45) OR ($initialdens = 40) OR ($initialdens = 540) or ($initialdens = 545) OR ($initialdens = 640) or ($initialdens = 645)
goto :fire
end
add $count 1
goto :denstriggers
:doneinitial
killalltriggers
echo "*no targets found*"
goto :activate
:fire
killalltriggers
send " c p y " $adjsector "* q "
send "'" $script " : " $sector " -> " $adjsector "*"
goto :warp_option
:warp_option
killalltriggers
waitfor "(photon)"
echo ansi_15 "***Warp In : " ansi_14 "(Y/N) : "
getConsoleInput $choice SINGLEKEY
if ($choice = "y")
goto :warp_in
elseif ($choice = "n")
goto :activate
else
goto :activate
end
:warp_in
killalltriggers
send " m " $adjsector " * z a 999 * z n f z q z 1 * z q z c z q z c z q z o *"
goto :activate