-
Notifications
You must be signed in to change notification settings - Fork 10
/
CraftPumpkinPie.txt
69 lines (64 loc) · 1.6 KB
/
CraftPumpkinPie.txt
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
KEY(use)
WAIT(20t)
DO
//This is more complex than the sugar one
//because eggs only stack to 16
//This means that I don't have to put pumkins
//or sugar in every time I put in more eggs
//I will check if the item is in the crafting
//table and if not put some in
GETSLOTITEM(2,&slot2)
IF(%&slot2% != "sugar")
GETSLOT(sugar,#sugar)
IF(%#sugar% = -1)
LOG(crafting sugar from reeds)
GETSLOT(reeds,#reeds)
IF(%#reeds% = -1)
LOG(You need reeds to craft sugar)
STOP
ENDIF
SLOTCLICK(1,l,true)
WAIT(4t)
SLOTCLICK(3,l,true)
WAIT(4t)
SLOTCLICK(%#reeds%)
WAIT(4t)
SLOTCLICK(1)
WAIT(4t)
SLOTCLICK(0,l,true)
WAIT(4t)
GETSLOT(sugar,#sugar)
ENDIF
SLOTCLICK(%#sugar%)
WAIT(4t)
SLOTCLICK(2)
WAIT(4t)
ENDIF
GETSLOTITEM(1,&slot1)
IF(%&slot1% != "pumpkin")
GETSLOT(pumpkin,#pumpkin)
IF(%#pumpkin% = -1)
LOG(you need pumkins!)
STOP
ENDIF
SLOTCLICK(%#pumpkin%)
WAIT(4t)
SLOTCLICK(1)
WAIT(4t)
ENDIF
GETSLOTITEM(3,&slot3)
IF(%&slot3% != "egg")
GETSLOT(egg,#egg)
IF(%#egg% = -1)
LOG(you need eggs!)
STOP
ENDIF
SLOTCLICK(%#egg%)
WAIT(4t)
SLOTCLICK(3)
WAIT(4t)
ENDIF
//Now all the items should be in the table
SLOTCLICK(0,l,true)
WAIT(4t)
LOOP