Valhalla Legends Forums Archive | Visual Basic Programming | Sending Simple Ingame Packets.

AuthorMessageTime
phvckmeh
alright im making sorta a stand-alone mod for DIABLO2
basicly what it will do is send that packet that displays the time over your head. ive already got that worked out, and i know what packet i need to send, but i need to know how to accutally send the packet ingame diablo 2

ive tried d2hackit but i really need to do this in VB

basicly what happens is ever 1 seconds, a timer goes off and i want it to send the packet (which i know already) to the server, this way i have a constant "clock" overhead

thx guys 8)
April 1, 2004, 4:08 AM
Eli_1
You need to use code injection, I'll try to find the article on it I found a couple weeks ago and post it here if I can.
April 1, 2004, 7:30 PM
Noodlez
You can use Adron's winsock hook OCX. I used to use it, it worked wonders.
April 2, 2004, 4:18 AM
phvckmeh
where can i find it? search returned nothing
April 2, 2004, 4:41 AM
Adron
Hmm... Well, I'm not sure where that is at. Where did you get it Noodlez?
April 2, 2004, 3:48 PM
Noodlez
[quote author=Adron link=board=31;threadid=6104;start=0#msg53205 date=1080920926]
Hmm... Well, I'm not sure where that is at. Where did you get it Noodlez?
[/quote]
I'm pretty sure you gave me a link to it. One time Grok sent it to me, but it was missing a DLL and didn't work properly.
April 2, 2004, 7:45 PM
Adron
Ah. Well, try grabbing WSHook.dll, Winsockhook.ocx and WinsockhookSamples.zip.
April 3, 2004, 4:33 AM
Adron
[quote author=Noodlez link=board=31;threadid=6104;start=0#msg53233 date=1080935123]
[quote author=Adron link=board=31;threadid=6104;start=0#msg53205 date=1080920926]
Hmm... Well, I'm not sure where that is at. Where did you get it Noodlez?
[/quote]
I'm pretty sure you gave me a link to it. One time Grok sent it to me, but it was missing a DLL and didn't work properly.
[/quote]

What's the date for your files?
April 3, 2004, 4:34 AM
Paul
This may help you also: http://www.blizzhackers.com/phpBB2/viewtopic.php?t=121077 and http://www.blizzhackers.com/phpBB2/viewtopic.php?t=134010
April 3, 2004, 6:21 AM
phvckmeh
example?
April 5, 2004, 6:05 AM
Noodlez
[quote author=Adron link=board=31;threadid=6104;start=0#msg53299 date=1080966827]
Ah. Well, try grabbing WSHook.dll, Winsockhook.ocx and WinsockhookSamples.zip.
[/quote]

Those are the exact files you sent me.
April 7, 2004, 5:21 AM
phvckmeh
thx now how would i use em??
April 13, 2004, 7:09 PM
Adron
It should be possible to unpack them all, regsvr32 the ocx, edit the sample sources to match your configuration and then hit Run.
April 13, 2004, 8:50 PM
Tuberload
[quote]
thx now how would i use em??
[/quote][quote author=Adron link=board=31;threadid=6104;start=0#msg54974 date=1081889447]
It should be possible to unpack them all, regsvr32 the ocx, edit the sample sources to match your configuration and then hit Run.
[/quote]

<headvysarcasm>Whoa, to much to fast...can't...absorb...information. ;D</heavysarcasm>
April 13, 2004, 8:56 PM
Eli_1
[quote author=Tuberload link=board=31;threadid=6104;start=0#msg54977 date=1081889787]
[quote]
thx now how would i use em??
[/quote][quote author=Adron link=board=31;threadid=6104;start=0#msg54974 date=1081889447]
It should be possible to unpack them all, regsvr32 the ocx, edit the sample sources to match your configuration and then hit Run.
[/quote]

Whoa, to much to fast...can't...absorb...information. ;D
[/quote]
Translation:

1.) Unzip the source in "WinsockHookExamples.zip
2.) Start -> Run -> regsvr32 somepath\WinsockHook.OCX
3.) View source that comes with "WinsockHookSamples.zip"
4.) Edit it to fit your needs.
5.) Run it.
April 13, 2004, 9:24 PM
Adron
Something like that. There are two samples. One should run without modification - it just connects some winsocks to each other, then hooks into the data stream using the ocx. The other might need some modification - it hooks a battle.net game, then parses the 0f messages and produces bot-like output in a window. You may have to change the window caption to hook.
April 13, 2004, 9:50 PM
Tuberload
[quote author=Eli_1 link=board=31;threadid=6104;start=0#msg54986 date=1081891477]
[quote author=Tuberload link=board=31;threadid=6104;start=0#msg54977 date=1081889787]
[quote]
thx now how would i use em??
[/quote][quote author=Adron link=board=31;threadid=6104;start=0#msg54974 date=1081889447]
It should be possible to unpack them all, regsvr32 the ocx, edit the sample sources to match your configuration and then hit Run.
[/quote]

Whoa, to much to fast...can't...absorb...information. ;D
[/quote]
Translation:

1.) Unzip the source in "WinsockHookExamples.zip
2.) Start -> Run -> regsvr32 somepath\WinsockHook.OCX
3.) View source that comes with "WinsockHookSamples.zip"
4.) Edit it to fit your needs.
5.) Run it.
[/quote]

