• Welcome to Valhalla Legends Archive.
 

0x82 (SID_CLANMEMBERINFO)

Started by vuther.de, March 07, 2005, 10:06 PM

Previous topic - Next topic

vuther.de

I've been trying to parse this packet and it has been a big hassle, i've asked like 2/3 people have none of them could figure this out. The status always returns 0, the rank works, clan works, and date joined doesn't really work.
Here's my code for my parsing:
       
Case &H82
Dim strClanName As String, intPosition As Integer, bytRank As Byte, strDateJoined As String
   
    intPosition = 9

'status
bytStatus = Asc(Mid(strData, intPosition, 1))
    intPosition = intPosition + Len(bytStatus)

'clan name
strClanName = KillNull(Mid(strData, intPosition, InStr(intPosition, strData, Chr(0)) - 1))
    intPosition = intPosition + Len(strClanName) + 1

'rank
bytRank = Asc(Mid(strData, intPosition, 1))
    intPosition = intPosition + Len(bytRank)

'date joined
strDateJoined = Asc(Mid(strData, intPosition, 8))
    intPosition = intPosition + Len(strDateJoined)

AddChat vbBlue, "Status: " & GetStatus(bytStatus)
AddChat vbBlue, "Clan name: " & strClanName
AddChat vbBlue, "Rank: " & GetRankName(bytRank)

FT = StringToFileTime(strDateJoined)
Call FileTimeToSystemTime(FT, ST)
AddChat vbBlue, "Date joined: " & ST.wMonth & "/" & ST.wDay & "/" & ST.wYear & " @ " & Format(ST.wHour & ":" & ST.w
Minute & ":" & ST.wSecond, "HH:MM:SS ampm")


UserLoser.

What does it output?  Supply packet logs, too

vuther.de

#2
[11:33:59 PM] Status: 0
[11:33:59 PM] Clan name: Dark Council
[11:33:59 PM] Rank: Grunt
[11:33:59 PM] Date joined: 1/1/1601 @ 11:27:11 AM


[11:31:44 PM] BNET: Packet sent: 0x82
[11:31:44 PM] Output dump: 0000:  00 00 00 00 00 00 43 44 6D 65 63 63 61 5B 44 43   ......CDmecca[DC
0010:  5D 00                                             ]...............
[11:31:45 PM] BNET: Packet received: 0x82
[11:31:45 PM] Output dump: 0000:  FF 82 1F 00 00 00 00 00 00 44 61 72 6B 20 43 6F   ÿ,......Dark Co
0010:  75 6E 63 69 6C 00 02 60 38 8D 0B AD 1B C5 01      uncil.`8? ­Å.

UserLoser.

#3
I don't think Asc(Mid(strData, intPosition, 8)) is correct

vuther.de


UserLoser.

Quote from: inner. on March 08, 2005, 12:09 AM
Why? What's wrong with it?

For one it's a filetime struct, not a string.  Secondly, Asc() cannot return anything larger than an 8-bit value, and a filetime struct consists of two 32-bit values

vuther.de


CrAz3D

mid(data,position,8)
give that a whirley do
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Kp

Cast it to a FILETIME struct? :P
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

CrAz3D

rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

MyndFyre

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

vuther.de


CrAz3D

Quote from: MyndFyre on March 08, 2005, 05:42 PM
Quote from: CrAz3D on March 08, 2005, 04:48 PM
Why would he do that? ::)

Because that's what it is?  ::)
My eyes were misread I guess,
Quote from: CrAz3D on March 08, 2005, 04:48 PM
was meant as sarcasm as he already knew it was a FileTime
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

vuther.de

Ok well, I still cannot get this to work, pissing the hell out of me :'(

CrAz3D

#14
Quote[8:34:17 PM] Status: 0
[8:34:17 PM] Clan name: Dark Council
[8:34:17 PM] Rank: 2
[8:34:17 PM] Date joined: 3/8/2005 @ 08:31:56 PM
Silly Inner, you must be requesting something wrong?

Is the 'DateJoinned' supposed to be the date the user joinned the channel?
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...