Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ChR0NiC on February 29, 2004, 03:55 PM

Title: Help With 0x7A
Post by: ChR0NiC on February 29, 2004, 03:55 PM

Packet ID: 0x7A
Direction: Client -> Server (Sent)
Format:
(DWORD)       Cookie
(STRING[])    Target User
(BYTE)       Rank
Remarks: This message is sent when change rank of a member in clan, only shaman or chieftain can send this packet

Possible values for Rank:

0x00: Peon, Initiate that has been in the clan for less than one week
0x01: Peon, Initiate that has been in the clan for over one week
0x02: Grunt
0x03: Shaman
0x04: Chieftain


This is what I am doing below

With pBuffer
   .InsertDWORD &H0
   .InsertNTString frmMain.W3Clan.SelectedItem.text
   .InsertBYTE &H2
   .SendPacket frmMain.sckBnet, &H7A
End With


The current user I am selecting is a Peon (Over One Week) And I am attempting to promote him to Grunt.....

Anyone have any suggestions???

Edit: Oh, and the problem I am having.....is that is disconnects me, not IP Ban but it disconnects me. So yeah....and it's not promoting as well...
Title: Re:Help With 0x7A
Post by: UserLoser. on February 29, 2004, 03:59 PM
Always use a Null terminated string unless it says otherwise. Especially if it's STRING[] - That's probably an array of strings and otherwise how else the server wouldn't know where to separate the strings for accounts if there was no Null terminator in there
Title: Re:Help With 0x7A
Post by: Stealth on February 29, 2004, 04:01 PM
Quote from: ChR0NiC on February 29, 2004, 03:55 PM(STRING[])    Target User


This implies a null-terminated stringlist.

Quote.InsertNonNTString frmMain.W3Clan.SelectedItem.text

That's not null-terminated. :)
Title: Re:Help With 0x7A
Post by: ChR0NiC on February 29, 2004, 04:03 PM
Quote from: Stealth on February 29, 2004, 04:01 PM
This implies a null-terminated stringlist.
That's not null-terminated. :)

-.-

Little help then -_-
Title: Re:Help With 0x7A
Post by: UserLoser. on February 29, 2004, 04:05 PM
Quote from: ChR0NiC on February 29, 2004, 04:03 PM
Quote from: Stealth on February 29, 2004, 04:01 PM
This implies a null-terminated stringlist.
That's not null-terminated. :)

-.-

Little help then -_-

Here's a hint: You use Null terminated strings when sending chat messages
Title: Re:Help With 0x7A
Post by: ChR0NiC on February 29, 2004, 04:06 PM
Quote from: UserLoser. on February 29, 2004, 04:05 PM
Quote from: ChR0NiC on February 29, 2004, 04:03 PM
Quote from: Stealth on February 29, 2004, 04:01 PM
This implies a null-terminated stringlist.
That's not null-terminated. :)

-.-

Little help then -_-

Here's a hint: You use Null terminated strings when sending chat messages

In other words......InsertNTString
aka String & Chr(0)
right??
Title: Re:Help With 0x7A
Post by: Eli_1 on February 29, 2004, 04:08 PM
yes, that would be a string terminated with a null char  :P
Title: Re:Help With 0x7A
Post by: ChR0NiC on February 29, 2004, 04:09 PM
Quote from: Eli_1 on February 29, 2004, 04:08 PM
yes, that would be a string terminated with a null char  :P

Spare me your smart ass remarks ??

Any other problems ???????????? That you could point out ??

*leans toward UserLoser and Stealth*?
Title: Re:Help With 0x7A
Post by: o.OV on February 29, 2004, 04:35 PM
Quote from: ChR0NiC on February 29, 2004, 04:09 PM
Quote from: Eli_1 on February 29, 2004, 04:08 PM
yes, that would be a string terminated with a null char  :P

Spare me your smart ass remarks ??

Any other problems ???????????? That you could point out ??

