oneyedMan
Member!
Hi all, Sincie Starfish put alot of time and effort into making his module maker for D2, it would be nice if everyone posted their modules made with it here ( Code / D2h module Only ) To show the progress of the D2MoMa
*Post any modules Even if they are newbie ones or already been made and released before*
Ill go first
*Post any modules Even if they are newbie ones or already been made and released before*
Ill go first
This is a oneside module i made with d2Moma/////////////////////////////////////
// Module made with D2MoMa - By Oneyedman
/////////////////////////////////////
// Incudes the D2HackIt Source
#include "Source\ClientCore.cpp"
// Sets up the commands (only supports 3 commands so far)
BOOL PRIVATE OnGameCommandSet(char** argv, int argc);
BOOL PRIVATE OnGameCommandSet2(char** argv, int argc);
BOOL PRIVATE OnGameCommandSet3(char** argv, int argc);
/////////////////////////////////////
// Clientinfo change things if you want
CLIENTINFO
(
0,1,
"Oneyedman",
"www.battleforums.com",
"Oneside module",
"Oneyedman@hotmail.com"
)
/////////////////////////////////
// Commnads used in module
/////////////////////////////////
MODULECOMMANDSTRUCT ModuleCommands[]=
{
{
// The help command
"help",
OnGameCommandHelp,
"Displays help textÿc0"
},
{
// This is the "go" command which calles the function Set
"go",
OnGameCommandSet,
"Loads onesideÿc0"
},
////////// End of command list /////
{NULL}
};
//Ok now this is the part that sends the packet to go into oneside
BOOL PRIVATE OnGameCommandSet(char** argv, int argc)
{
//This is the packet used to go into oneside (770d) the number in the [ ] is the number of packets
BYTE pak[2] = {0x77, 0x0d};
server->GameSendPacketToGame(pak,2);
//This will print on your screen saying you are in oneside trade
server->GamePrintInfo("You have now exited trade, but the other person still has the trade screen up, hehe ");
// Add actions here, then close tag
////////// End of command //////////
return TRUE;
}