def set_offscreen_locations(self): print('Setting offscreen locations') for i in range(0, 4): print('Click offscreen location #{0}'.format(i)) time.sleep(0.1) self.off_screen_locations.append(set_location(" offscreen location #" + str(i), self.mouse))
def set_locations(self): self.set_enhance_pot_locations() os.system('clear') self.set_absorption_pot_locations() os.system('clear') self.orb_location = set_location("Rock cake / Locator Orb ", self.mouse) os.system('clear') self.prayer_flick_location = set_location("Quick prayer ", self.mouse) # self.set_offscreen_locations() os.system('clear') with open("./nmz_absorb_locations.txt", "w") as f: f.write(str(self.overload_locations)) f.write("\n") f.write(str(self.absorption_pot_locations)) f.write("\n") f.write(str(self.prayer_flick_location)) f.write("\n") f.write(str(self.orb_location)) f.write("\n") f.write(str(self.off_screen_locations))
def set_locations(self): self.banker_location = set_location("Banker", self.mouse) self.supply_1_bank_location = set_location("First Supply in bank", self.mouse) self.supply_2_bank_location = set_location("Second Supply in bank", self.mouse) self.supply_1_inv_location = set_location("First Supply in inventory", self.mouse) self.supply_2_inv_location = set_location("Second Supply in inventory", self.mouse) self.bank_all_location = set_location("Bank all", self.mouse) self.set_offscreen_locations() with open("./herb_locations.txt", "w") as f: f.write(str(self.banker_location)) f.write("\n") f.write(str(self.supply_1_bank_location)) f.write("\n") f.write(str(self.supply_2_bank_location)) f.write("\n") f.write(str(self.bank_all_location)) f.write("\n") f.write(str(self.supply_1_inv_location)) f.write("\n") f.write(str(self.supply_2_inv_location)) f.write("\n") f.write(str(self.off_screen_locations))
def set_absorption_pot_locations(self): absorption_pot_count = int(input("Number of absorption potions: ")) for i in range(0, absorption_pot_count): self.absorption_pot_locations.append( set_location("Absorption pot #" + str(i + 1), self.mouse))
def set_enhance_pot_locations(self): enhance_pot_count = int(input("Number of overload potions: ")) for i in range(0, enhance_pot_count): self.overload_locations.append( set_location("Overload pot #" + str(i + 1), self.mouse))