-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutoload.oajs
More file actions
44 lines (36 loc) · 1.11 KB
/
Copy pathAutoload.oajs
File metadata and controls
44 lines (36 loc) · 1.11 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
//#include config.oajs
//#include combat.oajs
// Include nested scripts to make them available from the autoload file
//#include skills/hiding.oajs
//#include skills/lockpicking.oajs
function Autostart() {
Orion.ClientOptionSet("AlwaysRun", 1);
Orion.ClientOptionSet("BlockRunWhileHidden", 1);
Orion.Exec("AutoHealSelf", true);
Orion.Exec("CastBushido", true, ["Lightning Strike", "Confidence"]);
Orion.Exec("CastChivalry", true);
Orion.Exec("WeaponLevelingStats", true);
// Orion.Exec("ToggleSpell", true, ["Momentum Strike"])
}
function test() {
print(Orion.BuffExists(0x75f6));
}
function Fight() {
const target = 0x00047A9F;
const safeX = 1073;
const safeY = 1558;
enemy = Orion.FindObject(target);
while (true) {
if (enemy) {
while (enemy.Hits() < 20) {
Orion.WalkTo(safeX, safeY, enemy.Z());
Orion.Wait(1000);
print("Waiting...");
}
Orion.WalkTo(enemy.X(), enemy.Y(), 1);
Orion.Attack(target);
Orion.Wait(500);
}
Orion.Wait(100);
}
}