def botaktif31(self): self.state = True self.deneme = True PM = pymem.Pymem() PM.open_process_from_id(int(self.lineEdit_25.text())) OFFSET = 0x4 while self.state: nearest_mob_vid = None nearest_mob_distance = float('inf') for offset in range(0x4, 0x600, 0x4): try: PlayerX = PM.read_float(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["playerbasepointer"]), OFFSETS=[int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["playerbaseoffset"]), int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["playerx"])])) PlayerY = PM.read_float(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["playerbasepointer"]), OFFSETS=[int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["playerbaseoffset"]), int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["playery"])])) MobX = PM.read_float(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["mobbase"]), OFFSETS=[offset, int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["mobx"])])) MobY = PM.read_float(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["mobbase"]), OFFSETS=[offset, int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["moby"])])) mobvid = PM.read_int(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["mobbase"]), OFFSETS=[offset, int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["mobvid"])])) mobtype = PM.read_int(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["mobbase"]), OFFSETS=[offset, int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["mobtype"])])) if mobtype == 2: distance = ((PlayerX - MobX) ** 2 + (PlayerY - MobY) ** 2) ** 0.5 if distance < nearest_mob_distance: nearest_mob_distance = distance nearest_mob_vid = mobvid OFFSET = offset except: continue if nearest_mob_vid is not None: attackvid = PM.read_int(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["attackbasepointer"]), OFFSETS=[int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["attackoffset"])])) if self.radioButton_20.isChecked(): # YÜRÜMELİ PM.write_int(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["attackbasepointer"]), OFFSETS=[int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["attackoffset"])]), nearest_mob_vid) while attackvid != 0: attackvid = PM.read_int(self.PointerAddress(PM.base_address + int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["attackbasepointer"]), OFFSETS=[int(self.ServerPointerListe[self.comboBox_8.currentIndex()]["attackoffset"])])) time.sleep(0.1) print(f"Mob {nearest_mob_vid} öldü, yeni en yakın mob aranıyor.") time.sleep(0.1)