-
Notifications
You must be signed in to change notification settings - Fork 0
/
EaterOfWorlds.java
executable file
·48 lines (39 loc) · 1.24 KB
/
EaterOfWorlds.java
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
import com.swath.*;
import com.swath.cmd.*;
/**
* Sector Fig Dumper
*
* Used to move fighters into a sector either grabbing them from a planet or buying them
* from Sector 1.
*
* @author Mind Dagger
*/
public class EaterOfWorlds extends UserDefinedScript {
public String getName() {
return "Eater Of Worlds";
}
public boolean initScript() throws Exception {
if (!atPrompt(Swath.COMMAND_PROMPT)) return false;
return true;
}
public boolean runScript() throws Exception {
SendSSRadioMessage.exec("Running Eater Of Worlds Script..");
while(Swath.ship.genesisTorpedos() > 0){
if(Swath.sector.planets().length < 3){
LaunchGenesisTorpedo.exec("Eating Worlds..Yumm!",Swath.CORPORATE);
}
else{
SendMacro.exec("uyn");
try{
WaitForText.exec("destroyed before you can create one.",100);
SendMacro.exec("Eating Worlds..Yumm!"+"^Mc");
}
catch(Exception e){
}
}
}
return true;
}
public void endScript(boolean finished){
}
}