-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcraft_Cooking.py
50 lines (38 loc) · 1.33 KB
/
craft_Cooking.py
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
# IDS
skillet_id = 0x097F
bark_fragment_id = 0x318F
raw_fish_steak_id = 0x097A
wood_pulp_id = 0x103D
# SERIALS
container_serial = 0x400795DD
def get_item(item_id, container_serial, low_amount, get_amount):
current_amount = Items.BackpackCount(item_id)
if current_amount <= low_amount:
item = Items.FindByID(item_id, -1, container_serial)
if item:
Items.Move(item, Player.Backpack.Serial, get_amount - current_amount)
Misc.Pause(700)
def put_item(item_id, container_serial, high_amount, put_amount):
current_amount = Items.BackpackCount(item_id)
if high_amount <= current_amount:
item = Items.FindByID(item_id, -1, Player.Backpack.Serial)
if item:
Items.Move(item, container_serial, put_amount)
Misc.Pause(700)
def remake():
Gumps.WaitForGump(949095101, 10000)
Gumps.SendAction(949095101, 21)
Misc.Pause(1500)
def use(item_id, item_color=-1):
item = Items.FindByID(item_id, item_color, Player.Backpack.Serial)
if item:
Items.UseItem(item)
Misc.Pause(200)
remake()
else:
end()
while True:
# get_item(raw_fish_steak["id"], container_serial, 1)
put_item(wood_pulp_id, Player.Bank.Serial, 100, -1)
get_item(bark_fragment_id, Player.Bank.Serial, 10, 100)
use(skillet_id)