Thank you for the translation. Here is a translation of my post: I was being sarcastic. :P
April 13, 2004, 10:28 PM
phvckmeh
alright what happens is i start d2, and run the example and click "hook" then d2 terminated with "we have a big problem here guys" (fron d2loader)

what i want to do is sent a certain packet, while im IN GAME like running around with a character...
April 14, 2004, 12:33 AM
Dyndrilliac
If your using d2loader shouldn't you be able to just inject your own code into the game to load upon the game initializing? Or am I thinking of another d2 alteration...
April 14, 2004, 3:18 AM
phvckmeh
i just need to send a certain *different* packet every couple seconds
April 15, 2004, 9:43 PM
Adron
So, does it work without d2loader? And what does the problem message mean?
April 15, 2004, 10:12 PM
Soul Taker
It seems really buggy to me =/ if I click unhook or close the demo, it crashes the game. Sometimes the game will just vanish randomly and my monitor won't switch refresh rates when I was testing it too.
April 16, 2004, 12:54 AM
Noodlez
It worked perfectly when I used it, I can't remember it ever crashing anything... I did load it into d2 while d2hackit was loaded.
April 16, 2004, 5:24 AM
Adron
At some time, clicking unhook was unsafe and could randomly crash. I thought I'd somewhat fixed that though.
April 16, 2004, 10:49 AM
Spht
Haven't used it on a long time, but I recall Starcraft crashing if I unhook while the game was connected to Battle.net.

And for Warcraft III, it'd only detect messages being sent, and not those which are received. I could hook/unhook fine though.
April 16, 2004, 6:41 PM
Adron
Since it just hooks into a few particular API functions, not working for all games is to be expected. Sounds like it'd need to hook some more functions to get Warcraft III receiving...
April 16, 2004, 8:05 PM
Dyndrilliac
WinInject PacketBuilder

Note: Uses Winsock2, and is a beta.
April 17, 2004, 3:47 PM
Noodlez
What doesn't use winsock2?
April 19, 2004, 5:09 AM
Dyndrilliac
[quote author=Noodlez link=board=31;threadid=6104;start=15#msg55768 date=1082351364]
What doesn't use winsock2?
[/quote]

Old shitty Windows 95 Designed Programs, which winInject used to be at one point.
April 19, 2004, 8:45 AM
baksoto
hi all, where can I download this winInject . can please give me the URL
June 15, 2005, 7:01 AM
QwertyMonster
Please dont bring up dead topics, read the dates.
June 15, 2005, 2:38 PM
Dyndrilliac
http://www.gamehackers.net/~filedump/Misc/w096b_530.zip
June 15, 2005, 9:19 PM
hismajesty
[quote author=[Unknown] link=topic=6104.msg115847#msg115847 date=1118846297]
Please dont bring up dead topics, read the dates.
[/quote]

It was a valid question, I see no problem with bringing up old posts if the post is somewhat useful.
June 20, 2005, 6:07 PM

Search