-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailor.cmd
executable file
·200 lines (167 loc) · 3.14 KB
/
tailor.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
debuglevel 5
var item %1
var type cloth
var itemDesc
var count 1
var current_count 0
var primary.container $lw.container
var sewspeed sew
if_2 then
{
var count %2
}
goto %item
small.padding:
var item padding
var itemDesc some small cloth padding
gosub book 1
goto %sewspeed
large.padding:
var item padding
var itemDesc some large cloth padding
gosub book 1
goto %sewspeed
socks:
var itemDesc some cloth socks
gosub book 2
goto %sewspeed
armband:
var itemDesc a cloth armband
gosub book 2
goto %sewspeed
knap:
var itemDesc a cloth knapsack
gosub book 3
var sewspeed sewfast
goto %sewspeed
haver:
var itemDesc a cloth haversack
gosub book 3
goto %sewspeed
#0-50
ankleband:
var itemDesc a leather ankleband
var type leather
gosub book 7
goto %sewspeed
# 0-75
eyepatch:
var itemDesc a leather eyepatch
var type leather
gosub book 7
goto %sewspeed
# 75-80
shoes:
var itemDesc some leather shoes
var type leather
gosub book 7
goto %sewspeed
# 80-?
hat:
var itemDesc a leather hat
var type leather
gosub book 7
goto %sewspeed
# 100-?
sash:
var itemDesc a cloth sash
gosub book 2
goto %sewspeed
# 125-?
bag:
var itemDesc a cloth bag
gosub book 3
goto %sewspeed
towel:
var itemDesc a cloth towel
gosub book 3
var sewspeed sewfast
goto %sewspeed
blanket:
var itemDesc a cloth blanket
gosub book 3
goto %sewspeed
# 500-700?
rucksack:
var itemDesc a cloth rucksack
gosub book 3
goto %sewspeed
# 700-?
belt:
var itemDesc a cloth mining belt
gosub book 3
goto %sewspeed
sbelt:
var itemDesc a cloth survival belt
gosub book 3
var item belt
goto %sewspeed
fbelt:
var itemDesc a cloth survival belt
gosub book 3
var sewspeed sewfast
var item belt
goto %sewspeed
fpad:
var itemDesc a cloth saddle pad
gosub book 3
var sewspeed sewfast
var item pad
goto %sewspeed
netting:
var itemDesc reinforced netting
var sewspeed instructions
var item netting
goto %sewspeed
outfit:
var itemDesc outfit
var sewspeed instructions
var item netting
goto %sewspeed
book:
var chapter $1
put get my tailoring book
pause
put turn my book to chapter %chapter
put read my book
matchre stowbook Page (\d+): %itemDesc
matchwait 3
goto error
stowbook:
var page $1
put turn my book to page %page
pause
#put stow t book
return
get.cloth:
pause 0.5
put put my %item in my %primary.container
put get my %type in my %primary.container
waitfor You get
goto %sewspeed
sew:
send .lw %item
waitforre ^LW DONE
pause 0.5
goto checkCount
sewfast:
send .lwfast %item
waitforre ^LW DONE
pause 0.5
goto checkCount
instructions:
send .lwfast %item instructions
waitforre ^LW DONE
pause 0.5
goto checkCount
checkCount:
math current_count add 1
if (%current_count < %count) then goto get.cloth
goto done
error:
echo
echo *** Could not match item description: %itemDesc ***
echo
exit
done:
put #parse TAILOR DONE