-
Notifications
You must be signed in to change notification settings - Fork 1
/
ambush.cmd
84 lines (68 loc) · 1.97 KB
/
ambush.cmd
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
#[Combat]: Ambushing at melee
debuglevel 5
var attack.method backstab
action var guild $1;put #var guild $1 when Guild:\s+(Barbarian|Bard|Cleric|Commoner|Empath|Moon Mage|Necromancer|Paladin|Ranger|Thief|Trader|Warrior Mage)$
action var circle $1;put #var circle $1 when Circle:\s+(\d+)$
put info
waitforre ^Debt:$
put awaken
Check:
if (("%guild" = "Thief" || "%guild" = "Ranger") && (%circle >= 50)) then goto Stalk
else goto Hide
Hide:
match Hide ...
match Hide Your attempt to hide fails.
match Hide notices your
match Stalk You blend in with your surroundings,
match Stalk You melt into the background,
match Stalk Eh? But you're already hidden!
put hide
matchwait
Stalk:
match Stalk ...
match ADV It would help if you were closer
matchre Jab You must be hidden first|already stalking
match Ambush You move into position to stalk
match Ambush You are already
match Hide try being out of sight
match Stalk Roundtime
put stalk
matchwait
Ambush:
match Ambush ...
match ADV It would help if you were closer
match ADV close enough
match Check It's awfully hard to ambush
matchre DebilCheck You leap|You slip|Roundtime
match Stalk You must be hidden
matchre SetAmbush You can't backstab that|political backbiting|You'll need something a little lighter|Ambush what?
put %attack.method
matchwait
SetAmbush:
var attack.method attack
goto Ambush
Parry:
match Parry ...
match Hide You are
match Hide You move
put parry
matchwait
Jab:
match Jab ...
match Check you
match END There is nothing else
put attack
matchwait
ADV:
match Ambush You close to melee
match Check stops you from advancing any farther!
put advance
matchwait
DebilCheck:
if ("%guild" = "Thief" && $Debilitation.LearningRate >= 34 && $Backstab.LearningRate >= 34) then goto END
goto Check
END:
echo
echo *** Debilitation Locked! ***
echo
put #parse AMBUSH DONE