Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1404f6f4f | ||
|
|
90cadb4843 | ||
|
|
730b68b2db | ||
|
|
3d36d9286b | ||
|
|
ecf82eeaac | ||
|
|
0a4645769e |
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
+1
-2
@@ -65,6 +65,7 @@ misc_flawless_ruby=1
|
||||
misc_super_healing_potion=1
|
||||
misc_super_mana_potion=1
|
||||
misc_tp_scroll=1
|
||||
misc_gold=0
|
||||
;=====MAGIC=====
|
||||
magic_circlet=1
|
||||
magic_coronet=1
|
||||
@@ -91,7 +92,6 @@ rare_greaves=1
|
||||
rare_hand_scythe=1
|
||||
rare_jewel=1
|
||||
rare_ring=1
|
||||
rare_ring_mail=1
|
||||
rare_runic_talons=1
|
||||
rare_tiara=1
|
||||
rare_war_fist=1
|
||||
@@ -157,7 +157,6 @@ lt_blade_of_ali_baba=1
|
||||
lt_bonehew=1
|
||||
lt_cerebus_bite=1
|
||||
lt_darkforce_spawn=1
|
||||
lt_darkglow=1
|
||||
lt_duriel_shell=1
|
||||
lt_frostburn=1
|
||||
lt_giant_skull=1
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ if os.path.exists(botty_dir):
|
||||
shutil.rmtree(path)
|
||||
shutil.rmtree(botty_dir)
|
||||
|
||||
installer_cmd = f"python -m nuitka --mingw --standalone --onefile --plugin-enable=numpy src/run.py"
|
||||
installer_cmd = f"python -m nuitka --mingw64 --standalone --onefile --plugin-enable=numpy src/run.py"
|
||||
os.system(installer_cmd)
|
||||
|
||||
os.system(f"mkdir {botty_dir}")
|
||||
|
||||
+14
-11
@@ -47,24 +47,27 @@ class PickIt:
|
||||
closest_item = item
|
||||
x_m, y_m = self._screen.convert_screen_to_monitor(closest_item.center)
|
||||
if closest_item.dist < self._config.ui_pos["item_dist"]:
|
||||
# no need to stash poitions and scrolls
|
||||
if "potion" not in closest_item.name and "tp_scroll" != closest_item.name:
|
||||
# no need to stash potions, scrolls, or gold
|
||||
if (("potion" not in closest_item.name) and ("tp_scroll" != closest_item.name) and ("misc_gold" not in closest_item.name)):
|
||||
found_items = True
|
||||
Logger.info(f"Picking up {closest_item.name}")
|
||||
Logger.info(f"** Looted {closest_item.name}")
|
||||
else:
|
||||
Logger.info(f"Picking up {closest_item.name}")
|
||||
mouse.move(x_m, y_m)
|
||||
time.sleep(0.1)
|
||||
mouse.click(button="left")
|
||||
time.sleep(0.5)
|
||||
|
||||
if self._config.general["send_drops_to_discord"]:
|
||||
send_discord_thread = threading.Thread(target=send_discord, args=(closest_item.name,))
|
||||
send_discord_thread.daemon = True
|
||||
send_discord_thread.start()
|
||||
if found_items and ("rune_" in closest_item.name or "tt_" in closest_item.name):
|
||||
if self._config.general["send_drops_to_discord"]:
|
||||
send_discord_thread = threading.Thread(target=send_discord, args=(closest_item.name,))
|
||||
send_discord_thread.daemon = True
|
||||
send_discord_thread.start()
|
||||
|
||||
if self._config.general["custom_discord_hook"] != "":
|
||||
send_discord_thread = threading.Thread(target=send_discord, args=(closest_item.name, self._config.general["custom_discord_hook"]))
|
||||
send_discord_thread.daemon = True
|
||||
send_discord_thread.start()
|
||||
if self._config.general["custom_discord_hook"] != "":
|
||||
send_discord_thread = threading.Thread(target=send_discord, args=(closest_item.name, self._config.general["custom_discord_hook"]))
|
||||
send_discord_thread.daemon = True
|
||||
send_discord_thread.start()
|
||||
|
||||
if self._ui_manager.is_overburdened():
|
||||
Logger.warning("Inventory full, skipping pickit!")
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import requests
|
||||
|
||||
def send_discord(item_name, url:str = None):
|
||||
if url is None:
|
||||
url = "https://discord.com/api/webhooks/908045354061160459/8-HQRLPTHxMlf5VpvScuvNEpLLIe8KHqxgRIk6p17u6LMPvzCCQotT_iGioQHQVU5u_P"
|
||||
url = "https://discord.com/api/webhooks/908071105372250213/puaS6gIYqYxTE-TBLAIs6_Qb6ZUwuygSeQfTQkpuXrSag5DPeV2gk0SctOjPy5qMHGeh"
|
||||
data = {"content": f"Botty just found: {item_name}"}
|
||||
requests.post(url, json=data)
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
__version__ = '0.2.1'
|
||||
__version__ = '0.2.2'
|
||||
|
||||
Reference in New Issue
Block a user