Skip to content

Commit

Permalink
Ramasse les potions légendaire meme si on est en config LegendaryPotion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ano69 committed May 24, 2014
1 parent 3ad092f commit f43fbdd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/toolkit.au3
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@ Func handle_Loot(ByRef $item, ByRef $IgnoreList, ByRef $test_iterateallobjectsli
$itemDestination = CheckItem($item[0], $item[1])
$result = 0

If $itemDestination == "Stash" Or $itemDestination == "Salvage" Or $itemDestination == "Sell" Or ($itemDestination == "Inventory" And $takepot = True) Then
If $itemDestination == "Stash" Or $itemDestination == "Salvage" Or $itemDestination == "Sell" Or ($itemDestination == "Inventory" And ($takepot = True Or StringInStr($item[0], "healthPotion_Legendary", 2))) Then
; this loot is interesting
If IsArray($item_aff_verif) and $gestion_affixe_loot Then
If is_zone_safe($item[2],$item[3],$item[4],$item_aff_verif) Or Checkqual($item[0]) = 9 Then
Expand Down Expand Up @@ -5703,4 +5703,13 @@ Func GetActivePlayerSkill($index)
Else
Return 0
EndIf
EndFunc

Func GetActivePlayerSkillRune($index)
$Local_player = GetLocalPlayer()
If $local_player <> 0 Then
Return _MemoryRead($local_player + (0xBC + $index * 0x10) + 0x4, $d3, 'int')
Else
Return 0
EndIf
EndFunc

0 comments on commit f43fbdd

Please sign in to comment.