|  |
|  |
06-04-2005, 04:56 PM
|
#1 (permalink)
| Mylictruan
Join Date: Sep 2004 Posts: 280
| Wtf!!!! why does it not work! 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?
__________________ keep your signatures within the limit, and have given you the dimensions. Now you get this for a signature.
Last edited by The Voice Of God; 06-04-2005 at 05:15 PM.
|
| | Heute
| | | | Sponsored Links | |
|
|
06-04-2005, 10:47 PM
|
#2 (permalink)
| Respected Member
Join Date: Jun 2004 Location: OG From '02 Age: 18 Posts: 3,548
| 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. |
| |
06-05-2005, 04:48 AM
|
#3 (permalink)
| BattleForums Junior Member
Join Date: Apr 2005 Location: canaDa Age: 22 Posts: 208
| what mod is that / what does it do?
__________________ 
new forum, come join and become a reg while the site's still growing. |
| |
06-05-2005, 05:27 AM
|
#4 (permalink)
| Respected Member
Join Date: May 2003 Age: 20 Posts: 3,783
| Quote: |
Originally Posted by Trojan Man 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
__________________ Quote: |
Originally Posted by _Ace obviously, if your iq was 80 you would play the bass with your fist | Recently, in MSN: _Ace: holy **** im gonna cum ©m: :umm _Ace: stormshield from meph, mara's from countess _Ace: if andy drops a soj then ill kill my parents ©m: LOL   |
| |
06-05-2005, 10:44 AM
|
#5 (permalink)
| Mylictruan
Join Date: Sep 2004 Posts: 280
| coolmission i know you!you're smart.
you even coded a module or two.
So what is wrong with my code?
__________________ keep your signatures within the limit, and have given you the dimensions. Now you get this for a signature. |
| |
06-05-2005, 11:14 AM
|
#6 (permalink)
| Respected Member
Join Date: Jun 2004 Location: OG From '02 Age: 18 Posts: 3,548
| Quote: |
Originally Posted by coolmission 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  . |
| |
06-05-2005, 11:37 AM
|
#7 (permalink)
| Mylictruan
Join Date: Sep 2004 Posts: 280
| no.d2moma mispelled it.
__________________ keep your signatures within the limit, and have given you the dimensions. Now you get this for a signature. |
| |
06-05-2005, 01:07 PM
|
#8 (permalink)
| Respected Member
Join Date: May 2003 Age: 20 Posts: 3,783
| I didn't code any modules at all. Can't help ya.
__________________ Quote: |
Originally Posted by _Ace obviously, if your iq was 80 you would play the bass with your fist | Recently, in MSN: _Ace: holy **** im gonna cum ©m: :umm _Ace: stormshield from meph, mara's from countess _Ace: if andy drops a soj then ill kill my parents ©m: LOL   |
| |
06-05-2005, 01:08 PM
|
#9 (permalink)
| Mylictruan
Join Date: Sep 2004 Posts: 280
| so it was coolmisson1 then.
__________________ keep your signatures within the limit, and have given you the dimensions. Now you get this for a signature. |
| | | |