Valhalla Legends Forums Archive | Battle.net Bot Development | Re: Clan Message Code

AuthorMessageTime
RealityRipple
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?
September 19, 2006, 7:21 AM
UserLoser
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.
September 22, 2006, 2:14 PM
RealityRipple
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.
September 22, 2006, 11:20 PM
UserLoser
In short, BnetDocs contains no mistake last time I checked.
September 23, 2006, 2:19 AM
RealityRipple
...So is the flag for sending a decline 4 or 5?
September 23, 2006, 2:48 AM
Kp
[quote author=RealityRipple link=topic=15745.msg158752#msg158752 date=1158979691]
...So is the flag for sending a decline 4 or 5?
[/quote]

Yes (based on what you posted).
September 23, 2006, 3:18 AM
RealityRipple
Do you guys enjoy being smart asses about everything?

Here: Which flag is the correct flag for sending a Decline response?
September 23, 2006, 3:24 AM
l2k-Shadow
[quote author=RealityRipple link=topic=15745.msg158756#msg158756 date=1158981888]
Do you guys enjoy being smart asses about everything?

Here: Which flag is the correct flag for sending a Decline response?
[/quote]

Why don't you packet log the client?
September 23, 2006, 3:30 AM
HdxBmx27
[quote author=l2k-Shadow link=topic=15745.msg158759#msg158759 date=1158982205]
[quote author=RealityRipple link=topic=15745.msg158756#msg158756 date=1158981888]
Do you guys enjoy being smart asses about everything?

Here: Which flag is the correct flag for sending a Decline response?
[/quote]

Why don't you packet log the client?
[/quote]
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)~-~
September 23, 2006, 3:38 AM
l2k-Shadow
alright sorry about that then, here:
[code]
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..
[/code]

So client sends 0x04 to decline, 0x06 to accept.
September 23, 2006, 4:15 AM
RealityRipple
Thank you! http://bnetdocs.valhallalegends.com/content.php?Section=d&id=11 needs to be updated...
September 23, 2006, 5:16 AM
Myndfyr
[quote author=RealityRipple link=topic=15745.msg158770#msg158770 date=1158988603]
Thank you! http://bnetdocs.valhallalegends.com/content.php?Section=d&id=11 needs to be updated...
[/quote]
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
[/quote]
4 is decline, 6 is accept.  Looks *exactly* like what l2k-Shadow said.
September 23, 2006, 7:29 AM
RealityRipple
[quote]0x04: Invitation was declined
0x05: Decline[/quote]
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.
September 23, 2006, 8:17 AM
Myndfyr
[quote author=RealityRipple link=topic=15745.msg158778#msg158778 date=1158999464]
5 doesn't show up as delcine anywhere else that i can see.
[/quote]
You don't even have the fucking client!
September 23, 2006, 10:09 AM
RealityRipple
I was talking about in bnetdocs....
September 23, 2006, 10:11 AM

Search