-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMinecraftDungeons.gpc
66 lines (56 loc) · 1.03 KB
/
MinecraftDungeons.gpc
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
#pragma METAINFO("Minecraft Dungeons", 1, 0, "Moris Doratiotto")
int combo_toggle = FALSE;
main {
if(event_release(BUTTON_8)){
combo_toggle = !combo_toggle;
}
if(combo_toggle){
combo_run(auto_healing);
combo_run(auto_hit);
combo_run(auto_arrow);
combo_run(activate_skills);
}
}
// heal every 2s
combo auto_healing {
// press L: health
set_val(BUTTON_7,100);
wait(40);
set_val(BUTTON_7,0);
wait(2000);
}
// hit every 100ms
combo auto_hit {
// press A: hit
set_val(BUTTON_15,100);
wait(40);
set_val(BUTTON_15,0);
wait(100);
}
// fire arrow every 7s
combo auto_arrow {
// press A: hit
set_val(BUTTON_5,100);
wait(40);
set_val(BUTTON_5,0);
wait(7000);
}
// activate all skills every 4s
combo activate_skills {
int delay = 3000;
// press B: skill 1
set_val(BUTTON_16,100);
wait(40);
set_val(BUTTON_16,0);
wait(delay);
// press Y: skill 1
set_val(BUTTON_17,100);
wait(40);
set_val(BUTTON_17,0);
wait(delay);
// press X: skill 1
set_val(BUTTON_14,100);
wait(40);
set_val(BUTTON_14,0);
wait(delay);
}