*leans toward UserLoser and Stealth*?
You asked.. he answered.
Title: Re:Help With 0x7A
Post by: Arta on February 29, 2004, 05:57 PM
Whoever invented the idea of a 'NonNTString' should be strung up. There's no such thing. Hasn't anyone ever noticed that these so-called NonNTStrings are always 4 bytes long? They're DWORDs. They just happen to look like strings.
Title: Re:Help With 0x7A
Post by: ChR0NiC on February 29, 2004, 06:02 PM
Quote from: Arta[vL] on February 29, 2004, 05:57 PM
Whoever invented the idea of a 'NonNTString' should be strung up. There's no such thing. Hasn't anyone ever noticed that these so-called NonNTStrings are always 4 bytes long? They're DWORDs. They just happen to look like strings.

........
Title: Re:Help With 0x7A
Post by: effect on February 29, 2004, 07:22 PM
Quote from: ChR0NiC on February 29, 2004, 04:09 PM
Spare me your smart ass remarks ??

Then stop expecting everything to be served to you on a silver platter.
Title: Re:Help With 0x7A
Post by: Kp on February 29, 2004, 08:40 PM
Quote from: Arta[vL] on February 29, 2004, 05:57 PM
Whoever invented the idea of a 'NonNTString' should be strung up. There's no such thing. Hasn't anyone ever noticed that these so-called NonNTStrings are always 4 bytes long? They're DWORDs. They just happen to look like strings.

Actually, the ability to insert data of type void is quite useful for dumping in binary objects, such as the password hash.  Of course, NonNTString is a rather stupid name for such an operation.  The operation itself is useful though.
Title: Re:Help With 0x7A
Post by: ChR0NiC on February 29, 2004, 09:45 PM
Quote from: NuLL on February 29, 2004, 07:22 PM
Then stop expecting everything to be served to you on a silver platter.

Hush NuLL, you always gotta throw in your two cents worth -.-
Title: Re:Help With 0x7A
Post by: Arta on March 01, 2004, 04:54 AM
Quote from: Kp on February 29, 2004, 08:40 PM
Quote from: Arta[vL] on February 29, 2004, 05:57 PM
Whoever invented the idea of a 'NonNTString' should be strung up. There's no such thing. Hasn't anyone ever noticed that these so-called NonNTStrings are always 4 bytes long? They're DWORDs. They just happen to look like strings.

Actually, the ability to insert data of type void is quite useful for dumping in binary objects, such as the password hash.  Of course, NonNTString is a rather stupid name for such an operation.  The operation itself is useful though.

Well, sure. All my typed add functions are overloaded and call a function which takes a void*. I doubt that's what whoever made it had in mind though, people tend to add password hashes as individual DWORDs.
Title: Re:Help With 0x7A
Post by: Eli_1 on March 01, 2004, 01:29 PM
Quote from: ChR0NiC on February 29, 2004, 04:09 PM
Quote from: Eli_1 on February 29, 2004, 04:08 PM
yes, that would be a string terminated with a null char  :P

Spare me your smart ass remarks ??

Any other problems ???????????? That you could point out ??

*leans toward UserLoser and Stealth*?
*takes note to never read ChR0NiC's posts again*  ::)
Title: Re:Help With 0x7A
Post by: Eric on March 01, 2004, 02:50 PM
Quote from: Arta[vL] on February 29, 2004, 05:57 PM
Whoever invented the idea of a 'NonNTString' should be strung up. There's no such thing. Hasn't anyone ever noticed that these so-called NonNTStrings are always 4 bytes long? They're DWORDs. They just happen to look like strings.

It makes it a lot easier to insert them as a reversed string than to convert them to DWORD's, atleast for visual refrence it is; it all ends up the same anyway, probably a little faster to just insert them as DWORD's though.

As for who invented them, I don't know, but the first time I saw them, and probably the reason why they're used so widely on Battle.net is DM's PacketBuffer module.
Title: Re:Help With 0x7A
Post by: ChR0NiC on March 01, 2004, 06:40 PM
Quote from: LoRd[nK] on March 01, 2004, 02:50 PM
It makes it a lot easier to insert them as a reversed string than to convert them to DWORD's, atleast for visual refrence it is; it all ends up the same anyway, probably a little faster to just insert them as DWORD's though.

As for who invented them, I don't know, but the first time I saw them, and probably the reason why they're used so widely on Battle.net is DM's PacketBuffer module.

Yeah, I use DM's packet buffer class, and the NonNTSting and NTString etc....all came with it, so I just use it as it is.....sorry Arta :(