-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathitems_Log_to_Board.py
46 lines (40 loc) · 1.18 KB
/
items_Log_to_Board.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
Misc.SendMessage("AXE?", 53)
axe_serial = Target.PromptTarget()
log_id = 0x1BDD
board_id = 0x1BD7
log_colors = {
0x0000: "Log",
0x07da: "Ork",
0x04a7: "Ash",
0x04a8: "Yew",
0x04a9: "Heartwood",
0x04aa: "Bloodwood",
0x047f: "Frostwood"
}
# DEFINES
def PutItemToBank(item_id, amount):
item = Items.FindByID(item_id, -1, Player.Backpack.Serial)
if item:
Items.Move(item, Player.Bank.Serial, amount)
Misc.Pause(700)
def GetItemFromBank(item_id, amount):
item = Items.FindByID(item_id, -1, Player.Bank.Serial)
if item:
Items.Move(item, Player.Backpack.Serial, amount)
Misc.Pause(500)
def LogToBoard(axe_serial):
for log_color in log_colors.keys():
item = Items.FindByID(log_id, log_color, Player.Backpack.Serial)
if item:
Target.Cancel()
Misc.Pause(50)
Misc.SendMessage(log_id)
Items.UseItem(axe_serial)
Target.WaitForTarget(1000, False)
Target.TargetExecute(item)
Misc.Pause(500)
Player.ChatSay(12, "bank")
while True:
LogToBoard(axe_serial)
PutItemToBank(board_id, 0)
GetItemFromBank(log_id, 200)