Valhalla Legends Forums Archive | Battle.net Bot Development | Re: Another moderation bot...

AuthorMessageTime
benzocaine
I got a question. I made my bot and shit. so anywayz, I got it to like make a new profile and like load a profile in the config, but i dont understand how to load more than 1 bot at a time, can someone go into more detail for me please?  :D Thanks
July 26, 2006, 6:41 PM
MysT_DooM
index your winsock
July 26, 2006, 7:49 PM
benzocaine
I know that, but then how would I load them?  ???
July 26, 2006, 10:16 PM
MysT_DooM
Will you could do

[code]
Globally declare
dim i as integer

form_load sub
Load Winsock(1)
Load Winsock(2)
Load Winsock(3)
.
.
  .
  .
Load Winsock(4536)
Load Winsock(4537)
Load Winsock(4538)
[/code]

or
[code]
command1_click sub
'Launch Profile

i = i + 1
load winsock(i)

end sub

Connect_click sub

winsock(i).close
winsock(i).connect Serverhere, port

end sub
[/code]

something like that, should give you the jist of things ;) 
oh and remember the "bring down the i's" so the winsock knows which index its sending down, ya know wat i mean?

like um

[code]
winsock_connect(i as integer) 'we have connected

'connect stuff here

end sub
[/code]

that sorta thing
mhm that should help you out...sorry bout the not so nicey code :P
July 26, 2006, 10:43 PM
benzocaine
ok, i came out with this

[code]
Private Sub submnuconnect_Click()
    ConnectStartTick = GetTickCount
    Call Connect("Shimmy")
End Sub
[/code]

Thats for my connect, so i just keep doing diff command buttons for the ones i want to load?
July 26, 2006, 10:58 PM

Search