def TrainFletching(client): skills = client.world.player.skills if skills is None or SKILL_FLETCHING not in skills: print("No fletching skill") return Fail(client) choice = fletching_choice(skills[SKILL_FLETCHING].value) if choice is None: print("No fletching choice") return Fail(client) return Fletching(client, choice)
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)
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)