Problem with GetItemMaxDmg

07/21/2018 11:00 some ectos for sale#1
Hello!

Can someone help me with GetItemMaxDmg function, please?


Something wrong with variables I think.

THANK YOU!
07/21/2018 12:45 ayyy_lmao#2
Code:
Func IsReq8Max($aItem)
	Local $Req = GetItemReq($aItem)
	Local $Attribute = GetItemAttribute($aItem)
	Local $Rarity = GetRarity($aItem)
	Local $Dmg = GetItemMaxDmg($aItem)

    Switch $Rarity
    Case 2624
	   If $Req = 8 Then
		  If $Attribute = 20 Or $Attribute = 21 Or $Attribute = 17 Then
			 If $Dmg = 22 Or $Dmg = 16 Then
				Return True
			 EndIf
		  EndIf
	   EndIf
    Case 2623
	   If $Req = 8 Then
		  If $Attribute = 20 Or $Attribute = 21 Or $Attribute = 17 Then
			 If $Dmg = 22 Or $Dmg = 16 Then
				Return True
			 EndIf
		  EndIf
	   EndIf
    Case 2626
	   If $Req = 8 Then
		  If $Attribute = 20 Or $Attribute = 21 Or $Attribute = 17 Then
			 If $Dmg = 22 Or $Dmg = 16 Then
				Return True
			 EndIf
		  EndIf
	   EndIf
	EndSwitch
	Return False
EndFunc
This is from what moon posted has gotten plenty of r8's look how getitemmaxdmg is a local variable . You would have to add to your can pick up something like
Code:
 Local $IsReq8 = IsReq8Max($aItem)
 Switch $IsReq8
   Case True
	  Return True ; Is req8 max
   EndSwitch
should add these to your can pick ups
Code:
 Global Const $Rarity_white = 2621
 Global Const $ITEMTYPE_BOW = 5
 Local $ModStruct = GetModStruct($aItem)
 Local $13to25DMG = StringInStr($ModStruct, "0D19A8A7")
 Local $14to25DMG = StringInStr($ModStruct, "0E18A8A7")
 
 
	If $type == $ITEMTYPE_BOW and $13to25DMG and $requirement = 6 and $rarity <> $Rarity_white Then ; Solo DoA Bow
		Return True
	EndIf

	If $type == $ITEMTYPE_BOW and $14to25DMG and $requirement = 6 and $rarity <> $Rarity_white Then ; Solo DoA Bow
		Return True
	EndIf