Quote:
Originally Posted by denyflbg0504
well as i knew he buy ID kits, ident items but won't sell to merchant. why?
|
Because you have outdated values in your script. Update the values or use a working one above.
The most likely information you need to update:
Code:
;~ Updated $ItemStruct
Local $lItemStruct = DllStructCreate('long id;long agentId;ptr bagequipped;ptr bag;ptr modstruct;long modstructsize;ptr customized;long modelfileid;byte type;byte unknown1;short extraId;short value;byte unknown2[2];long interaction;long modelId;ptr modString;ptr namestring2;ptr namestring;ptr singleitemname;byte itemowner;byte unknown3[9];byte ismaterialsalvageable;byte unknown4;short quantity;byte equipped;byte profession;byte slot')
;~ Description: Returns amount of gold in storage.
Func GetGoldStorage()
Local $lOffset[5] = [0, 0x18, 0x40, 0xF8, 0x94]
; from 80 Local $lReturn = MemoryReadPtr($mBasePointer, $lOffset)
Return $lReturn[1]
EndFunc ;==>GetGoldStorage
;~ Description: Returns amount of gold being carried.
Func GetGoldCharacter()
Local $lOffset[5] = [0, 0x18, 0x40, 0xF8, 0x90]
; from 7C Local $lReturn = MemoryReadPtr($mBasePointer, $lOffset)
Return $lReturn[1]
EndFunc ;==>GetGoldCharacter