Old Posts from last thread, let em die ;)

Status
Not open for further replies.

Greywolf

Member!
Joined
Oct 25, 2003
Messages
115
Reaction score
0
Website
Visit site
hi, great that you are doing this, to help the newbs like me :).

Hi guyz

Ok then let's go

1. Start Diablo 2
2. Enter a game and start loader.exe to start HackIt
3. To load a module (example: trigger) go to your HackIt folder and look for a file named trigger.d2h
4. In game type ".load trigger". You should get th message "Module 'trigger' by bootyjuice loaded!"
I cannot seem to find a file named trigger.d2h :eek:
 

Starfish

Member!
Joined
Feb 23, 2003
Messages
3,594
Reaction score
0
oh, that's from Summits package starter set...but I forgot to add trigger.d2h to my package duh...I'll go looking for it thx for telling me :)

you dont really need it but Ill add it ^^
 

Starfish

Member!
Joined
Feb 23, 2003
Messages
3,594
Reaction score
0
then start! xD
its damn usefull and if u're lucky you might become famous one day for writing smth usefull ^^

AND LET ME REMIND ALL THAT THE TRADEHACK4 METHOD WAS POSTED HERE BUT NO1 HAS WRITTEN A MODULE FOR IT YET :)

:wavey
 

Starfish

Member!
Joined
Feb 23, 2003
Messages
3,594
Reaction score
0
Thx :)

I'll do some researches and create a better tutorial later I guess...gonna try to create some useful modules xD
 

Entos

Member!
Joined
Oct 13, 2003
Messages
496
Reaction score
0
Location
Croatia
Website
entos.at.tt
starfish u rule. great job.
but why havent u made a module for th4 yet??? ur the master...u can do it, go starfish....
 

Starfish

Member!
Joined
Feb 23, 2003
Messages
3,594
Reaction score
0
hmmm TheAce tried it...he tested his module with turkey and me but it didnt work...same thing happended to the guys from BH...either UE didnt tell us everything or its already patched :(
 

Thr3at_Matrix

Member!
Joined
Nov 26, 2003
Messages
65
Reaction score
0
Location
Ontario
Website
Visit site
Re: Start-Making-Modules-Kit II

Originally posted by Starfish

only thing you'll need to buy is Visual Studio 6.0.

Can you use Visual Basic 6.0? cuz i have that :)
 

Starfish

Member!
Joined
Feb 23, 2003
Messages
3,594
Reaction score
0
that's Visua Basic...there's a VB tutorial on my page too lol xD
 

Starfish

Member!
Joined
Feb 23, 2003
Messages
3,594
Reaction score
0
hey CuStOm :)

it was that template that actually made me understand C++...in my old module I had just copied stuff but thx to you I understood! :D
 

sam_the_man

Premium Member
Joined
Oct 2, 2003
Messages
509
Reaction score
2
Location
Boston
StarFish - Real nice tutorial --- thanx alot
alot of ppl appreciate this one heh

-SAM_THE_MAN-
 

NightHaunter

Member
Joined
Jan 23, 2004
Messages
6
Reaction score
0
Location
Denmark
Website
www.nighthaunter.dk
Also a big thx here from me. I've tried a dozen times to start making modules, but I could never figure it out. Thx to you I'm up 'n go :D

So again, thx a lot! I can perhaps make some very simple example programs?

oh, there are a few things I would love to have explained. Can you explain me what the "argv" and "argc" things are?
What I would prefer having explained would be the memcpy. How does that memory thing work?

Like, you have this:
DWORD EXPORT OnGamePacketBeforeSent(BYTE* aPacket, DWORD aLen)
{
if ( aPacket[0] == 0x19 && toggle == 1 )
{
memcpy(itempick,aPacket,5);
itempick[0] = 0x17;
itempicked = 1;
}
return aLen;
}

I know it makes sure that the ID is remembered but how does it work? how do you know the last numer? (the 5 in this example)
Is it number of bytes?

I hope I'm making myself clear :)
 

Starfish

Member!
Joined
Feb 23, 2003
Messages
3,594
Reaction score
0
BOOL PRIVATE OnGameCommandMyCommand(char** argv, int argc)

(Carries parameters with which the function was called)

argc ---> An integer with the number of parameters

argv ---> An array of pointers to C-Style character strings, it's arrey lenght is the value stored in argc, the name of the program is kept in argv[0]

:)rollie)

memcpy, as you said, used to copy ID's of items/NPCs/whatever, though I haven't worked with it yet ... working on TH4 at the moment lol :p
 
Status
Not open for further replies.
Top