Page 1 of 1

idServer range error

Posted: 22.02.2018 10:19
by hectorline
I'm having troubles using this function to add bods to bodbook.

Code: Select all

def SortBods():
    res = FindTypeEx(8793, 0, Backpack(), False)
    FoundBooks = GetFindedList(res)
    res = FindTypeEx(8792, 1155, Backpack(), False)  # Tailor
    FoundTailorBods = GetFindedList(res)
    res = FindTypeEx(8792, 1102, Backpack(), False)  # Blacksmith
    FoundBlacksmithBods = GetFindedList(res)
    if len(FoundBooks) > 0:
        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)
    else:
        print("no books found")
Any tip to solve it?

Re: idServer range error

Posted: 22.02.2018 12:49
by Vizit0r
if repeatable - write me in skype, nick Vizit0r (Stealth dev)