Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

idServer range error

Ask for help
Post Reply
hectorline
Posts: 2
Joined: 22.02.2018 10:04

idServer range error

Post 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?
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: idServer range error

Post by Vizit0r »

if repeatable - write me in skype, nick Vizit0r (Stealth dev)
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply