Valhalla Legends Forums Archive | Battle.net Bot Development | Help With 0x7A

AuthorMessageTime
ChR0NiC
[code]
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
[/code]

This is what I am doing below
[code]
With pBuffer
.InsertDWORD &H0
.InsertNTString frmMain.W3Clan.SelectedItem.text
.InsertBYTE &H2
.SendPacket frmMain.sckBnet, &H7A
End With
[/code]

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...
February 29, 2004, 9:55 PM
UserLoser.
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
February 29, 2004, 9:59 PM
Stealth
[quote author=ChR0NiC link=board=17;threadid=5518;start=0#msg46761 date=1078091723][code](STRING[]) Target User
[/code]
[/quote]

This implies a null-terminated stringlist.

[quote][code].InsertNonNTString frmMain.W3Clan.SelectedItem.text[/code][/quote]

That's not null-terminated. :)
February 29, 2004, 10:01 PM
ChR0NiC
[quote author=Stealth link=board=17;threadid=5518;start=0#msg46764 date=1078092062]
This implies a null-terminated stringlist.
That's not null-terminated. :)
[/quote]

-.-

Little help then -_-
February 29, 2004, 10:03 PM
UserLoser.
[quote author=ChR0NiC link=board=17;threadid=5518;start=0#msg46765 date=1078092190]
[quote author=Stealth link=board=17;threadid=5518;start=0#msg46764 date=1078092062]
This implies a null-terminated stringlist.
That's not null-terminated. :)
[/quote]

-.-

Little help then -_-
[/quote]

Here's a hint: You use Null terminated strings when sending chat messages
February 29, 2004, 10:05 PM
ChR0NiC
[quote author=UserLoser. link=board=17;threadid=5518;start=0#msg46767 date=1078092300]
[quote author=ChR0NiC link=board=17;threadid=5518;start=0#msg46765 date=1078092190]
[quote author=Stealth link=board=17;threadid=5518;start=0#msg46764 date=1078092062]
This implies a null-terminated stringlist.
That's not null-terminated. :)
[/quote]

-.-

Little help then -_-
[/quote]

Here's a hint: You use Null terminated strings when sending chat messages
[/quote]

In other words......InsertNTString
aka String & Chr(0)
right??
February 29, 2004, 10:06 PM
Eli_1
yes, that would be a string terminated with a null char :P
February 29, 2004, 10:08 PM
ChR0NiC
[quote author=Eli_1 link=board=17;threadid=5518;start=0#msg46770 date=1078092485]
yes, that would be a string terminated with a null char :P
[/quote]

Spare me your smart ass remarks ??

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

*leans toward UserLoser and Stealth*?
February 29, 2004, 10:09 PM
o.OV
[quote author=ChR0NiC link=board=17;threadid=5518;start=0#msg46771 date=1078092596]
[quote author=Eli_1 link=board=17;threadid=5518;start=0#msg46770 date=1078092485]
yes, that would be a string terminated with a null char :P
[/quote]

Spare me your smart ass remarks ??

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

*leans toward UserLoser and Stealth*?
[/quote]
You asked.. he answered.
February 29, 2004, 10:35 PM
Arta
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.
February 29, 2004, 11:57 PM
ChR0NiC
[quote author=Arta[vL] link=board=17;threadid=5518;start=0#msg46793 date=1078099046]
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.
[/quote]

........
March 1, 2004, 12:02 AM
Null
[quote author=ChR0NiC link=board=17;threadid=5518;start=0#msg46771 date=1078092596]
Spare me your smart ass remarks ??
[/quote]

Then stop expecting everything to be served to you on a silver platter.
March 1, 2004, 1:22 AM
Kp
[quote author=Arta[vL] link=board=17;threadid=5518;start=0#msg46793 date=1078099046]
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.[/quote]

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.
March 1, 2004, 2:40 AM
ChR0NiC
[quote author=NuLL link=board=17;threadid=5518;start=0#msg46830 date=1078104147]
Then stop expecting everything to be served to you on a silver platter.
[/quote]

Hush NuLL, you always gotta throw in your two cents worth -.-
March 1, 2004, 3:45 AM
Arta
[quote author=Kp link=board=17;threadid=5518;start=0#msg46854 date=1078108847]
[quote author=Arta[vL] link=board=17;threadid=5518;start=0#msg46793 date=1078099046]
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.[/quote]

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.
[/quote]

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.
March 1, 2004, 10:54 AM
Eli_1
[quote author=ChR0NiC link=board=17;threadid=5518;start=0#msg46771 date=1078092596]
[quote author=Eli_1 link=board=17;threadid=5518;start=0#msg46770 date=1078092485]
yes, that would be a string terminated with a null char :P
[/quote]

Spare me your smart ass remarks ??

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

*leans toward UserLoser and Stealth*?
[/quote]
*takes note to never read ChR0NiC's posts again* ::)
March 1, 2004, 7:29 PM
LoRd
[quote author=Arta[vL] link=board=17;threadid=5518;start=0#msg46793 date=1078099046]
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.
[/quote]

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.
March 1, 2004, 8:50 PM
ChR0NiC
[quote author=LoRd[nK] link=board=17;threadid=5518;start=15#msg46946 date=1078174253]
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.
[/quote]

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 :(
March 2, 2004, 12:40 AM

Search