Function for item unid value?

07/27/2018 12:29 JohnyDee#1
Hi, is there a GWA2 function to get the unid value of an item? That is the merchant gold value before it's identified.

Would the following work on unids?

DllStructGetData($item, 'Value')

Many thanks in advance.

Cheers!
07/27/2018 15:01 LordKillfox#2
little to no effort on testing this by yourself, beyond that, why should this be useful?
07/28/2018 00:43 ayyy_lmao#3
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 [Only registered and activated users can see links. Click Here To Register...]

Quote:
Originally Posted by LordKillfox View Post
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
07/28/2018 10:27 savsuds#4
The added problem is Show Me The Money inscriptions don't have a set value increase that is known.
07/30/2018 08:52 LordKillfox#5
Quote:
Originally Posted by savsuds View Post
The added problem is Show Me The Money inscriptions don't have a set value increase that is known.
This is from [Only registered and activated users can see links. Click Here To Register...].
Quote:
This inscription only affects the items which have a merchant value. Like other inscriptions it has a set value (that is not displayed on the inscription):

"Show me the money!" inscriptions add up to 62Gold of extra value to "blue" items; up to 70Gold to "purple" items; and up to 75Gold for "gold" items.
Maybe this can help in the process of evaluate the possible max selling price.
07/30/2018 15:41 JohnyDee#6
DllStructGetData($item, 'Value')

After some testing this works with unids too, after ID shows the new identified value
07/31/2018 04:13 phat34#7
If you have to worry about the cost to identify the items then your a real business man! Congratulations!

...but great find! - I would have thought that was a server side process myself... so one of those unknown bits in the item structure must be a Logical "Item Identified" bit.
07/31/2018 08:43 JohnyDee#8
The unid value is a good predictor of an item's level and its general "potential" so it is indeed useful in certain situations ;)