Code:
Func JohnyDee()
FileOpen("Log.txt", $FO_APPEND)
For $BagNumber = 1 To 4
For $SlotNumber = 1 To DllStructGetData(GetBag($BagNumber), "Slots")
Local $item = GetItemBySlot($BagNumber, $SlotNumber)
If DllStructGetData($item, "Id") == 0 Then ContinueLoop;Empty Slot
If GetIsIdentified($item) Then ContinueLoop ;Item Is Already Identified
$ItemValueBeforeIdentifying = DllStructGetData($item, "Value")
FileWrite("Log.txt","Item Value Before ID: " & $ItemValueBeforeIdentifying & [MENTION=3576271]CRLF[/MENTION])
;IdentifyItem($item) Identify item here
Local $item = GetItemBySlot($BagNumber, $SlotNumber);Reget item since value changed
$ItemValueAfterIdentifying = DllStructGetData($item, "Value")
FileWrite("Log.txt","Item Value After ID: " & $ItemValueAfterIdentifying & [MENTION=3576271]CRLF[/MENTION])
Next
Next
FileClose("Log.txt")
EndFunc
should work idk what its doing when it sees @ symbol but this is what it looked like before I copy/pasted it into here
Quote:
Originally Posted by LordKillfox
why should this be useful?
|
If you wanted to track the profit made via identifying items or average gain per id use you could $CoinsGainedByIdentifying items += $ItemValueAfterIdentifying - $ItemValueBeforeIdentifying is one use idk what op wants to do with it though