-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcombo.cmd
More file actions
117 lines (107 loc) · 2.94 KB
/
combo.cmd
File metadata and controls
117 lines (107 loc) · 2.94 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
include library.cmd
action (combo) on
var alertwindow $alertwindow
var waitstringgood ^\.\.\.wait|^Sorry\, you may only type ahead
var waitstringbad ^You are still stunned|^You can\'t do that while|^You don\'t seem to be able|Between the ringing in your head|Strangely, you don't feel like fighting right now\.|Your desire to prepare this offensive spell suddenly slips away\.
var maneuverlist $maneuverlist
var cleaveweapon $cleaveweapon
var crashweapon $crashweapon
var twirlweapon $twirlweapon
var impaleweapon $impaleweapon
var doublestrikeweapon $doublestrikeweapon
var doublestrikeweapon2 $doublestrikeweapon2
var powershotweapon $powershotweapon
var powershotammo $powershotammo
var shielditem $shielditem
MAIN:
#TESTING_NEXT_MANEUVER_OFF_COOLDOWN
gosub MANEUVERTEST
###CHECKING_WEAPON
var manename %maneuverlist(%maneuver)
var maneweapon %%manenameweapon
if ("%manename" = "doublestrike") then
{
var offhandweapon %doublestrikeweapon2
put #echo Yellow Manuever %maneuver: %manename (%maneweapon) (%offhandweapon)
}
else
{
if ("%manename" = "palmstrike") then put #echo Yellow Manuever %maneuver: %manename
else put #echo Yellow Manuever %maneuver: %manename (%maneweapon)
}
#IS_WEAPON_PRESENT
if ("$righthand" != "Empty") then
{
var weaponexist 1
#IS_WEAPON_CORRECT_TYPE
if (matchre("$righthandnoun", "%maneweapon")) then var weaponcorrect 1
else var weaponcorrect 0
}
else
{
var weaponexist 0
var weaponcorrect 0
}
if ("%manename" = "doublestrike") then
{
if ("$lefthand" != "Empty") then
{
var offhandexists 1
if (matchre("$lefthandnoun", "%offhandweapon")) then var offhandcorrect 1
else var offhandcorrect 0
}
else
{
var offhandexists 0
var offhandcorrect 0
}
}
#WEARING_SHIELD
if (matchre("$lefthand", "%shielditem")) then gosub WEARITEM %shielditem
#GETTINGWEAPONS
#MAIN_WEAPON
if ("%manename" = "palmstrike") then
{
gosub STOWALL
}
else
{
#SHAPE_WEAPON-WRONG_SKILL
if (%weaponcorrect = 0) then
{
if (%weaponexists = 1) then gosub STOW right
if (matchre("$lefthandnoun", "%maneweapon")) then
{
gosub SWAP
var offhandexists 0
}
else gosub GETITEM %maneweapon
}
}
#OFFHAND
if ("%manename" = "doublestrike") then
{
if (%offhandcorrect = 0) then
{
if (%offhandexists = 1) then gosub STOW left
}
gosub GETITEM %offhandweapon
}
else
{
if ("%manename" = "powershot") then
{
if (!matchre("$lefthandnoun", "%powershotammo")) then gosub STOW left
}
else gosub STOW left
}
#POWERSHOT_AMMO
if ("%manename" = "powershot") then
{
gosub GETITEM %powershotammo
var ubowmmo %powershotammo
gosub BOWLOAD %powershotammo
}
#EXECUTE_MANEUVER
gosub ATTACKACMCOMBO %manename
exit