Originally Posted by
tvinki
how on alert for all rare amulets and rings ?
You can enable alerts to all rares using the options provided at the beginning of ItemAlertPoE.py.
If you only want alerts for jewellery rare items, the easiest fix is probably for you to modify your own copy slightly.
Find this part of the code (I can't tell you the exact line number because I've modified my own copy, but it should be around line 900-1000):
Code:
if isJewelleryItem(itemName):
# 0x29F77698 = gold ring
# 0xDE069771 = gold amulet
_implicitmods = int(buffer.nextDword())
_mod = buffer.nextDword()
_modvalues = buffer.nextByte()
_modvalue = int(buffer.nextDword())
if shouldNotify(itemName) and rarity == 0:
print ts + Fore.WHITE + 'SPC:' + str.format(' {0}', itemName)
worker = PlaySoundSpecialItem()
worker.start()
if rarity == 2 and ALERT_rares == True:
print ts + Style.BRIGHT + Fore.YELLOW + 'JEW' + Style.NORMAL + Fore.WHITE + str.format(': {0}, rarity: {1}',itemName,rarity)
number_of_rares += 1
if SOUND_rares == True:
worker = PlaySoundWorker()
worker.start()
And change it to this (changes in red, commented out code in green):
Code:
if isJewelleryItem(itemName):
# 0x29F77698 = gold ring
# 0xDE069771 = gold amulet
_implicitmods = int(buffer.nextDword())
_mod = buffer.nextDword()
_modvalues = buffer.nextByte()
_modvalue = int(buffer.nextDword())
if shouldNotify(itemName) and rarity == 0:
print ts + Fore.WHITE + 'SPC:' + str.format(' {0}', itemName)
worker = PlaySoundSpecialItem()
worker.start()
if rarity == 2:# and ALERT_rares == True:
print ts + Style.BRIGHT + Fore.YELLOW + 'JEW' + Style.NORMAL + Fore.WHITE + str.format(': {0}, rarity: {1}',itemName,rarity)
number_of_rares += 1
if True:# SOUND_rares == True:
worker = PlaySoundWorker()
worker.start()
It should make your copy skip the checking of the general rare alert option when processing jewellery items and simply always alert to rare jewellery items. Both in the console and with audio. Also, it's easy to change back if you want to undo the change later since the original code is just commented out.
Be sure to preserve the indentation while making the changes.