Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 01:56

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

Advertisement



Question about Guild Wars memory offsets

Discussion on Question about Guild Wars memory offsets within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 4
Received Thanks: 0
Question Question about Guild Wars memory offsets

Hello, I'm wondering how to find in the ram the offsets for the Local/Trade channel .

Is it possible ?
It can't be done using tsearch or cheat engine ?
Scottyous is offline  
Old 01/03/2011, 18:45   #2


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,283
What do u exactly want? What should the Address contain and what should it's value indicate?
buFFy! is offline  
Old 01/03/2011, 18:56   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 4
Received Thanks: 0
The address should contain the content of the Local or Trade channel, the value is a text, like "Want to buy ectos"
Scottyous is offline  
Old 01/03/2011, 19:03   #4


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,283
ChatLogHook.h
Code:
#ifndef _CHATLOGHOOK_H
#define _CHATLOGHOOK_H

#include <iostream>
#include <windows.h>

/*
00592E60 - 66 83 3a 00                - cmp word ptr [edx],00
00592E64 - 56                         - push esi
00592E65 - 57                         - push edi
00592E66 - 8b c1                      - mov eax,ecx
*/

const BYTE ChatLogHookCode[] = {
	0x66, 0x83, 0x3A, 0x00, 0x56, 0x57, 0x8B, 0xC1
};

bool CreateChatLogHook(void);

#endif /* _CHATLOGHOOK_H */
ChatLogHook.cpp
Code:
#include "ChatLogHook.h"

BYTE* ChatLogHook;
DWORD ptrChatMsg;
DWORD ChatLogRet;
wchar_t* ChatMessage;

__declspec(naked) void ChatHook(void){
	_asm{
		CMP WORD PTR [EDX], 0x00
		PUSH ESI
		MOV ptrChatMsg, ECX
	}

	ChatMessage = (wchar_t*)(ptrChatMsg);
	wprintf(L"%s\n", ChatMessage);

	_asm JMP ChatLogRet
}

bool CreateChatLogHook(void){
	BYTE* start = (BYTE*)0x00401000;
	BYTE* end = (BYTE*)0x00900000;
	
	while(start!=end){
		if(!memcmp(start, ChatLogHookCode, sizeof(ChatLogHookCode))){
			ChatLogHook = start;
			ChatLogRet = (DWORD)ChatLogHook + 0x5;
			break;
		}
		start++;
	}
	printf("ChatLogHook:%X; ChatLogRet:%X\n", (DWORD)ChatLogHook, ChatLogRet);

	DWORD OldProtect;
	if(VirtualProtect((void*)(ChatLogHook), 20, PAGE_EXECUTE_READWRITE, &OldProtect)){
		*(BYTE*)(ChatLogHook) = 0xE9;
		*(DWORD*)((DWORD)(ChatLogHook+1)) = ((DWORD)(ChatHook) - (DWORD)(ChatLogHook) - 5);
		VirtualProtect((void*)(ChatLogHook), 20, OldProtect, 0);
	}
	else{
		printf("error\n");
		return false;
	}	

	return true;
}
Crediz to wadim.
buFFy! is offline  
Old 01/04/2011, 16:51   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 4
Received Thanks: 0
Thank you very much
Scottyous is offline  
Reply


Similar Threads Similar Threads
[Tutorial] Memory Handeling in Guild Wars {Au3}
02/26/2012 - GW Bots - 62 Replies
Herzlich willkommen zu meinem Memory Tutorial. Ich werde hier auf das Memory Handeling in AutoIT anhand von Guild Wars zeigen. Doch was sind Memorys? Damit waeren wir bei unseren ersten Punkt. Was sind Memories? 1. Was sind Memorys? Memories sind Speicheradressen. Ich bin jetzt einfach so dreist, und kopiere Wikipedia hier rein: Speicheradresse ? Wikipedia
[Question] WriteProcess Memory with Offsets
06/13/2010 - CO2 Programming - 3 Replies
The base address is 0x0045cc20 and the following offset is 0xEC found by cheat engine. My code without offset public void Write(int val) { byte bytes = new byte; bytes = (byte)val;
Does guild wars scan memory?
07/08/2009 - GW Bots - 1 Replies
Does guild wars use anything like warden to detect cheats?



All times are GMT +2. The time now is 01:56.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.