Tomb to tome (#154)

Small spelling fix
This commit is contained in:
mgleed
2021-11-30 17:02:10 -05:00
committed by GitHub
parent 33b0b533e6
commit ca4d51e48e
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ All settings will automatically be set when you execute `run.exe` and press the
You can put any skills on left and right attack and see if it works out. E.g. Glacial Spike on left attack and Blizzard or right attack.
Adjust the hotkeys in the __custom.ini__ or __param.ini__ for the `[char]` and `[sorceress]` section accordingly. Check out the param.ini section in the Readme for more details on each param.
#### Hammerdin
Your standard Hammerdin with Enigma. Dont think I have to explain much here. Same story as with sorc, set up your skills in the .ini file to what you have in D2R or the other way around. When running more than just pindle or shenk you need to start with a full tomb of tps in your inventory.
Your standard Hammerdin with Enigma. Dont think I have to explain much here. Same story as with sorc, set up your skills in the .ini file to what you have in D2R or the other way around. When running more than just pindle or shenk you need to start with a full tome of tps in your inventory.
### 3) Start Location
Open up D2R and wait till you are at the hero selection screen. Make sure the char you running with is selected and will be in A5 in the respective difficulty you set in the __param.ini__ once the bot starts the game.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

+1 -1
View File
@@ -98,7 +98,7 @@ class TemplateFinder:
"TELE_INACTIVE": [load_template(f"assets/templates/tele_inactive.png", 1.0), 1.0],
"VIGOR": [load_template(f"assets/templates/vigor.png", 1.0), 1.0],
"REPAIR_BTN": [load_template(f"assets/templates/repair_btn.png", 1.0), 1.0],
"TP_TOMB": [load_template(f"assets/templates/tp_tomb.png", 1.0), 1.0],
"TP_TOME": [load_template(f"assets/templates/tp_tome.png", 1.0), 1.0],
"SUPER_HEALING_POTION": [load_template(f"assets/templates/super_healing_potion.png", 1.0), 1.0],
"SUPER_MANA_POTION": [load_template(f"assets/templates/super_mana_potion.png", 1.0), 1.0],
"FULL_REJUV_POTION": [load_template(f"assets/templates/full_rejuv_potion.png", 1.0), 1.0],
+9 -9
View File
@@ -380,7 +380,7 @@ class UiManager():
def repair_and_fill_up_tp(self) -> bool:
"""
Repair and fills up TP buy selling tomb and buying. Vendor inventory needs to be open!
Repair and fills up TP buy selling tome and buying. Vendor inventory needs to be open!
:return: Bool if success
"""
repair_btn = self._template_finder.search_and_wait("REPAIR_BTN", roi=self._config.ui_roi["repair_btn"], time_out=4)
@@ -396,10 +396,10 @@ class UiManager():
wait(0.1, 0.15)
mouse.click(button="left")
wait(0.5, 0.6)
tp_tomb = self._template_finder.search_and_wait("TP_TOMB", roi=self._config.ui_roi["inventory"], time_out=3)
if not tp_tomb.valid:
tp_tome = self._template_finder.search_and_wait("TP_TOME", roi=self._config.ui_roi["inventory"], time_out=3)
if not tp_tome.valid:
return False
x, y = self._screen.convert_screen_to_monitor(tp_tomb.position)
x, y = self._screen.convert_screen_to_monitor(tp_tome.position)
keyboard.send('ctrl', do_release=False)
mouse.move(x, y, randomize=8, delay_factor=[1.0, 1.5])
wait(0.1, 0.15)
@@ -408,10 +408,10 @@ class UiManager():
mouse.release(button="left")
wait(0.5, 0.6)
keyboard.send('ctrl', do_press=False)
tp_tomb = self._template_finder.search_and_wait("TP_TOMB", roi=self._config.ui_roi["vendor_stash"], time_out=3)
if not tp_tomb.valid:
tp_tome = self._template_finder.search_and_wait("TP_TOME", roi=self._config.ui_roi["vendor_stash"], time_out=3)
if not tp_tome.valid:
return False
x, y = self._screen.convert_screen_to_monitor(tp_tomb.position)
x, y = self._screen.convert_screen_to_monitor(tp_tome.position)
keyboard.send('ctrl', do_release=False)
mouse.move(x, y, randomize=8, delay_factor=[1.0, 1.5])
wait(0.1, 0.15)
@@ -419,8 +419,8 @@ class UiManager():
wait(0.1, 0.15)
keyboard.send('ctrl', do_press=False)
# delay to make sure the tome has time to transfer to other inventory before closing window
tp_tomb = self._template_finder.search_and_wait("TP_TOMB", roi=self._config.ui_roi["inventory"], time_out=3)
if not tp_tomb.valid:
tp_tome = self._template_finder.search_and_wait("TP_TOME", roi=self._config.ui_roi["inventory"], time_out=3)
if not tp_tome.valid:
return False
return True