Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: RealityRipple on September 19, 2006, 02:21 AM

Title: Clan Message Code
Post by: RealityRipple on September 19, 2006, 02:21 AM
Ok, I've been trying to figure out where the mistake is here:

Constants: http://bnetdocs.valhallalegends.com/consts.php?Type=o&Set=clan&Lang=cpp

Message Codes: http://bnetdocs.valhallalegends.com/content.php?Section=d&id=11

SID_CLANINVITATIONRESPONSE: http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=378

The first one says 0x04 is Decline, and 0x05 is Unavailable
The second one says 0x04 is Declined (meaning it's the response from bnet), and 0x05 is Decline (meaining it's what the client sends)
The last one says 0x04 is the one to send for decline.
Also, SID_CLANCREATIONINVITATION ( http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=398 ) has a "Status" Byte with no documentation. I guess it's the same as SID_CLANINVITATIONRESPONSE's Response Byte, even with different naming. Can someone explain all this to me?
Title: Re: Clan Message Code
Post by: UserLoser on September 22, 2006, 09:14 AM
Status codes remain static across all of the clan messages.  Meaning, if 4 is deny invitation in one message, then it's deny invitation in all messages.  I'm not quite sure what you're asking.
Title: Re: Clan Message Code
Post by: RealityRipple on September 22, 2006, 06:20 PM
It contradicts itself though. the message codes page says 5 is to decline and 4 is declined, as in the target user has declined the request, where other things say 4 is to decline.
Title: Re: Clan Message Code
Post by: UserLoser on September 22, 2006, 09:19 PM
In short, BnetDocs contains no mistake last time I checked.
Title: Re: Clan Message Code
Post by: RealityRipple on September 22, 2006, 09:48 PM
...So is the flag for sending a decline 4 or 5?
Title: Re: Clan Message Code
Post by: Kp on September 22, 2006, 10:18 PM
Quote from: RealityRipple on September 22, 2006, 09:48 PM
...So is the flag for sending a decline 4 or 5?

Yes (based on what you posted).
Title: Re: Clan Message Code
Post by: RealityRipple on September 22, 2006, 10:24 PM
Do you guys enjoy being smart asses about everything?

Here: Which flag is the correct flag for sending a Decline response?
Title: Re: Clan Message Code
Post by: l2k-Shadow on September 22, 2006, 10:30 PM
Quote from: RealityRipple on September 22, 2006, 10:24 PM
Do you guys enjoy being smart asses about everything?

Here: Which flag is the correct flag for sending a Decline response?

Why don't you packet log the client?
Title: Re: Clan Message Code
Post by: Hdx on September 22, 2006, 10:38 PM
Quote from: l2k-Shadow on September 22, 2006, 10:30 PM
Quote from: RealityRipple on September 22, 2006, 10:24 PM
Do you guys enjoy being smart asses about everything?

Here: Which flag is the correct flag for sending a Decline response?

Why don't you packet log the client?
He has stated many times that he dosen't ahve the client >.<
I would do it for him, but my comp is messing up.
Would someone please Post a full log of everything so that we can use it as a referance?
~-~(HDX)~-~
Title: Re: Clan Message Code
Post by: l2k-Shadow on September 22, 2006, 11:15 PM
alright sorry about that then, here:

C->S 0x71 (CREATE CLAN)

0030                  ff 71 8b 00 01 00 00 00 6c 32  .H.....q......l2
0040   75 74 68 6c 65 73 73 20 4b 69 6c 6c 61 7a 00 00  uthless Killaz..
0050   6b 32 6c 09 6c 32 6b 2d 73 68 61 64 6f 77 35 00  k2l.l2k-shadow5.
0060   6c 32 6b 2d 73 68 61 64 6f 77 36 00 6c 32 6b 2d  l2k-shadow6.l2k-
0070   73 68 61 64 6f 77 37 00 6c 32 6b 2d 73 68 61 64  shadow7.l2k-shad
0080   6f 77 38 00 6c 32 6b 2d 73 68 61 64 6f 77 39 00  ow8.l2k-shadow9.
0090   6c 32 6b 2d 73 68 61 64 6f 77 31 30 00 6c 32 6b  l2k-shadow10.l2k
00a0   2d 53 68 61 64 6f 77 32 00 6c 32 6b 2d 53 68 61  -Shadow2.l2k-Sha
00b0   64 6f 77 34 00 6c 32 6b 2d 53 68 61 64 6f 77 33  dow4.l2k-Shadow3
00c0   00                                               .


C->S 0x72 (DECLINE CLAN CREATE)

0030                  ff 72 19 00 a0 7d 08 00 00 6b  .......r...}...k
0040   32 6c 6c 32 6b 2d 53 68 61 64 6f 77 31 00 04     2ll2k-Shadow1..

C->S 0x72 (ACCEPT CLAN CREATE)

0030                  ff 72 19 00 ad 7d 08 00 00 6b  .Yw....r...}...k
0040   32 6c 6c 32 6b 2d 53 68 61 64 6f 77 31 00 06     2ll2k-Shadow1..

C->S 0x79 (DECLINE CLAN INVITE)

0030                  ff 79 19 00 d5 7d 08 00 00 6b  ..A....y...}...k
0040   32 6c 6c 32 6b 2d 53 68 61 64 6f 77 31 00 04     2ll2k-Shadow1..

C->S 0x79 (ACCEPT) CLAN INVITE)

0030                  ff 79 19 00 d5 7d 08 00 00 6b  ..A....y...}...k
0040   32 6c 6c 32 6b 2d 53 68 61 64 6f 77 31 00 06     2ll2k-Shadow1..


So client sends 0x04 to decline, 0x06 to accept.
Title: Re: Clan Message Code
Post by: RealityRipple on September 23, 2006, 12:16 AM
Thank you! http://bnetdocs.valhallalegends.com/content.php?Section=d&id=11 needs to be updated...
Title: Re: Clan Message Code
Post by: MyndFyre on September 23, 2006, 02:29 AM
Quote from: RealityRipple on September 23, 2006, 12:16 AM
Thank you! http://bnetdocs.valhallalegends.com/content.php?Section=d&id=11 needs to be updated...
Uh, no:

Quote
0x00: Success
0x01: In use
0x02: Too soon
0x03: Not enough members
0x04: Invitation was declined
0x05: Decline
0x06: Accept
0x07: Not authorized
0x08: User not found
0x09: Clan is full
0x0A: Bad tag
0x0B: Bad name
4 is decline, 6 is accept.  Looks *exactly* like what l2k-Shadow said.
Title: Re: Clan Message Code
Post by: RealityRipple on September 23, 2006, 03:17 AM
Quote0x04: Invitation was declined
0x05: Decline
4 implies that it is a response. the invitation was declined. Also, 5 doesn't show up as delcine anywhere else that i can see.
Title: Re: Clan Message Code
Post by: MyndFyre on September 23, 2006, 05:09 AM
Quote from: RealityRipple on September 23, 2006, 03:17 AM
5 doesn't show up as delcine anywhere else that i can see.
You don't even have the fucking client!
Title: Re: Clan Message Code
Post by: RealityRipple on September 23, 2006, 05:11 AM
I was talking about in bnetdocs....