Compare commits

...
6 Commits
Author SHA1 Message Date
aeon0 a1404f6f4f indent issue 2021-11-10 20:40:49 +01:00
Mitchell Gleedandaeon0 90cadb4843 Add gold to param/asset, prevent attempts to stash gold, and asset renaming (#9)
* add gold and fix asset names

* add gold and fix asset names

* add gold and fix asset names

* add gold and fix asset names

* Update src/pickit.py

Co-authored-by: aeon0 <[email protected]>
2021-11-10 20:30:56 +01:00
aeon0 730b68b2db update webhook 2021-11-10 20:11:03 +01:00
aeon0 3d36d9286b Bump version to v0.2.2 2021-11-10 20:03:54 +01:00
aeon0 ecf82eeaac dont spam the drop-log! 2021-11-10 20:03:25 +01:00
aeon0 0a4645769e actually use mingw64 on compiling 2021-11-10 19:29:00 +01:00
6 changed files with 18 additions and 16 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+1 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -1 +1 @@
__version__ = '0.2.1'
__version__ = '0.2.2'