• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - fataly

#1
Addchat function...

Public Sub AddChat(Optional ByVal TextColor As Long = vbWhite, Optional ByVal strText As String = "", Optional ByVal ClearTextLenOver As Long = 50000)
    With Form1.rtbChat
        If Len(.Text) > ClearTextLenOver Then .Text = ""
        .SelStart = Len(.Text)
        .SelColor = TextColor
        .SelText = .SelText & strText
        .SelStart = Len(.Text)
    End With
End Sub

But, it can do like this:

text1.text = text1.text + "What ever text you wanna type"

#2
Quote from: Spht on March 16, 2009, 01:59 PM
This is the most weird looking thread to scroll through
Im totally same with you.
#4
First, are u sure u get AE 01? Because u should get af 01 what is not compressed, AF 01 tells  to the client that next packets must decompress.

Public Function GetPacketSize(Data As String) As Long
    Dim tmpData$, RetSize&, OffSet&
    tmpData = Data
    Call GamePacketSize(tmpData, RetSize, OffSet)
    Data = Mid(Data, 1 + OffSet) 'Remove Lengh header
    GetPacketSize = RetSize
End Function

Public Function DecodePacket(Data As String) As String
Dim Size&, OffSet&, OutSize&, outdata$
    GamePacketSize Data, Size, OffSet
    outdata = String((Size * 2) + 200, vbNullChar)
    GamePacketDecode Mid(Data, OffSet + 1), Size, outdata, Len(outdata), OutSize
    DecodePacket = outdata
End Function

Also, when u parse data from d2gs; handle that with boolean. Like:
Public Sub parseD2GS(ByRef Data As String)
    Dim PacketID As Byte
    If InGame = True Then
        Data = DecodePacket(Data)
        PacketID = Asc(Left$(Data, 1))
         Select Case PacketID
        Case &H67: Call modBNET.D2GShandle0x67(Data)
        Case &H6D: Call modBNET.D2GShandle0x6D(Data)
        Case &H15: Call modBNET.D2GShandle0x15(Data)
        Case &H96: Call modBNET.D2GShandle0x96(Data)
        Case &H95: Call modBNET.D2GShandle0x95(Data)
        Case Else
        ShowChat vbRed, "Unparsed Packet: 0x" & Hex(PacketID) & GetLog(Data)
        End Select
    Else
        PacketID = Asc(Left$(Data, 1))
        Select Case PacketID
        Case &HAF:   Call modBNET.D2GSsend0x68(hD2GShash, hD2GSToken)
        Case &H5:    Call modBNET.D2GSsend0x6B
        Case Else
        ShowChat vbRed, "Unparsed Packet: 0x" & Hex(PacketID) & GetLog(Data)
        End Select
    End If
End Sub

And last, u cant capture packets with packet log programs since packets are compressed - you must get decompressing code work and u can capture all right with:
ShowChat vbRed, "Unparsed Packet: 0x" & Hex(PacketID) & GetLog(Data)

I hope i told something what maybe helps you.
#5
Hmm did i miss something? if not then i didnt understunt what he need it.. :D
#6
This is just way giving help:

select case id5

case 0x02: call Melee()
case 0x03: call FFA()
case 0x04: call1v1()
case 0x05: call CTF()
case 0x06: call Greed()
case 0x07: call Slaughter()
case 0x08: call Sudden Death()
case 0x09: call Ladder()
case 0x0A: call UMS()
case 0x0B: callTeam Melee()
case 0x0C: call Team FFA()
case 0x0D: call Team CTF()
case 0x0F: call TvB()
end select

*Vb6


I hope it helps :)
#7
Battle.net Bot Development / D2gs stuff :)
February 13, 2009, 08:23 AM
Wrong or right decompress?

