Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: eXShadow on May 02, 2004, 07:27 AM

Title: Profile
Post by: eXShadow on May 02, 2004, 07:27 AM
Hey when i try to send

   With pBuffer
    .InsertDWORD 1
    .InsertDWORD 4
    .InsertNTString varUser
    .InsertNTString "profile\sex"
    .InsertNTString "profile\age"
    .InsertNTString "profile\location"
    .InsertNTString "profile\description"
    .InsertNTString varUser & " ¯¯¯"
    .SendPacket &H27
   End With


i get ipbanned, i know this has been discussed and i searched the forums but couldnt find it  :(
Which dword do i need to change and to what?

Thanks
Title: Re:Profile
Post by: hismajesty on May 02, 2004, 07:39 AM
It's formed incorrectly.

(from bnetdocs)
Quote(DWORD)       Number of Accounts
(DWORD)       Number of Keys
(DWORD)       Request ID
(STRING[])    Requested Accounts
(STRING[])    Requested Keys

Also:You're requesting an invalid number of keys, you're not inserting the request ID, and you're sending the wrong packet. Also, what is this for? .InsertNTString varUser & " ¯¯¯" I see no reason why you need to have that there, it should be null.

Edit: Maybe I misunderstood your question. Are you trying to request a profile, or write your own?
Title: Re:Profile
Post by: eXShadow on May 02, 2004, 07:46 AM
sorry maybe you did misunderstand, im trying to write my own profile.

.InsertNTString varUser & " ¯¯¯"

is what should be written to sex.

when using the following it works completely fine:

   With pBuffer
    .InsertDWORD 1
    .InsertDWORD 4
    .InsertNTString varUser
    .InsertNTString "profile\sex"
    .InsertNTString "profile\age"
    .InsertNTString "profile\location"
    .InsertNTString "profile\description"
    .InsertNTString ">SeX< ¯¯¯¯¯"
    .InsertNTString "AGE"
    .InsertNTString " ~>LOCATION<~"
    .InsertNTString " ~> DESCRIPTION<~
    .SendPacket &H27
   End With

that works fine, it overwrites the profile with the new info without any problems, but i only want it to write to the sex field.
Title: Re:Profile
Post by: hismajesty on May 02, 2004, 07:52 AM
Ah, ok that explains it. Well, if you only want to write one field, why are you saying you're going to write 4?

With pbuffer
   .InsertDWORD 1
   .InsertDWORD 1
   .InsertNTString varUser
   .InsertNTString "profile\sex"
   .InsertNTString varUser & " ¯¯¯"
   .sendPacket &H27
End With


Edit: forgot code tags
Edit2: What's the purpose of writing the username and a line into the sex field? Not to mention only writing the sex field.
Title: Re:Profile
Post by: GoSuGaMING on May 02, 2004, 08:24 AM

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
unload me
Title: Re:Profile
Post by: eXShadow on May 02, 2004, 09:05 AM
I wanted this code because i want it to write the bot version to the sex field. was only using varUser as example  :P
Title: Re:Profile
Post by: Fr0z3N on May 02, 2004, 09:07 AM
Quote from: hismajesty on May 02, 2004, 07:52 AM
Ah, ok that explains it. Well, if you only want to write one field, why are you saying you're going to write 4?

With pbuffer
   .InsertDWORD 1
   .InsertDWORD 1
   .InsertNTString varUser
   .InsertNTString "profile\sex"
   .InsertNTString varUser & " ¯¯¯"
   .sendPacket &H27
End With


Edit: forgot code tags
Edit2: What's the purpose of writing the username and a line into the sex field? Not to mention only writing the sex field.

eXShadow, that will work. Just ignore Gosugaming.
Title: Re:Profile
Post by: hismajesty on May 02, 2004, 09:08 AM
Quote from: eXShadow on May 02, 2004, 09:05 AM
I wanted this code because i want it to write the bot version to the sex field. was only using varUser as example  :P

ah, k. So, you've gotten it all fixed no?
Title: Re:Profile
Post by: eXShadow on May 02, 2004, 09:44 AM
yep its all working.

just another quick question, i made a small graphic and saved it as an ico file but itwont allow me to use it as an icon for the form? What do i need to do to make it accept it, size maybe?
Title: Re:Profile
Post by: Fr0z3N on May 02, 2004, 10:46 AM
it has to be .ico, I'm not sure about the size but it must be a .ico file
Title: Re:Profile
Post by: BaDDBLooD on May 02, 2004, 10:51 AM
it's 16 x 16
Title: Re:Profile
Post by: LordNevar on May 02, 2004, 12:03 PM
Mine is 32x32 and I have no problems with it, I think 48x48 is max size anyway's so I don't see why size should be an issue.
Title: Re:Profile
Post by: Newby on May 02, 2004, 12:12 PM
Quote from: LordNevar on May 02, 2004, 12:03 PM
Mine is 32x32 and I have no problems with it, I think 48x48 is max size anyway's so I don't see why size should be an issue.
*giggles*

I use a very large icon. And it still works. It's 91x96 and it works perfectly.
Title: Re:Profile
Post by: Forged on May 02, 2004, 12:21 PM
http://download.com.com/3120-20-0.html?qt=Digitope+Pixelshop&tg=dl-2001&search.x=23&search.y=12


Thats what I use works fine for me.
Title: Re:Profile
Post by: Spht on May 02, 2004, 12:58 PM
Quote from: Newby on May 02, 2004, 12:12 PM
Quote from: LordNevar on May 02, 2004, 12:03 PM
Mine is 32x32 and I have no problems with it, I think 48x48 is max size anyway's so I don't see why size should be an issue.
*giggles*

I use a very large icon. And it still works. It's 91x96 and it works perfectly.

A single icon file can hold multiple icons with different dimentions.  My WebBot icon contains a 16x16 icon (for control box, system tray, "small icon" explorer view), a 32x32 icon (for "large icon" explorer view), and a 48x48 icon (for "use large icons" explorer view).
Title: Re:Profile
Post by: LordNevar on May 02, 2004, 04:47 PM
Quote from: Newby on May 02, 2004, 12:12 PM
Quote from: LordNevar on May 02, 2004, 12:03 PM
Mine is 32x32 and I have no problems with it, I think 48x48 is max size anyway's so I don't see why size should be an issue.
*giggles*

I use a very large icon. And it still works. It's 91x96 and it works perfectly.

I stand corrected, wasn't sure of max icon size.
Title: Re:Profile
Post by: BaDDBLooD on May 02, 2004, 05:31 PM
Quote from: LordNevar on May 02, 2004, 04:47 PM
Quote from: Newby on May 02, 2004, 12:12 PM
Quote from: LordNevar on May 02, 2004, 12:03 PM
Mine is 32x32 and I have no problems with it, I think 48x48 is max size anyway's so I don't see why size should be an issue.
*giggles*

I use a very large icon. And it still works. It's 91x96 and it works perfectly.

I stand corrected, wasn't sure of max icon size.

91 x 96? Holy Flying Monkey Horde(s) that is a big icon
Title: Re:Profile
Post by: Tuberload on May 03, 2004, 12:59 AM
Quote from: BaDDBLooD on May 02, 2004, 05:31 PM
Quote from: LordNevar on May 02, 2004, 04:47 PM
Quote from: Newby on May 02, 2004, 12:12 PM
Quote from: LordNevar on May 02, 2004, 12:03 PM
Mine is 32x32 and I have no problems with it, I think 48x48 is max size anyway's so I don't see why size should be an issue.
*giggles*

I use a very large icon. And it still works. It's 91x96 and it works perfectly.

I stand corrected, wasn't sure of max icon size.

91 x 96? Holy Flying Monkey Horde(s) that is a big icon

So we get to choose whether it's a horde or hordes of holy flying monkeys?
Title: Re:Profile
Post by: Zakath on May 03, 2004, 09:09 AM
To adapt Moonshine's signature phrase...

"Well sir, we just happen to HAVE an infinite number of holy flying monkeys!"
Title: Re:Profile
Post by: BaDDBLooD on May 03, 2004, 03:21 PM
Quote from: Tuberload on May 03, 2004, 12:59 AM
Quote from: BaDDBLooD on May 02, 2004, 05:31 PM
Quote from: LordNevar on May 02, 2004, 04:47 PM
Quote from: Newby on May 02, 2004, 12:12 PM
Quote from: LordNevar on May 02, 2004, 12:03 PM
Mine is 32x32 and I have no problems with it, I think 48x48 is max size anyway's so I don't see why size should be an issue.
*giggles*

I use a very large icon. And it still works. It's 91x96 and it works perfectly.

I stand corrected, wasn't sure of max icon size.

91 x 96? Holy Flying Monkey Horde(s) that is a big icon

So we get to choose whether it's a horde or hordes of holy flying monkeys?

of course  :)