Advertisement
Guest User

Untitled

a guest
Jul 25th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.38 KB | None | 0 0
  1. Func CanPickUp($aItem)
  2.     Local $Type = DllStructGetData($aItem, "Type") ;Type 11 = Material ; 24 = Shield ; 35 = scythe
  3.     Local $req = _GetItemReq($aItem)
  4.     Local $rarity = GetRarity($aItem)
  5.     Local $minDmg = GetItemMinValue($aItem)
  6.     Local $maxDmg = GetItemMaxValue($aItem)
  7.     Local $ModStruct = GetModStruct($aItem)
  8.     Local $ModelID = DllStructGetData(($aItem), 'ModelID')
  9.  
  10.         If  $Type == 35 And ($minDmg < 7 Or $maxDmg < 15) Then ;Scythe q0 8-16dmg and 8-17
  11.             CurrentAction("Scythe q0 maxDmg = " & $maxDmg)
  12.         Return True
  13.         If  $Type == 36 And ($minDmg < 7 or $maxDmg < 11) Then ;Spear q0 8-12dmg
  14.             CurrentAction("Spear q0 maxDmg = " & $maxDmg)
  15.         Return True
  16.         If  $Type == 5 And ($minDmg < 8 or $maxDmg < 12) Then  ;Bow q0 9-13dmg
  17.             CurrentAction("Bow q0 maxDmg = " & $maxDmg)
  18.         Return True
  19.         If  $Type == 24 And $req = 8 and $maxDmg = 16 Then  ;Shield q8/16arm
  20.             CurrentAction("Shield q8 maxDef = " & $maxDmg)
  21.         Return True
  22.         If  $Type == 24 And $req = 7 and $maxDmg = 15 Then  ;Shield q7/15arm
  23.             CurrentAction("Shield q7 maxDef = " & $maxDmg)
  24.         Return True
  25.         If  $Type == 32 and $req = 5 and ($minDmg < 5 Or $maxDmg < 12) Then  ;Dagger q5 6-13dmg
  26.             CurrentAction("Dagger q5 maxDmg = " & $maxDmg)
  27.         Return True
  28.         If  $Type == 32 and $req = 6 and ($minDmg < 6 Or $maxDmg < 13) Then  ; Dagger q6 7-14dmg
  29.             CurrentAction("Spear q6 maxDmg = " & $maxDmg)
  30.         Return True
  31.        
  32.        
  33.         Endif
  34.  
  35.     Return False
  36. EndFunc   ;==>CanPickUp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement