Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: FOH-Master on August 02, 2003, 06:57 AM

Title: Accept
Post by: FOH-Master on August 02, 2003, 06:57 AM
 Hi, I am a bit of a new at VB but im taking classes and getting better at it. I was reading cupheads tutorial of how to build a bot and noticed he had a line in his code

.accept=

i was wondering if any one couls tell me what it meant.

Thanks
FOH-Master
Title: Re:Accept
Post by: iago on August 02, 2003, 07:11 AM
It would help a lot if you put it in context.  Post the code around it.
Title: Re:Accept
Post by: FOH-Master on August 02, 2003, 07:33 AM
With CleanSlateBot1
.Accept 579728
   .BNLSBotID = "Hatrix"
   .BNLSBotPassword = "HatrixCity"
   .CDKey = "2819352424070"
   .ChangePassword = False
   .Character = ""
   .HomeChannel = "op ootd"
   .LODKey = "AAAABBBBCCCCDDDD"
   .NewPassword = "None"
   .Password = "oscar"
   .Product = "PXES"
   .Realm = "USEast"
   .Server = "useast.battle.net"
   .UseRealm = False
   .Username = "kilaz-e-diablo"
   .UseUDP = False
End With


End Sub

Title: Re:Accept
Post by: ______ on August 02, 2003, 07:50 AM
thx for the cdkey >< note in future dont post the cdkey or pass to your name just mark it out instead of posting it up

.accept is a "password" of sorts that stops people from using cleanslatebot.ocx.  
Title: Re:Accept
Post by: Adron on August 02, 2003, 08:13 AM
Quote from: FOH-Master on August 02, 2003, 07:33 AM
   .CDKey = "2819352424070"
   .LODKey = "AAAABBBBCCCCDDDD"

Please fill in D2 key + LOD key and repost ;)
Title: Re:Accept
Post by: FOH-Master on August 02, 2003, 08:15 AM
thanks for the info. by the way i took that code ages ago and i think that cd key is banned. ;D
Title: Re:Accept
Post by: FOH-Master on August 02, 2003, 08:15 AM
Quote from: Adron on August 02, 2003, 08:13 AM
Quote from: FOH-Master on August 02, 2003, 07:33 AM
   .CDKey = "2819352424070"
   .LODKey = "AAAABBBBCCCCDDDD"

Please fill in D2 key + LOD key and repost ;)
dont have those keys sorry. lol. im a fool
Title: Re:Accept
Post by: ______ on August 02, 2003, 08:17 AM
its not banned im on it right now
Title: Re:Accept
Post by: FOH-Master on August 02, 2003, 08:21 AM
Quote from: ___/\___ on August 02, 2003, 08:17 AM
its not banned im on it right now
glad u like it. i dont play sc nemore so i dont mind. im a warcraft 3 fan all the way. besides i have a few keys for sc.
Title: Re:Accept
Post by: hismajesty on August 02, 2003, 11:23 AM
Quote from: FOH-Master on August 02, 2003, 07:33 AM
   .HomeChannel = "op ootd"
 
I've never seen you in ootd...whats your aka..other than kilaz-e-diablo??
Title: Re:Accept
Post by: FOH-Master on August 02, 2003, 12:06 PM
demonzrulezuz
Title: Re:Accept
Post by: FuZe on August 02, 2003, 03:01 PM
Not sure exactly what accept does for csb but for the server side of the winsock control, if you want to accept a connectionrequest
the format is
object.Accept requestID

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Data Type

Long

Return Value

Void

Remarks

The Accept method is used in the ConnectionRequest event. The ConnectionRequest event has a corresponding argument, the RequestID parameter, that should be passed to the Accept method. The Accept method should be used on a new control instance (other than the one that is in the listening state.) To do this, at design time, set the Index of a single Winsock control to 0. An example is shown below:

Private Sub Winsock1_ConnectionRequest _
(Index As Integer, ByVal requestID As Long)
  ' Close the connection if it is currently open
  ' by testing the State property.
  If Winsock1.State <> sckClosed Then Winsock1.Close

  ' Load a new instance of the control to service the connection.
  ' The variable newInstanceIndex maintains the current index of the
  ' next connection to load - this way we don't accidently use an
  ' index already created. Remember to Unload the control when the
  ' connection is closed
  Load Winsock1(newInstanceIndex)
  ' Pass the value of the requestID parameter to the
  ' Accept method.
  Winsock1.Accept requestID
End Sub

:) (from MSDN)
Title: Re:Accept
Post by: FOH-Master on August 03, 2003, 05:55 AM
as i said im a bit of a newb but i kinda get what you mean. thanks for the info fuze-
Title: Re:Accept
Post by: iago on August 03, 2003, 05:35 PM
I think Fuze's response is totally out of context.. he's talking about WSock32.accept(), not CSB.accept