edit: all working fine in autoit
mistake was i used char then wchar :D
mistake was i used char then wchar :D
struct ahItemObj
{
*wchar p_ahRow; // 0x00 p->String of full line in AH (A bit broken though?)
char uk1[0x58]; // 0x04 Unknown
*wchar p_fullDescription // 0x5C p->Full description text
uint dwAuctionId // 0xB0 Auction ID
char uk2[0x4] // 0xB4 Unknown
uint dwCurrentBid // 0xB8 Current Bid
uint dwBuyPrice // 0xBC Buy Now price
char uk2[0x8] // 0xC0 Unknown
uint dwItemId // 0xC8 Item ID
char uk2[0x504] // 0xCC Unknown
}
// 15 items per page
for(i = 0 ; i < 15 ; i++)
{
itemIDs[i] = ReadUnicode([[[[[[[[[BASE_CALL]+1C]+18]+8]+2BC]+208]+150]+ i*5D0 + B0]+0])
}
private byte[] refreshAhPagePkt = new byte[]
{
//Header
0x25, 0x00, 0x1A, 0x00,
0x00, 0x00, 0x17, 0x00,
0x00, 0x00, 0x24, 0x03,
0x00, 0x00,
0x00, 0x00, 0x00, 0x00, // Player ID
0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, // Start item offset
0x00, 0x00, 0x00, 0x01,
0x14
};
public void refreshAhPage()
{
//Get size of the packet
int packetSize = refreshAhPagePkt.Length;
if (refreshAhPageAddress == 0)
{
//load packet in memory
loadPacket(refreshAhPagePkt, ref refreshAhPageAddress, ref refreshAhPageAddressRev);
}
// Get your player ID
uint _playerId = MemFunctions.resolveNestedPointer(pr_processHandle, elements.baseCall, 0x1C, 0x34, 0x46C, 0); // v505
byte[] playerId = BitConverter.GetBytes(_playerId);
playerId = playerId.Reverse().ToArray();
MemFunctions.MemWriteBytes(pr_processHandle, refreshAhPageAddress + 14, playerId);
// Get the current AH page
uint _currentPage = MemFunctions.resolveNestedPointer(pr_processHandle, elements.baseCall, 0x1C, 0x18, 0x08, 0x74, 0x278, 0); // v505
byte[] currentPage = BitConverter.GetBytes(_currentPage);
currentPage = currentPage.Reverse().ToArray();
MemFunctions.MemWriteBytes(pr_processHandle, refreshAhPageAddress + 24, currentPage);
sendPacket(refreshAhPageAddressRev, packetSize);
}
Lol! I can speak in binary too - I sound a bit like a dialup modem in real life ^^Quote:
you two talk in english mixed with hex-ish language lol :p