-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathitems_PSCleaner.py
59 lines (40 loc) · 1.7 KB
/
items_PSCleaner.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
51
52
53
54
55
56
57
58
59
trush_items = [
{"ItemID": 0x14EF, "Hue": 0x0490, "Name": "pink skill scroll"},
{"ItemID": 0x1E22, "Hue": 0x0000, "Name": "Mastery"},
{"ItemID": 0x1AE1, "Hue": 0x01ee, "Name": "skull of greed"}
]
def getBook():
Misc.SendMessage("Power Scroll Book?", 54)
book_serial = Target.PromptTarget()
book = Items.FindBySerial(book_serial)
return book
def putPowerScrolls():
book = getBook()
if book.ItemID == 0x2259:
containers = [book.Container, Player.Backpack.Serial]
for container in containers:
while Items.FindByID(0x14F0, 0x0481, container):
item = Items.FindByID(0x14F0, 0x0481, container)
if item:
Items.Move(item, book, -1)
Misc.Pause(500)
Misc.Pause(50)
Misc.SendMessage("All scrolls have entered the book.", 80)
else:
Misc.SendMessage("This item is not the book.", 54)
def findTrushPouch():
trush_pouch = Items.FindByID(0x09B0, 0x09c4, Player.Backpack.Serial)
return trush_pouch
def trushItems(trush_items):
trush_pouch = findTrushPouch()
for item in trush_items:
while Items.FindByID(item["ItemID"], item["Hue"], Player.Backpack.Serial):
del_item = Items.FindByID(item["ItemID"], item["Hue"], Player.Backpack.Serial)
if del_item:
Misc.SendMessage("DANGER: DO NOT DRAG ITEMS!", 33)
Items.Move(del_item, trush_pouch, -1)
Misc.Pause(550)
Misc.Pause(50)
Misc.SendMessage("All items of targeted type wiped!", 80)
putPowerScrolls()
trushItems(trush_items)