[16:19:08] Connecting..
[16:19:09] Connected!
[16:19:10] Logging Onto Account..
[16:19:10] Cdkeys work.
[16:19:10] Connecting MCP ( 63.240.202.148:6112 )..
[16:19:11] Connected!
[16:19:13] Character logon success.
[16:19:13] Entering Chat.
[16:19:13] Welcome to Battle.net!
[16:19:13] This server is hosted by AT&T.
[16:19:13] There are currently 36613 users playing 25152 games of Diablo II Lord of Destruction, and 219336 users playing 46263 games on Battle.net.
[16:19:13] Last logon: Fri Feb 13  2:18 PM
[16:19:17] Creating game!
[16:19:17] Joining created game..
[16:19:17] 0x1c sent
[16:19:17] 0x22 sent - Version:  0x0C
[16:19:17] Leave chat - 0x10
[16:19:17] Connecting now D2GS (63.240.202.168:4000)
[16:19:17] Connected!
[16:19:17] 0x68 sent
[16:19:17] Unparsed Packet: 0x5
05 7A 09 2E EF                                        .z...

[16:19:17] 0x6B sent - Enter game.
[16:19:17] Unparsed Packet: 0x8F
8F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:18] Unparsed Packet: 0x59
59 D7 28 52 C1 03 46 61 74 61 6C 79 00 00 00 00       Y.(R..Fataly....
00 00 00 00 00 00 00 00 00 00 AA 00 D7 28 52 C1       .............(R.
0C 69 59 F9 FF 1F 76 00 D7 28 52 C1 94 08 D7 28       .iY...v..(R....(
52 C1 00 00 01 02 00 01 01 00 01 D9 00 01 DA 00       R...............
01 DB 00 01 DC 00 01 03 00 01 22 00 26 D7 28 52       ..........".&.(R
C1 D9 00 01 1F 00 23 00 D7 28 52 C1 01 02 00 FF       ......#..(R.....
FF FF FF 5E 01 01 01 01 01 01 01 01 01 01 01 01       ...^............
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01       ................
01 01 01 01 01 01 01 01 00 28 06 00 00 00 00 00       .........(......
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
29 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       )...............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 0B 00 D7 28 52 C1 5F 01 00 00 00 1D 00 19 1D       ....(R._........
01 0F 1D 02 14 1D 03 19 1E 07 00 37 1E 09 00 0F       ...........7....
1E 0B 00 59 1D 0C 01 9C 0E 14 10 D7 28 52 C1 10       ...Y........(R..
00 A2 00 65 08 02 80 06 17 03 02 9C 0E 14 10 6B       ...e...........k
14 A9 F0 10 00 A2 00 65 08 04 80 06 17 03 02 9C       .......e........
0E 14 10 35 8A 54 E8 10 00 A2 00 65 08 06 80 06       ...5.T.....e....
17 03 02 9C 04 14 10 1A 25 2A E4 10 00 A2 00 65       ........%*.....e
00 52 92 36 37 06 02 9D 06 1E 05 8D 12 15 72 00       .R.67.........r.
D7 28 52 C1 11 00 82 00 65 84 08 30 37 47 06 82       .(R.....e..07G..
80 80 81 E1 3F 00 00 00 00 00 00 00 00 00 00 00       ....?...........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:18] Unparsed Packet: 0x9D
9D 06 20 07 46 89 0A A9 00 D7 28 52 C1 11 00 82       .. .F.....(R....
00 65 A4 0A 20 56 37 06 82 80 F0 00 06 06 FF 01       .e.. V7.........
23 00 D7 28 52 C1 01 02 00 FF FF FF FF 23 00 D7       #..(R........#..
28 52 C1 00 00 00 FF FF FF FF 1D 00 19 1D 01 0F       (R..............
1D 02 14 1D 03 19 1E 07 00 37 1E 09 00 0F 1E 0B       .........7......
00 59 1D 0C 01 95 37 80 07 40 16 00 00 00 00 00       .Y....7..@......
00 00 03 00 88 DF 79 42 01 00 19 53 B2 99 53 02       ......yB...S..S.
00 00 00 00 00 00 00 00 07 78 03 98 03 01 07 70       .........x.....p
03 90 03 01 07 70 03 98 03 01 07 78 03 90 03 01       .....p.....x....
07 80 03 90 03 01 07 70 03 A0 03 01 07 78 03 98       .......p.....x..
03 01 07 80 03 98 03 01 07 78 03 A0 03 01 07 80       .........x......
03 A0 03 01 15 00 D7 28 52 C1 79 11 14 12 01 7E       .......(R.y....~
11 00 00 14 AE 25 00 01 82 4F AC 3E 1E BC B6 79       .....%...O.>...y
D2 F0 A6 CC F9 62 C3 17 13 B6 3F EF FC E8 12 6E       .....b....?....n
E4 23 7E CA 7D 88 5D 21 44 91 F4 01 AC 47 89 8A       .#~.}.]!D....G..
3D 9A 00 52 11 09 12 80 0E 01 AA 01 47 89 8A 3D       =..R........G..=
0C 69 59 F9 FF 1F 6D 47 89 8A 3D 52 11 09 12 80       .iY...mG..=R....
51 02 92 0A BB 9F 25 00 4C 11 10 12 02 00 0E 02       Q.....%.L.......
92 0A BB 9F 03 00 02 00 00 00 AC 8E 12 15 7B 98       ..............{.
00 53 11 21 12 80 0E 01 AA 01 8E 12 15 7B 0C 69       .S.!.........{.i
59 F9 FF 1F 6D 8E 12 15 7B 53 11 21 12 80 AC 1C       Y...m...{S.!....
25 2A F6 93 00 54 11 46 12 80 0E 01 AA 01 1C 25       %*...T.F.......%
2A F6 0C 69 59 F9 FF 1F 6D 1C 25 2A F6 54 11 46       *..iY...m.%*.T.F
12 80 51 02 25 15 76 1F 25 00 57 11 3D 12 02 00       ..Q.%.v.%.W.=...
0E 02 25 15 76 1F 03 00 02 00 00 00 51 02 4A 2A       ..%.v.......Q.J*
EC 3E 25 00 4F 11 23 12 02 00 0E 02 4A 2A EC 3E       .>%.O.#.....J*.>
03 00 02 00 00 00 AC A3 24 C5 8E 9B 00 72 11 1B       ........$....r..
12 80 0E 01 AA 01 A3 24 C5 8E 0C 69 59 F9 FF 1F       .......$...iY...
6D A3 24 C5 8E 72 11 1B 12 80 51 02 A9 98 FB 2D       m.$..r....Q....-
0B 01 72 11 15 12 00 00 51 02 52 31 F7 5B 25 00       ..r.....Q.R1.[%.
5A 11 03 12 02 00 0E 02 52 31 F7 5B 03 00 02 00       Z.......R1.[....
00 00 51 02 A4 A2 EE B7 25 00 68 11 1A 12 02 00       ..Q.....%.h.....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00                               ........

[16:19:18] Unparsed Packet: 0xE
0E 02 A4 A2 EE B7 03 00 02 00 00 00 51 02 49 85       ............Q.I.
DD 4F 24 00 78 11 08 12 00 00 A8 00 D7 28 52 C1       .O$.x........(R.
0B 69 AC FC 0F 1D 0C 01 1D 00 19 1D 02 14 AC 39       .i.............9
8A 54 CC 96 00 8B 11 12 12 80 0E 01 AA 01 39 8A       .T............9.
54 CC 0C 69 59 F9 FF 1F 6D 39 8A 54 CC 8B 11 12       T..iY...m9.T....
12 80 AC 73 14 A9 B8 98 00 A4 11 12 12 80 10 11       ...s............
20 00 AA 01 73 14 A9 B8 0C 69 59 F9 FF 1F 6D 73        ...s....iY...ms
14 A9 B8 A4 11 12 12 80 51 02 94 94 D8 7D 77 00       ........Q....}w.
93 11 01 12 02 00 0E 02 94 94 D8 7D 03 01 02 00       ...........}....
00 00 51 02 28 29 B1 FB 25 00 8B 11 F9 11 02 00       ..Q.()..%.......
0E 02 28 29 B1 FB 03 00 02 00 00 00 51 02 51 92       ..()........Q.Q.
62 D7 25 00 86 11 0D 12 02 00 0E 02 51 92 62 D7       b.%.........Q.b.
03 00 02 00 00 00 51 02 A3 24 C5 8E 25 00 9F 11       ......Q..$..%...
02 12 02 00 0E 02 A3 24 C5 8E 03 00 02 00 00 00       .......$........
AC E7 28 52 51 98 00 73 11 44 12 80 10 11 28 00       ..(RQ..s.D....(.
AA 01 E7 28 52 51 0C 69 59 F9 FF 1F 6D E7 28 52       ...(RQ.iY...m.(R
51 73 11 44 12 80 51 02 47 89 8A 3D 4E 00 6B 11       Qs.D..Q.G..=N.k.
23 12 00 00 51 02 8E 12 15 7B 25 00 79 11 43 12       #...Q....{%.y.C.
02 00 0E 02 8E 12 15 7B 03 00 02 00 00 00 51 02       .......{......Q.
1C 25 2A F6 23 00 6C 11 40 12 00 00 51 02 39 8A       .%*.#[email protected].
54 CC 27 00 7D 11 22 12 00 00 51 02 73 14 A9 B8       T.'.}."...Q.s...
81 01 84 11 21 12 00 00 51 02 E7 28 52 51 25 00       ....!...Q..(RQ%.
94 11 25 12 02 00 0E 02 E7 28 52 51 03 00 02 00       ..%......(RQ....
00 00 1D 00 19 1D 01 0F 1D 02 14 1D 03 19 1E 07       ................
00 37 1E 09 00 0F 1E 0B 00 59 1D 0C 01 48 00 00       .7.......Y...H..
D7 28 52 C1 00 00 00 00 04 48 00 00 D7 28 52 C1       .(R......H...(R.
00 00 00 00 5B 24 00 D7 28 52 C1 03 46 61 74 61       ....[$..(R..Fata
6C 79 00 00 00 00 00 00 00 00 00 00 01 00 FF FF       ly..............
00 00 00 00 00 00 00 00 65 D7 28 52 C1 00 00 8D       ........e.(R....
D7 28 52 C1 FF FF 5A 02 04 00 00 00 00 00 46 61       .(R...Z.......Fa
74 61 6C 79 00 00 00 00 00 00 00 00 00 00 66 61       taly..........fa
74 61 6C 79 36 36 36 00 00 00 00 00 00 00 00 00       taly666.........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:19] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:20] NCP: 1032489287 Stop to: 4438 : 4620 Hp: 128
[16:19:21] Player stop, here t1: -32679 T2: 2236 T3: -30454 T4: 2620
[16:19:21] NCP: -1899682653 Stop to: 4472 : 4643 Hp: 128
[16:19:22] NCP: -866874823 Stop to: 4487 : 4636 Hp: 128
[16:19:24] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:25] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:25] Unparsed Packet: 0x8F
8F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:25] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:26] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:26] NCP: -1899682653 Stop to: 4472 : 4643 Hp: 128
[16:19:27] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:27] NCP: -1899682653 Stop to: 4472 : 4643 Hp: 128
[16:19:27] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:28] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:28] NCP: -1899682653 Stop to: 4472 : 4643 Hp: 128
[16:19:29] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:29] NCP: -1899682653 Stop to: 4472 : 4643 Hp: 128
[16:19:30] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:30] NCP: 1032489287 Stop to: 4435 : 4611 Hp: 128
[16:19:30] Unparsed Packet: 0x6B
6B A3 24 C5 8E 0C 00 00 00 00 00 00 78 11 23 12       k.$.........x.#.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00                                                 ..

[16:19:30] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:31] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:31] NCP: -866874823 Stop to: 4498 : 4627 Hp: 128
[16:19:31] NCP: -165010148 Stop to: 4436 : 4678 Hp: 128
[16:19:33] Unparsed Packet: 0x8F
8F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:33] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:35] Unparsed Packet: 0x6B
6B 47 89 8A 3D 0C 00 00 00 00 00 00 53 11 03 12       kG..=.......S...
6D A3 24 C5 8E 78 11 23 12 80 00 00 00 00 00 00       m.$..x.#........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00                               ........

[16:19:38] NCP: -1899682653 Stop to: 4465 : 4641 Hp: 128
[16:19:40] NCP: 1032489287 Stop to: 4435 : 4611 Hp: 128
[16:19:41] NCP: -866874823 Stop to: 4498 : 4633 Hp: 128
[16:19:41] Unparsed Packet: 0x8F
8F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:46] Unparsed Packet: 0x6B
6B 47 89 8A 3D 0C 00 00 00 00 00 00 53 11 03 12       kG..=.......S...
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................


[16:19:46] NCP: -1899682653 Stop to: 4476 : 4635 Hp: 128
[16:19:49] Unparsed Packet: 0x8F
8F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:50] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:51] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:51] NCP: 1032489287 Stop to: 4435 : 4611 Hp: 128
[16:19:51] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:52] NCP: -1899682653 Stop to: 4475 : 4632 Hp: 128
[16:19:52] NCP: -866874823 Stop to: 4487 : 4636 Hp: 128
[16:19:53] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:53] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:54] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:54] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:55] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:56] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:56] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:57] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:57] Unparsed Packet: 0x6B
6B 47 89 8A 3D 0C 00 00 00 00 00 00 53 11 03 12       kG..=.......S...
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................


