id like to use cupcakes every run of pongmei. ill gladly give 250e in game or something similar. will somone help me with placement of this/and check for error. thanks,
Func UseCupcake()
Local $aBag
Local $aItem
Sleep(200)
For $i = 1 To 4
$aBag = GetBag($i)
For $j = 1 To DllStructGetData($aBag, "Slots")
$aItem = GetItemBySlot($aBag, $j)
If DllStructGetData($aItem, "ModelID") == 22269 Then
UseItem($aItem)
Return True
EndIf
Next
Next
EndFunc
Func UseCupcake()
Local $aBag
Local $aItem
Sleep(200)
For $i = 1 To 4
$aBag = GetBag($i)
For $j = 1 To DllStructGetData($aBag, "Slots")
$aItem = GetItemBySlot($aBag, $j)
If DllStructGetData($aItem, "ModelID") == 22269 Then
UseItem($aItem)
Return True
EndIf
Next
Next
EndFunc