コード例 #1
0
def TakeLogs(client, box, amount=300):
    world = client.world

    logs = world.find_item_in(box, lambda x: x.item_id in ITEMS_LOGS)
    if logs is None:
        print("No logs in box")
        return Fail(client)

    drop_into(client, logs, world.backpack(), amount)
    return Delayed(client, 1)
コード例 #2
0
def PutBoards(client, box):
    world = client.world

    boards = world.find_item_in(world.backpack(), lambda x: x.item_id in ITEMS_BOARDS)
    if boards is None:
        print "No boards"
        return Fail(client)

    drop_into(client, boards, box)
    return Delayed(client, 1)