Register for your free account! | Forgot your password?


Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 18:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Function for item unid value?

Discussion on Function for item unid value? within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2018
Posts: 34
Received Thanks: 4
Function for item unid value?

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!
JohnyDee is offline  
Old 07/27/2018, 15:01   #2
 
elite*gold: 0
Join Date: Jun 2016
Posts: 10
Received Thanks: 1
little to no effort on testing this by yourself, beyond that, why should this be useful?
LordKillfox is offline  
Old 07/28/2018, 00:43   #3
 
elite*gold: 0
Join Date: Dec 2017
Posts: 46
Received Thanks: 24
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 https://i.imgur.com/sjNHdj7.png

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
ayyy_lmao is offline  
Old 07/28/2018, 10:27   #4
 
elite*gold: 0
Join Date: Nov 2012
Posts: 134
Received Thanks: 47
The added problem is Show Me The Money inscriptions don't have a set value increase that is known.
savsuds is offline  
Old 07/30/2018, 08:52   #5
 
elite*gold: 0
Join Date: Jun 2016
Posts: 10
Received Thanks: 1
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 .
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.
LordKillfox is offline  
Old 07/30/2018, 15:41   #6
 
elite*gold: 0
Join Date: Apr 2018
Posts: 34
Received Thanks: 4
DllStructGetData($item, 'Value')

After some testing this works with unids too, after ID shows the new identified value
JohnyDee is offline  
Old 07/31/2018, 04:13   #7
 
elite*gold: 0
Join Date: Sep 2014
Posts: 351
Received Thanks: 120
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.
phat34 is offline  
Old 07/31/2018, 08:43   #8
 
elite*gold: 0
Join Date: Apr 2018
Posts: 34
Received Thanks: 4
The unid value is a good predictor of an item's level and its general "potential" so it is indeed useful in certain situations
JohnyDee is offline  
Reply


Similar Threads Similar Threads
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Running Function 2 after Function 1 finished
09/15/2013 - AutoIt - 3 Replies
Hey, its me again. Im stuck on a problem since yesterday and as much as i hate to ask for help, i really dont know what else to try. I want Function 2 to run after Function 1 has finished. I tried GuiCtrlSetOnEvent and MsgLoop, but i dont really understand it. I tried to read tutorials but they didnt help at all. The line that are underline is what im talking about. I want gamestart() to run first and when its finished, i want iniviteteam() to run. #AutoIt3Wrapper_UseX64=n...
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack
Unid Item Lv Detection
04/22/2010 - Diablo 2 - 2 Replies
Habe irgendwo mal gehört das es ein programm gibt mit dem man das Lvl eines Items sehen kann könnt mir da wer weiterhelfen?
Unid Item Hack???
09/03/2008 - Diablo 2 - 17 Replies
Ich hab mal gehört das es ein Hack geben soll mit dem man die stats von unid Items anschauen kann. :eek: Ich denke, dass das völliger Müll ist oder ist hier jemand anderer Meinung?



All times are GMT +2. The time now is 18:03.


Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2021 elitepvpers All Rights Reserved.