Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Func CanPickUp($aItem)
- Local $Type = DllStructGetData($aItem, "Type") ;Type 11 = Material ; 24 = Shield ; 35 = scythe
- Local $req = _GetItemReq($aItem)
- Local $rarity = GetRarity($aItem)
- Local $minDmg = GetItemMinValue($aItem)
- Local $maxDmg = GetItemMaxValue($aItem)
- Local $ModStruct = GetModStruct($aItem)
- Local $ModelID = DllStructGetData(($aItem), 'ModelID')
- If $Type == 35 And ($minDmg < 7 Or $maxDmg < 15) Then ;Scythe q0 8-16dmg and 8-17
- CurrentAction("Scythe q0 maxDmg = " & $maxDmg)
- Return True
- If $Type == 36 And ($minDmg < 7 or $maxDmg < 11) Then ;Spear q0 8-12dmg
- CurrentAction("Spear q0 maxDmg = " & $maxDmg)
- Return True
- If $Type == 5 And ($minDmg < 8 or $maxDmg < 12) Then ;Bow q0 9-13dmg
- CurrentAction("Bow q0 maxDmg = " & $maxDmg)
- Return True
- If $Type == 24 And $req = 8 and $maxDmg = 16 Then ;Shield q8/16arm
- CurrentAction("Shield q8 maxDef = " & $maxDmg)
- Return True
- If $Type == 24 And $req = 7 and $maxDmg = 15 Then ;Shield q7/15arm
- CurrentAction("Shield q7 maxDef = " & $maxDmg)
- Return True
- If $Type == 32 and $req = 5 and ($minDmg < 5 Or $maxDmg < 12) Then ;Dagger q5 6-13dmg
- CurrentAction("Dagger q5 maxDmg = " & $maxDmg)
- Return True
- If $Type == 32 and $req = 6 and ($minDmg < 6 Or $maxDmg < 13) Then ; Dagger q6 7-14dmg
- CurrentAction("Spear q6 maxDmg = " & $maxDmg)
- Return True
- Endif
- Return False
- EndFunc ;==>CanPickUp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement