3
« on: September 12, 2018, 04:31:42 AM »
I have the following script to sort bods in my bag. It currently only puts blacksmith bods Into my book that is labeled tailor. Any help would be appreciated.
def SortBods():
res = FindTypeEx(8793, 0, Backpack(), False)
FoundBooks = GetFindedList()
res = FindTypeEx(8792, 1155, Backpack(), False) # Tailor
FoundTailorBods = GetFindedList()
res = FindTypeEx(8792, 1102, Backpack(), False) # Blacksmith
FoundBlacksmithBods = GetFindedList()
for book in FoundBooks:
tooltip = GetTooltip(book)
if 'tailor' in tooltip:
for tbod in FoundTailorBods:
MoveItem(tbod, 0, book, 0, 0, 0)
Wait(100)
else:
for bbod in FoundBlacksmithBods:
MoveItem(bbod, 0, book, 0, 0, 0)
Wait(100)