Wtf!!!! why does it not work!

The Voice Of God

Mylictruan
Joined
Sep 25, 2004
Messages
281
Reaction score
0
Code:
/////////////////////////////////////
// Module made with D2MoMa - By SF
/////////////////////////////////////

// Incudes the D2HackIt Source
#include "Source\ClientCore.cpp"

// Sets up the commands (only supports 4 commands so far)
BOOL PRIVATE OnGameCommandSet(char** argv, int argc);
/////////////////////////////////////

// Clientinfo change things if you want
CLIENTINFO
(
0,1,
"StarFish",
"www.battleforums.com",
"Test Module",
"myemail@meh.com"
)

// This defines the packet 'pack'
BYTE pack[5] = {0x3d, 0x00, 0x00, 0x00, 0x00};

// This will copy/paste bytes if something happens
DWORD EXPORT OnGamePacketBeforeReceived(BYTE* aPacket, DWORD aLen)
{
if ( aPacket[0] == 0x19)
{
// The next line is the function called 'memcpy'
memcpy(pack+1,aPacket+1,4);
server->GamePrintInfo("ÿc8Item ID logged!");
}
return aLen;
}

/////////////////////////////////
// Commnads used in module
/////////////////////////////////

MODULECOMMANDSTRUCT ModuleCommands[]=
{
{
// The help command
"help",
OnGameCommandHelp,
"Displays help textÿc0"
},

{
// Custom command
"start",
OnGameCommandSet,
"Starts Moduleÿc0"
},
////////// End of command list /////
{NULL}
};

BOOL PRIVATE OnGameCommandSet(char** argv, int argc)
{
// *** Add actions here, then close tag ***

// This will drop the item whos ID was memcpy'ed
server->GameSendPacketToServer(pack,5);

////////// End of command //////////
return TRUE;
}
i cant get it too log the id.
is there something out of order?
 

Trojan

Respected Member
Joined
Jun 15, 2004
Messages
3,545
Reaction score
2
Location
OG From '02
Code:
/////////////////////////////////
// Commnads used in module
/////////////////////////////////

MODULECOMMANDSTRUCT ModuleCommands[]=
{
{
// The help command
"help",
OnGameCommandHelp,
"Displays help textÿc0"
},

{
// Custom command
"start",
OnGameCommandSet,
"Starts Moduleÿc0"
},
commnads? maybe thats your error idk.
 

binny

Member!
Joined
Apr 13, 2005
Messages
208
Reaction score
0
Location
canaDa
what mod is that / what does it do?
 

_CM

Respected Member
Joined
May 19, 2003
Messages
3,874
Reaction score
3
Location
Luxembourg
Trojan Man said:
Code:
/////////////////////////////////
// Commnads used in module
/////////////////////////////////

MODULECOMMANDSTRUCT ModuleCommands[]=
{
{
// The help command
"help",
OnGameCommandHelp,
"Displays help textÿc0"
},

{
// Custom command
"start",
OnGameCommandSet,
"Starts Moduleÿc0"
},
commnads? maybe thats your error idk.
everything that is commented out (//) doesn't affect your actual code
 

The Voice Of God

Mylictruan
Joined
Sep 25, 2004
Messages
281
Reaction score
0
coolmission i know you!you're smart.
you even coded a module or two.
So what is wrong with my code?
 

Trojan

Respected Member
Joined
Jun 15, 2004
Messages
3,545
Reaction score
2
Location
OG From '02
coolmission said:
everything that is commented out (//) doesn't affect your actual code
well im not an expert coder ^^.
i just pointed out that he mispelled it :D.
 

The Voice Of God

Mylictruan
Joined
Sep 25, 2004
Messages
281
Reaction score
0
no.d2moma mispelled it.
 

_CM

Respected Member
Joined
May 19, 2003
Messages
3,874
Reaction score
3
Location
Luxembourg
I didn't code any modules at all. Can't help ya.
 

The Voice Of God

Mylictruan
Joined
Sep 25, 2004
Messages
281
Reaction score
0
so it was coolmisson1 then.
 

NewPosts

New threads

Top