-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMC_Grind.cmd
66 lines (55 loc) · 2.03 KB
/
MC_Grind.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
#MasterCraft - by the player of Jaervin Ividen
# A crafting script suite...
#v 0.1.6
#
# Script Usage: .grind <item> --grinds the item in hand.
#
# This script is used in conjunction with the mastercraft.cmd script, and is used to grind weapons at a grindstone. To use it, hold the
# item to be processed in either hand, and be sure to have oil in your forging bag. If you have a Maker's Mark, be sure that it is also
# on you if your character profile in MC INCLUDE.cmd is toggled to mark items.
#
if_1 put #var $MC.order.noun %1
include mc_include.cmd
action var action turn when ^It seems to be picking up speed now but is still rather slow.|^Straining a bit less you add force to the grindstone, making it spin even faster
action var action turn when ^The grinding wheel needs to be spinning
action var action push when ^Straining a bit less you maintain force to the grindstone, keeping it spinning fast.
action var action oil when ^With grinding complete, the metal now needs protection by pouring oil on it.
action var action Done when Applying the final touches, you complete working
if !matchre("$lefthand|$righthand", "$MC.order.noun") then
{
gosub EMPTY_HANDS
pause .5
send get $MC.order.noun
if !matchre("$lefthand|$righthand", "$MC.order.noun") then send get $MC.order.noun from my portal
}
pause .5
var action turn
GrindAction:
pause .5
gosub %action
goto GrindAction
turn:
pause .5
gosub Action turn grindstone
return
push:
pause .5
gosub Action push grindstone with my $MC.order.noun
return
oil:
pause .5
gosub GET my oil
if !matchre ("$righthand|$lefthand", "oil") then gosub GET my oil from my portal
gosub Action pour my oil on my $MC.order.noun
return
lack.coin:
if contains("$scriptlist", "mastercraft.cmd") then put #parse LACK COIN
else echo *** You need some startup coin to purchase stuff! Go to the bank and try again!
exit
done:
pause .5
gosub PUT_IT my oil in my %forging.storage
gosub mark
pause .5
send #parse GRINDING DONE
exit