-
Notifications
You must be signed in to change notification settings - Fork 1
/
forge.cmd
executable file
·139 lines (115 loc) · 2.19 KB
/
forge.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
debuglevel 5
var item %1
var itemDesc
var book weaponsmithing
var count 1
var current_count 0
var primary.container $forging.container
var smithspeed smith
if_2 then
{
var count %2
}
goto %item
dagger:
var itemDesc a metal dagger
gosub book 1
goto %smithspeed
pugio:
var itemDesc a metal pugio
gosub book 1
goto %smithspeed
# 50-125
kris:
var itemDesc a metal kris
gosub book 1
goto %smithspeed
# 100 - 175?
dao:
var itemDesc a metal dao
gosub book 1
goto %smithspeed
rapier:
var itemDesc a metal rapier
gosub book 1
goto %smithspeed
# 100- 175?
gloves:
var itemDesc some metal mail gloves
var book armorsmithing
gosub book 1
goto %smithspeed
# 175 - 275
sabre:
var itemDesc a metal sabre
gosub book 1
goto %smithspeed
scimitar:
var itemDesc a metal scimitar
gosub book 1
goto %smithspeed
tasset:
var itemDesc a metal mail tasset
var book armorsmithing
gosub book 1
goto %smithspeed
# 175 - 275
broadsword:
var itemDesc a metal broadsword
gosub book 2
goto %smithspeed
# 250 - ?
cinq:
var itemDesc a metal cinquedea
var item cinquedea
gosub book 2
goto %smithspeed
# 250 -?
vest:
var itemDesc a metal mail vest
var book armorsmithing
gosub book 1
goto %smithspeed
book:
var chapter $1
put get my %book book
pause
put turn my book to chapter %chapter
put read my book
matchre stowbook Page (\d+): %itemDesc
matchwait 10
goto error
stowbook:
var page $1
put turn my book to page %page
pause
put stow my book
pause
return
get.item:
pause 0.5
put put my %item in my %primary.container
put get my ingot in my %primary.container
waitfor You get
goto %smithspeed
smith:
send .smith %item %book
waitforre ^SMITH DONE
pause 0.5
goto checkCount
smithfast:
send .smith %item %book
waitforre ^SMITH DONE
pause 0.5
goto checkCount
checkCount:
math current_count add 1
if (%current_count < %count) then goto get.item
goto done
error:
echo
echo *** Could not match item description: %itemDesc ***
echo
exit
done:
put #parse SMITHING DONE