D2Hackit Module Macking Help, plz

PyroKid

Member!
Joined
May 20, 2003
Messages
646
Reaction score
0
Location
I'm back :)
Website
Visit site
I need some help maybe someone here can answer my question.
I need to know how to find out what people say in an in-game message. If anyone can help please reply so I can release my module on the forums :)
 

Korittke

Member!
Joined
Dec 30, 2002
Messages
5,993
Reaction score
0
Website
Visit site
load snifferxp, then
.snifferxp show r 26
then wait to receive some messages and look at how the packet is structured. you should easily be able to figure out which part of the packet is the actual message and which is the player name etc :) it also includes one or two bytes that represent the message length, you could need that too. proceed from there in the onreceive or whatever function to sniff the messages and do something with them.
do you want to make a chatlog program for in-game? :eek: i wanted to make that too but i dont have d2 installed so i cant sniff the packet :(
 

Korittke

Member!
Joined
Dec 30, 2002
Messages
5,993
Reaction score
0
Website
Visit site
Skyline_GTR, STOP advertising your site here all the time, we have a advertisement forum
 

Ultimate Empire

BattleForums Addict
Joined
May 18, 2003
Messages
701
Reaction score
0
if you are talking about c++, then here are a few things.

to send a message to the game and not the server then:

// Start C++ code
server->GamePrintInfo("Message goes Here");
//End code

to send a message to the server or d2hackit if you put a . in front of it then:
//Code Exert

BOOL PRIVATE OnGameCommandSet(char** argv, int argc)
{
if (argc!=2)
return FALSE;
BYTE aPacket[1024];
char aString[1024];
aString[0]=0;
sprintf(aString, "MESSAGE GOES HERE", argv[1]);

for (int i=2; i!=argc; i++)
{
sprintf(aString, "%s %s", aString, argv);
}

sprintf((char*)aPacket, "%c%c%c%s%c%c%c",
0x15, 0x01, 0x00, aString, 0,0,0);
server->GameSendPacketToServer(aPacket, strlen(aString)+6);
//
//





SET=true;
return TRUE;
}

/End Code
 

PyroKid

Member!
Joined
May 20, 2003
Messages
646
Reaction score
0
Location
I'm back :)
Website
Visit site
thanks guys for your help i got it just about figured out now :).
I'll be releasing my module in hopefully a couple hours
 

NewPosts

New threads

Top