[16:19:57] Unparsed Packet: 0x8F
8F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00                                           ....

[16:19:58] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:59] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:19:59] NCP: -866874823 Stop to: 4494 : 4637 Hp: 128
[16:20:00] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:20:00] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:20:01] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:20:01] NCP: -1899682653 Stop to: 4476 : 4635 Hp: 128
[16:20:02] NCP: -165010148 Stop to: 4442 : 4675 Hp: 128
[16:20:02] NCP: 1032489287 Stop to: 4435 : 4611 Hp: 128
[16:20:02] Unparsed Packet: 0xB0
B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00       ................
00 00 00 00 00 00 00 00 00 00 00 00                   ............

[16:20:02] Ws 3 Connection Error: Connection is aborted due to timeout or other failure
[16:20:02] Ws 2 Connection Error: Address is not available from the local machine



Public Function DecodePacket(Data As String) As String
Dim Size&, OffSet&, OutSize&, outdata$
    GamePacketSize Data, Size, OffSet
    outdata = String((Size * 2) + 200, vbNullChar)
    GamePacketDecode Mid(Data, OffSet + 1), Size, outdata, Len(outdata), OutSize
    DecodePacket = outdata
End Function


Public Sub parseD2GS(ByRef Data As String)
    Dim PacketID As Byte
    If InGame = True Then
        Data = DecodePacket(Data)
        PacketID = Asc(Left$(Data, 1))
         Select Case PacketID
        Case &H67: Call modBNET.D2GShandle0x67(Data)
        Case &H6D: Call modBNET.D2GShandle0x6D(Data)
        Case &H15: Call modBNET.D2GShandle0x15(Data)
        Case &H96: Call modBNET.D2GShandle0x96(Data)
        Case &H95: Call modBNET.D2GShandle0x95(Data)
        Case Else
        ShowChat vbRed, "Unparsed Packet: 0x" & Hex(PacketID) & GetLog(Data)
        End Select
    Else
        PacketID = Asc(Left$(Data, 1))
        Select Case PacketID
        Case &HAF:   Call modBNET.D2GSsend0x68(hD2GShash, hD2GSToken)
        Case &H2:    Call modBNET.D2GSsend0x6B
        Case Else
        ShowChat vbRed, "Unparsed Packet: 0x" & Hex(PacketID) & GetLog(Data)
        End Select
    End If
