Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.



Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Diablo > Diablo General > Diablo Hacking

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 01-29-2004, 12:43 PM   #1 (permalink)
BattleForums Junior Member
 
Join Date: Dec 2002
Location: germany
Posts: 196
Question on creating modules for d2hackit.

If this is the wrong place plz move that.



My problem is i know a bit of C (i study it now 1 semester) and C++ is not that much different but there a lot of things i do not understand especially with d2hackit.

Is it only posible to interact with recieved and send packets with this 2 functions?
Quote:
DWORD EXPORT OnGamePacketBeforeSent(BYTE* aPacket, DWORD aLen)
{
return aLen;
}

DWORD EXPORT OnGamePacketBeforeReceived(BYTE* aPacket, DWORD aLen)
{
return aLen;
}
Am i forced to use many global variables and check with flags between my functions? For example:

Quote:
/*****ing globals i want locals:*/
BOOL flag = TRUE;
BYTE = pac;

DWORD EXPORT OnGamePacketBeforeReceived(t(BYTE* aPacket, DWORD aLen)
{
if (aPacket == 0x9c && FLAG = FALSE)
{
memcpy(pac, aPacket+1, 4);
flag = TRUE;
}

return aLen;

BOOL PRIVATE OnGameCommandMyCommand(char** argv, int argc)
{

if (flag == TRUE)
{
server->GameSendPacketToServer(pac, 9);
flag = FALSE;
}
else
HOW DO I TELL THE ****ING PROGRAMM HERE THAT IT SHOULD WAIT TILL THAT PACKET IS RECIVED ????
Thats my main problem.

return true;
}
And another problem:

Is it posible to convert BYTE to CHAR anyhow?? I want to logg some packets into a ini file myself for example:
Quote:
BYTE pac;
char buffer[100];

/*[convert here somehow]
buffer should contain than the human readable bytes like 0x19 0x9c 0xa0 ..... */

server->SetHackProfileString("mephduper","1","2",buffer );
magguz is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 01-29-2004, 01:55 PM   #2 (permalink)
BattleForums Senior Member
 
Starfish's Avatar
 
Join Date: Feb 2003
Location: Sweden
Posts: 3,594
Check your pm's ;D
Starfish is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« Q aboot dupe method | best sorcy for pindle »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 02:02 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0