-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinit.js
More file actions
59 lines (45 loc) · 1.79 KB
/
init.js
File metadata and controls
59 lines (45 loc) · 1.79 KB
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
import { prepareStats } from "player/train.js";
// init.js
// main script to run when starting game.
/*
if home server ram is sufficient:
sell a small amount of corp shares, if possible
manage coding contracts
manage hacknet servers (default to 1-hour payback time)
manage sleeves
manage bladeburner
manage stock market
crack all servers (can terminate)
create or buy all programs (can terminate)
backdoor faction servers (can terminate)
join factions
farm servers
*/
export async function main(ns) {
await ns.sleep( 0*1000); ns.run("/contracts/find-and-solve.js");
await ns.sleep( 0*1000); ns.run("/sleeves/init.js");
await ns.sleep( 0*1000); ns.run("/corporation/init.js");
// await ns.sleep( 0*1000); ns.run("/gang/manage.js");
await ns.sleep( 1*1000); ns.run("/stanek/deploy.js");
await ns.sleep( 1*1000); ns.run("/share/deploy.js");
await prepareStats(ns, {
"hacking": 10
});
await ns.sleep( 0*1000); ns.run("/net/register-servers.js");
await prepareStats(ns, {
"strength": 5,
"defense": 5,
"dexterity": 10,
"agility": 10
});
await ns.sleep( 0*1000); ns.run("/player/crime.js");
await ns.sleep( 1*1000); ns.run("/player/create-programs.js");
await ns.sleep( 1*1000); ns.run("/player/backdoor-servers.js");
await ns.sleep( 1*1000); ns.run("/player/join-factions.js");
await ns.sleep( 1*1000); ns.run("/bladeburner/progress.ns");
// await ns.sleep( 5*1000); ns.run("/net/buy-server.js");
// await ns.sleep( 5*1000); ns.run("/batch/manage.js", 1, "phantasy", "--moneyPercent", "0.01");
await ns.sleep( 5*1000); ns.run("/hacknet/servers.js"); //, 1, 4, 1);
await ns.sleep( 5*1000); ns.run("/stocks/trader.js");
// await ns.sleep(30*1000); ns.run("/batch/manage.js", 1, "--moneyPercent", "0.01");
}