End Sub

#8
Thanks for answer, but this dont give me help :( i got my own d2gs pmove allready, only think is that 0x03 what does not work. But i will try.
#9
The code is working, but it dosent move my char.... help me please this is SIMPLE packet but i fail it :FFFF

Public Sub D2GSsend0x03(ByVal px As Integer, ByVal py As Integer)
Dim myx As Integer
Dim myy As Integer
'Left = X-
'Right = X+
'Down = Y-
'Up = Y+
myx = px + 2
myy = py
Call iClear
Call iWORD(myx)
Call iWORD(myy)
Call iHEADER(&H3, D2GS_HEADER)
    Call iPacket(Form1.Winsock3.SocketHandle)
    ShowChat vbGreen, "Moving character from " & px & " : " & myx & " To: " & px & " : " & myy
End Sub



Quote
[20:18:07] Object type : 0
[20:18:07] Object id : 184990981
[20:18:07] location X : 5813
[20:18:07] location y : 4723
[20:18:07] Boolean : 1
[20:18:08] Moving character from 5813 : 4723 To: 5815 : 4723

And packet logs..

63.240.202.62:4000  80.222.42.161:4754  Recv 
0D 58 0C C7 80 1A 5E 05 A6 C3 9A 65 A0             .X....^....e.

63.240.202.62:4000  80.222.42.161:4754   Recv 
0C 58 3A 9F 0D 92 83 C3 61 E9 32 D0                .X:.....a.2.

80.222.42.161:4754  63.240.202.62:4000   Send 
03 B7 16 73 12                                     ...s.
#10
Quote
The ID asigned to a given entity, is to tell 2 of the same kind apart.
For example, if you have 10 falens running around in act1, their ID's will be differnt, so you can clearly tell 1 from the other.
This allows you to tell the server you are now attacking this entity, and not an entity close by, of the same type.
That was the think what i wanted know :) Thanks.
#11
Edited-
#12
0x67 D2GS_COMMOVE
Length = 16
(DWORD) Computer Player ID
(BYTE) Movment Type (0x01=walk, 0x17=run)
(WORD) Moving to Location X -  Reversed !
(WORD) Moving To Location Y -  Reversed !
(WORD) Unknown - 0x01
(BYTE) Unknown (always 0x01/0x07/0x0D/0x0F)
(WORD) Unknown
(BYTE) Unknown


