Fix: /nopickup not working (#912)
No pickup was turned off permanently by mistake.
This commit is contained in:
+15
-15
@@ -14,21 +14,21 @@ def enable_no_pickup() -> bool:
|
||||
# Checks the best match between enabled and disabled an retrys if already set.
|
||||
# :return: Returns True if we succesfully set the nopickup option
|
||||
# """
|
||||
# keyboard.send('enter')
|
||||
# wait(0.1, 0.25)
|
||||
# keyboard.write('/nopickup',delay=.20)
|
||||
# keyboard.send('enter')
|
||||
# wait(0.1, 0.25)
|
||||
# if not (item_pickup_text := wait_until_visible(ScreenObjects.ItemPickupText, timeout=1.3)).valid:
|
||||
# return False
|
||||
# if item_pickup_text.name == "ITEM_PICKUP_DISABLED":
|
||||
# return True
|
||||
# keyboard.send('enter')
|
||||
# wait(0.1, 0.25)
|
||||
# keyboard.send('up')
|
||||
# wait(0.1, 0.25)
|
||||
# keyboard.send('enter')
|
||||
# wait(0.1, 0.25)
|
||||
keyboard.send('enter')
|
||||
wait(0.1, 0.25)
|
||||
keyboard.write('/nopickup',delay=.20)
|
||||
keyboard.send('enter')
|
||||
wait(0.1, 0.25)
|
||||
if not (item_pickup_text := wait_until_visible(ScreenObjects.ItemPickupText, timeout=1.3)).valid:
|
||||
return False
|
||||
if item_pickup_text.name == "ITEM_PICKUP_DISABLED":
|
||||
return True
|
||||
keyboard.send('enter')
|
||||
wait(0.1, 0.25)
|
||||
keyboard.send('up')
|
||||
wait(0.1, 0.25)
|
||||
keyboard.send('enter')
|
||||
wait(0.1, 0.25)
|
||||
return True
|
||||
|
||||
def save_and_exit() -> bool:
|
||||
|
||||
Reference in New Issue
Block a user