Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: OuTLawZGoSu on April 21, 2004, 09:32 PM

Title: Profile Help
Post by: OuTLawZGoSu on April 21, 2004, 09:32 PM
Aight, I got this.

With PBuffer
    .InsertDWORD 1
    .InsertDWORD 4
    .InsertNTString Me.Caption
    .InsertNTString "profile\sex"
    .InsertNTString "profile\age"
    .InsertNTString "profile\location"
    .InsertNTString "profile\description"
    .InsertNTString txtSex.Text
    .InsertNTString txtAge.Text
    .InsertNTString txtLocation.Text
    .InsertNTString txtDescription.Text
    .sendPacket &H27
End With


Everything works fine. I just want to know this, I need to add only the Description and nothing else.
How can I do this?

I've tryed this:


With PBuffer
    .InsertDWORD 1
    .InsertDWORD 4
    .InsertNTString Me.Caption
    .InsertNTString "profile\description"
    .InsertNTString txtDescription.Text
    .sendPacket &H27
End With

'Results in an IP ban


Title: Re:Profile Help
Post by: Eric on April 21, 2004, 09:42 PM
The second DWORD in 0x26 is how many keys you wish to request, in your case, 1.
Title: Re:Profile Help
Post by: OuTLawZGoSu on April 21, 2004, 09:59 PM

Private Sub Command5_Click()
With PBuffer
    .InsertDWORD 1
    .InsertDWORD 1
    .InsertNTString Me.Caption
    .InsertNTString "profile\description"
    .InsertNTString txtDescription.Text
    .sendPacket &H27
End With
End Sub


Good shit LoRd. Thx a lot.
Title: Re:Profile Help
Post by: iago on April 22, 2004, 11:33 AM
Incidentally, storing the username in an object (and retrieving with .caption) isn't the best place, you should have a variable for it.  In my opinion, anyway :)
Title: Re:Profile Help
Post by: MyndFyre on April 22, 2004, 06:15 PM
Quote from: iago on April 22, 2004, 11:33 AM
Incidentally, storing the username in an object (and retrieving with .caption) isn't the best place, you should have a variable for it.  In my opinion, anyway :)

Very true.  What happens if, down the line, you want to say, "Profile Display -- {Name}" ?
Title: Re:Profile Help
Post by: OuTLawZGoSu on April 22, 2004, 08:47 PM
Quote from: iago on April 22, 2004, 11:33 AM
Incidentally, storing the username in an object (and retrieving with .caption) isn't the best place, you should have a variable for it.  In my opinion, anyway :)

Eh... Not sure wat you're talkin about. How can I store it in a variable?
Title: Re:Profile Help
Post by: Eli_1 on April 22, 2004, 09:07 PM
Quote from: OuTLawZGoSu on April 22, 2004, 08:47 PM
Quote from: iago on April 22, 2004, 11:33 AM
Incidentally, storing the username in an object (and retrieving with .caption) isn't the best place, you should have a variable for it.  In my opinion, anyway :)

Eh... Not sure wat you're talkin about. How can I store it in a variable?
Dim x29z4 as String
x29z4 = "S0m3v4lu3"

Be sure to use cryptic variable names like that though, because it's ub3r leet!
Title: Re:Profile Help
Post by: MyndFyre on April 22, 2004, 09:53 PM
Quote from: Eli_1 on April 22, 2004, 09:07 PM
Dim x29z4 as String
x29z4 = "S0m3v4lu3"

Be sure to use cryptic variable names like that though, because it's ub3r leet!

How about:
Quote
Dim Sc33lV_lValVl3 as String
Sc33lV_lValVl3 = "u83rI33t"
?

Hrm, "Screen_Name" didn't quite come out right with code or quote...
Title: Re:Profile Help
Post by: Eli_1 on April 22, 2004, 09:56 PM
Quote from: Myndfyre on April 22, 2004, 09:53 PM
How about:
Dim Sc33lV_lValVl3 as String
Sc33lV_lValVl3 = "u83rI33t"
Typo!
Scl233lV_lValVl3*
Title: Re:Profile Help
Post by: MyndFyre on April 22, 2004, 11:12 PM
Quote from: Eli_1 on April 22, 2004, 09:56 PM
Quote from: Myndfyre on April 22, 2004, 09:53 PM
How about:
Dim Sc33lV_lValVl3 as String
Sc33lV_lValVl3 = "u83rI33t"
Typo!
Scl233lV_lValVl3*

oh of course!  I guess I'm just not quite as leet as I thought. :(