[Help]Retrieving backpack item attributes doesn't work perfectly menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    joxxe87's Avatar Corporal
    Reputation
    5
    Join Date
    Aug 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah sweet!
    Im not that familiar with AutoIt.

    Just need to get sno id from items then its done

    Anyone able to get the sno id?
    Last edited by joxxe87; 08-08-2012 at 11:52 AM.

    [Help]Retrieving backpack item attributes doesn't work perfectly
  2. #17
    hb123220's Avatar Sergeant
    Reputation
    8
    Join Date
    Mar 2012
    Posts
    40
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what else can i get from GameBalance SNO? i got the item lvl but cant find Intelligence,Dexterity,,ect..

  3. #18
    lamoreiria0's Avatar Private
    Reputation
    1
    Join Date
    Aug 2012
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i am online now .


  4. #19
    joxxe87's Avatar Corporal
    Reputation
    5
    Join Date
    Aug 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hb123220 View Post
    what else can i get from GameBalance SNO? i got the item lvl but cant find Intelligence,Dexterity,,ect..
    I tried some addresses found here:
    http://d3inferno.com/Items.gam.html

    But the values i tried doesnt work (max/min-damage, armor min/max)

    Anyway i have this code for trying to get snoid of items:
    Code:
    	$_Count = _MemoryRead($_LocalActor_Count, $d3, 'int')
    	$CurrentOffset = $_LocalActor_3
    	Local $list[$_Count+1][5]
    	For $i = 0 To $_Count
    		$list[$i][0] = _MemoryRead($CurrentOffset, $d3, 'ptr') ;addr
    		$list[$i][1] = _MemoryRead($CurrentOffset + 0x4, $d3, 'char[64]') ;name
    		$list[$i][2] = _MemoryRead($CurrentOffset + 0xB4, $d3, 'int') ;snoid?
    		$list[$i][3] = _MemoryRead($CurrentOffset + 0x114, $d3, 'int') ;place 0=bag, 15=stash
    		$list[$i][4] = _MemoryRead($CurrentOffset + $ofs_LocalActor_atribGUID, $d3, 'ptr')
    		$CurrentOffset = $CurrentOffset + $ofs_LocalActor_StrucSize
    	Next
    	_ArrayDisplay($list,"",-1,0,"","|","Row|Address|Name|Snoid|Place|More")
    But the values doesnt match the ones found when showing item lvl.

    EDIT:
    Added the following

    $__ACTOR[$i][4] = _MemoryRead($CurrentOffset+0xB4, $d3, 'int')

    to IterateLocalActor() function. But it does not work either :/
    Last edited by joxxe87; 08-09-2012 at 06:57 AM.

  5. #20
    joxxe87's Avatar Corporal
    Reputation
    5
    Join Date
    Aug 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YEAAAAAH!! Finaly. Got it

    Code:
    Func MapItemWithLvl($items,$snowithlvl)
    	Local $newItems[UBound($items)][4]
    	for $i = 0 TO UBound($items) - 1 Step 1
    		for $j = 0 TO UBound($snowithlvl) - 1 Step 1
    			if $snowithlvl[$j][0] = $items[$i][2] Then
    				$newItems[$i][0] = $items[$i][0]
    				$newItems[$i][1] = $items[$i][1]
    				$newItems[$i][2] = $items[$i][2]
    				$newItems[$i][3] = $snowithlvl[$j][1] ;lvl
    				ExitLoop
    			EndIf
    		Next
    	Next
    	; Move backwards through the array deleting the blank lines
    	For $i = UBound($newItems) - 1 To 0 Step -1
    		If $newItems[$i][0] = "" Then
    			_ArrayDelete($newItems, $i)
    		EndIf
    	Next
    	return $newItems
    EndFunc
    
    Func GetLevels($offset)
    	if $offset <> 0 Then
    		$ofs = $offset + 0x218;
    		$read = _MemoryRead($ofs, $d3, 'int')
    		while $read = 0
    			$ofs += 0x4
    			$read = _MemoryRead($ofs, $d3, 'int')
    		WEnd
    		$size =  _MemoryRead($ofs+0x4, $d3, 'int')
    		$size -= 0x5F0
    		$ofs = $offset + _MemoryRead($ofs, $d3, 'int')
    		$nr = $size/0x5F0
    		Local $snoItems[$nr+1][3]
    		$j = 0
    		for $i = 0 To $size Step 0x5F0
    			$ofs_address = $ofs+$i
    			$snoItems[$j][0] = _MemoryRead($ofs_address, $d3, 'ptr')
    			$snoItems[$j][1] = _MemoryRead($ofs_address+0x114, $d3, 'int')
    			$j += 1
    		Next
    	EndIf
    
    	return $snoItems
    EndFunc
    
    Func Stats()
    	$list = IndexSNO($gameBalance)
    	$armorOffs = 0
    	for $j = 0 TO UBound($list) - 1
    		if($list[$j][1] = 19750) Then ;19750 = armor, 19754 = weapon
    			;armor offset found!
    			DEBUG("SNOID" & $list[$j][1] & " OFFSET : " & $list[$j][0])
    			$armorOffs = $list[$j][0]
    		EndIf
    		if($list[$j][1] = 19754) Then ;19750 = armor, 19754 = weapon
    			;wpn offset found
    			$weaponOffs = $list[$j][0]
    			ExitLoop
    		EndIf
    	Next
    	$armorItems = GetLevels($armorOffs)
    	$weaponItems = GetLevels($weaponOffs)
    	;;;;iterate things
    	$CurrentOffset = $_LocalActor_3
    	$_Count = _MemoryRead($_LocalActor_Count, $d3, 'int')
    	Global $DATA[$_Count + 1][3]
    	For $i = 0 To $_Count
    		$DATA[$i][0] = _MemoryRead($CurrentOffset, $d3, 'ptr')
    		$DATA[$i][1] = _MemoryRead($CurrentOffset + 0x4, $d3, 'char[64]')
    		$DATA[$i][2] = _MemoryRead($CurrentOffset + 0x0B4, $d3, 'int')
    		$CurrentOffset = $CurrentOffset + $ofs_LocalActor_StrucSize
    	Next
    	$armorItemsWithLvl = MapItemWithLvl($DATA,$armorItems)
    	$weaponItemsWithLvl = MapItemWithLvl($DATA,$weaponItems)
    	_ArrayDisplay($armorItemsWithLvl)
    	_ArrayDisplay($weaponItemsWithLvl)
    EndFunc
    Now some sleep then make something usefull from the code tomorrow At least it shows items and their level.
    Last edited by joxxe87; 08-09-2012 at 07:17 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Help][C++]Freeze doesn't work!
    By Timzorize in forum Programming
    Replies: 6
    Last Post: 02-04-2009, 10:10 PM
  2. [Help] One part of my lua script doesn't work correctly
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 06-07-2008, 09:17 AM
  3. [Help] Trainer's doesn't work..
    By chanceless in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-24-2008, 01:45 PM
  4. Gold to Karazhan doesn't work,help please
    By Raijin in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-10-2006, 07:40 PM
All times are GMT -5. The time now is 02:09 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search