Item ID Shields ?

12/26/2014 06:32 AlThor79#1
Does any1 know if I can make a bot to take all droped shields?
I know how to do it for special shields with the item ID and I also can get the item ID of shields I have.
But how do I get the item ID of shields I donīt have?

Is there a general ID which includes all shields, or also one for swords, staffs etc.?

Would be nice if any1 could help... it alway takes lots of time to find out which shields can drop in a special region, then to get them to get the item ID and include it to the pickup function then...

No one with an idea? Or does any1 at least have a list with all item IDs?
12/27/2014 12:36 savsuds#2
DllStructGetData($aitem, 'type') ; Shields are type 24
12/27/2014 19:29 AlThor79#3
Thx a lot, was exactly the thing I was looking for. Already had the type ID for shields and all other things, but couldnīt get it to work cause always tried it over the model ID^^
like DllStructGetData($aitem, 'modelID')

Thx again
12/28/2014 10:26 savsuds#4
You are welcome. I copied this list from another website. Should help you out more.
01/04/2015 07:12 AlThor79#5
Made a really nice pickup Gui from it now, also a Store Gui where you can choose which item "types" you pick up/store or sell...

Very useful for most bots... thx
01/04/2015 21:07 phat34#6
Can you post those? I would like to check them out!
01/05/2015 23:27 AlThor79#7
Still working on it... Have problems to get gold items salvaged with a normal ID kit.
Have a nice salvage gui where you should be able to say which items to salvage.

But if I try to salvage gold items I need to accept in gw. Functions like SalvageMaterials() or SalvageMod() also wonīt work here...

So for example if I toggle on Salvage Swords (for iron) then it does what I want if the items are white, but If I have to accept in GW to salvage it I donīt know how to accept it...

any ideas ?

Also the move items to chest is a bit buggy... especially if I want to stack up items. It works with materials but If I try it with colors the Bot just exchanges one color with another in chest...

But can post it here when I got all the problems fixed :-)
01/07/2015 12:57 savsuds#8
Remember blues, purples and golds need to identified prior to salvage, or you get a pop-up box, that has to be answered. Which I believe has not been reversed and given to the public.

Check out:
Code:
;~ Description: Starts a salvaging session of an item.
Func StartSalvage($aItem)
	Local $lOffset[4] = [0, 0x18, 0x2C, 0x62C]
	Local $lSalvageSessionID = MemoryReadPtr($mBasePointer, $lOffset)

	If IsDllStruct($aItem) = 0 Then
		Local $lItemID = $aItem
	Else
		Local $lItemID = DllStructGetData($aItem, 'ID')
	EndIf

	Local $lSalvageKit = FindSalvageKit()
	If $lSalvageKit = 0 Then Return

	DllStructSetData($mSalvage, 2, $lItemID)
	DllStructSetData($mSalvage, 3, FindSalvageKit())
	DllStructSetData($mSalvage, 4, $lSalvageSessionID[1])

	Enqueue($mSalvagePtr, 16)
EndFunc   ;==>StartSalvage
You need to call that prior to calling your SalvageMaterials() or SalvageMod(). It kinda makes sense.

Double click on the salvage kit. Select whether you want to salvage mods or materials. The code sequence works the same.
01/11/2015 10:33 AlThor79#9
Hi again, was skiing for a week so sry for not answering :)

I already made it to answer the pop up box if I just salvage with a cheap salvage kit. Did it like this:

If $lrarity = 2626 Or $lrarity = 2624 Then
StartCheapSalvage($Item, True)
Sleep(GetPing()+500)
ControlSend (GetWindowHandle(), "", "", "j")
Sleep(GetPing()+250)
EndIf

itīs for rarity purple and gold (not needed for blue cause no pop up box there)

The StartCheapSalvage function is like yours just coded it for cheap salvage kits (to buy and use)

But itīs buggy a bit, works most times, but if I have bad ping ---> bot stops or crashes

The other negative thing on:
ControlSend (GetWindowHandle(), "", "", "j") (which says yes in the pop up window) Edit: German Version for that itīs a "j" better would be "Enter" or "y" here...
is that you have to keep open GW also you canīt Disable Rendering then...
It would work whith the pop up window ID but have no clue how to get it.

So reworked it again and use now cheap salvage kits for whites and blues and normal salvage for the rest. A bit more expensive for the bot but who cares...
01/12/2015 10:25 savsuds#10
Glad you got it working. I have never been a big fan of ControlSend. I only posted the function that is buried inside GWA2.
02/17/2022 03:30 Backxtar#11
Has some1 the ids of attributes? Vs demons i need