• Welcome to Valhalla Legends Archive.
 

Packet 0x77 Information

Started by Arthas, December 30, 2003, 12:23 AM

Previous topic - Next topic

Arthas

Here's the code I am using to invite people into clans with:

   With pBuffer
       .InsertDWORD &H1
       .InsertNTString Username
       .SendPacket frmMain.sckBnet, &H77
       .InsertDWORD &H0
       .InsertDWORD &H0
       .InsertDWORD &H0
       .InsertDWORD &H0
       .SendPacket frmMain.sckBnet, &H15
   End With


Not getting IP banned..... It just will not work.

Any suggestions?

Soul Taker

Don't know why you included 0x15 with that.  It looks okay to me, here's what I use:

Public Function CLAN_INVITE(Socket As Integer, strUser As String)
p.InsertDWORD &H0 'cookie
p.InsertNTString strUser
p.SendPacket frmMain.sckBnet(Socket), &H77
End Function

UserLoser.

It's probably that 0x15 of yours...


Public Sub x15()
   With PBuffer
       .InsertDWORD GetDWORD("68XI")
       .InsertDWORD GetDWORD(GetClientID)
       .InsertDWORD &H0
       .InsertDWORD lAdCookie
       .SendPacket &H15
   End With
End Sub

Soar

#3
To Arthas: Packet 0x15 is Adbanner request packet, you should not send it here.

To Soul Taker: In official BN packets, the Cookie of invite packet should be at least 1.


PS, when you are invited by others, you will receive a 0x78 packet, this packet contains Cooke(the same as that one in 0x77 packet invitor sent), clan tag, clan name and invitor account name.
You can reply it with that Cookie and a result byte(04 - decline  06 - accept)

UserLoser.

#4
I believe the Warcraft III game client it's self has a static variable that increments each time (starts at 1), and is used as a cookie.   I've seen it in some other War3-game packets such as 0x61.  Not sure if the game does the same for clan packets

Soar

the Cookie increases when you invite multiple users to your clan.
In clan packets, some Cookies are increased by client(just like invite, remove and so on) and some are increased by server(just like create, and seems only these packets, 0x71 and 0x72)

Arthas

#6
Either or, it's not working. With or without the 0x15 packet.

So, does your Clan Invite packet work at the moment? Or is it... Screwed up also? Just wondering...

-Arthas

UserLoser.

Make sure:

1) You're in a clan
2) You're the chieftain or shamen
3) The user your trying to invite is in your channel (not sure 100% if this matters)

Arthas

lol, I know all that.

I'll try somthing else......

Thanks anyways.

Soar

Please don't insert NTString, just insert a string. The username should be ended by a '\0' character.

Arthas

Sorry, I feel retarded. Though it's not excactly my fault  :P

My clan was FULL........ lol. Sorry for wasting your time  :-[

Soul Taker

Quote from: Soar on December 30, 2003, 09:52 PM
Please don't insert NTString, just insert a string. The username should be ended by a '\0' character.
Why?  It's much simpler to grab the name from the userlist and send it as a proper string than it is to append a null byte and send a non-NT string.

Soar

sorry, it's my fault
in C codes, NTString = None-Terminate String
Seems in VB codes, NTString =Null-Terminated String

Kp

Quote from: Soar on December 31, 2003, 09:39 AM
in C codes, NTString = None-Terminate String

Who taught you that?  I've never seen that designation.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Soar

in bnetd packet.c/packet.h
packet_append_ntstring()
and
packet_append_string(),

:)