• Welcome to Valhalla Legends Archive.
 

Help With 0x7A

Started by ChR0NiC, February 29, 2004, 03:55 PM

Previous topic - Next topic

ChR0NiC


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...

UserLoser.

#1
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

Stealth

#2
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. :)
- Stealth
Author of StealthBot

ChR0NiC

Quote from: Stealth on February 29, 2004, 04:01 PM
This implies a null-terminated stringlist.
That's not null-terminated. :)

-.-

Little help then -_-

UserLoser.

#4
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

ChR0NiC

#5
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??

Eli_1

yes, that would be a string terminated with a null char  :P

ChR0NiC

#7
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*?

o.OV

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.
If the facts don't fit the theory, change the facts. - Albert Einstein

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.

ChR0NiC

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.

........

effect

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.
Quote from: Mangix on March 22, 2005, 03:03 AM
i am an expert Stealthbot VBScript. Recognize Bitch.

Kp

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.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

ChR0NiC

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 -.-

Arta

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.