GeMercher.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:RunescapeBots 作者: lukegarbutt 项目源码 文件源码
def __init__(self, position):
        self.bottom_right_corner = position
        self.top_left_corner = (position[0] - 750, position[1] - 450)
        self.member_status = members_status_check(self.top_left_corner, self.bottom_right_corner)
        self.list_of_ge_slots = initialise_ge_slots(self.top_left_corner, self.bottom_right_corner)  # this returns a list of ge_slot objects
        #self.money = detect_money(self.top_left_corner, self.bottom_right_corner) TESSER NEEDS FIXING
        if self.member_status:
            self.money = 47_000_000
        else:
            self.money = 47_000_000
        self.profit = 0
        self.last_action_time = time.time()
        # examines money to make the above line accurate
        examine_money(position)
        self.items_to_merch = items_to_merch(self.member_status)
        self.list_of_items_on_cooldown = []
        self.number_of_empty_ge_slots = empty_ge_slot_check(self.list_of_ge_slots)
        print('Initialised a window with {}Kgp and {} ge slots'.format(int(self.money/1000), self.number_of_empty_ge_slots))
        if self.member_status:
            if self.number_of_empty_ge_slots != 8:
                input("We haven't detected the usual 8 ge slots for a members window, so please press enter to continue")
        elif not self.member_status:
            if self.number_of_empty_ge_slots != 3:
                input("We haven't detected the usual 3 ge slots for a non members window, so please press enter to continue")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号