The reversed... what this excatly mean?

And

After i get Timed out game (0x0B or 0xB0 Dont remember which) , what was correct style to connect Realm and start creating new game?

   
#13
It works if i manually write coords, like

Public Sub D2GSsend0x03(ByVal myx As Long, ByVal myy As Long)
myx = px + 2
myy = py
Call iClear
Call iWORD(form1.text1.text)
Call iWORD(form1.text2.text)
Call iHEADER(&H3, D2GS_HEADER)
    Call iPacket(Form1.Winsock3.SocketHandle)
    ShowChat vbGreen, "Moving character from " & px & " : " & py & " To: " & px & " : " & py
End Sub


and this works when i use showchat only to see what coords i have tell to MyX

Public Sub D2GSsend0x03(ByVal myx As Long, ByVal myy As Long)
myx = px + 2
myy = py
Call iClear
ShowChat vbGreen, myx & myy
Call iHEADER(&H3, D2GS_HEADER)
    Call iPacket(Form1.Winsock3.SocketHandle)
    ShowChat vbGreen, "Moving character from " & px & " : " & py & " To: " & px & " : " & py
End Sub


BUT, if i try get x and y coords and send it like this:

Public Sub D2GSsend0x03(ByVal myx As Long, ByVal myy As Long)
myx = px + 2
myy = py
Call iClear
call iWORD(myx)
Call iWORD(myy)
ShowChat vbGreen, myx & myy
Call iHEADER(&H3, D2GS_HEADER)
    Call iPacket(Form1.Winsock3.SocketHandle)
    ShowChat vbGreen, "Moving character from " & px & " : " & py & " To: " & px & " : " & py
End Sub


I just get "Byref argument type mismatch" - and this means i declared something  wrong or not even declared ?

Btw thanks for posting :)
#14
Did u use Google? Because im sure there are no many who write code to you, maybe some1 share parts of code.. ( except others are friendly and help )
#15
My code need "hexi" to work, so.. not working