Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ExaM on March 03, 2004, 08:18 AM

Title: BNCS flag (?): need major BNCS tutoring
Post by: ExaM on March 03, 2004, 08:18 AM
I'm attempting to make my own bot, but I'/m having problems with it and was hoping someone could help me. I'm working on:


JoinedChannel(ChannelName, flags)


Part of the bot, but i don't know how to use this, do I put anything where 'ChannelName, flags'  is, or what do I put for flags? I'm trying to make the channel name display above the channel list, but I'm, having problem >.< could someone help me?

[Kp edit: corrected title to be reflective of poster's intent and status.  Original title referenced BNLS, which is not at all relevant to the problem at hand.]
Title: Re:BNLS Flag: Need Help
Post by: Dark-Feanor on March 03, 2004, 12:35 PM
First, I would recommend that you learn a little more Visual Basic before attempting to make a bot. Try www.vbtutor.net (http://www.vbtutor.net). The code for joined channel should look something like:

Private sub JoinedChannel(Channelname as String, Flags as integer)
    'code
    channellist.text = channelname
end sub

Channellist should be the textbox where you want the channel name displayed.

Are you using CleanSlateBot.ocx? Post a little more information about your problem to help us help you.
Title: Re:BNLS Flag: Need Help
Post by: ExaM on March 03, 2004, 02:47 PM
Sorry, yes I am using CleanSlateBot.oxc, thanks for the info, I'll try it and modify this post.
Title: Re:BNLS Flag: Need Help
Post by: ExaM on March 03, 2004, 03:01 PM
Quote from: DaRk-FeAnOr on March 03, 2004, 12:35 PM
First, I would recommend that you learn a little more Visual Basic before attempting to make a bot. Try www.vbtutor.net (http://www.vbtutor.net). The code for joined channel should look something like:

Private sub JoinedChannel(Channelname as String, Flags as integer)
    'code
    channellist.text = channelname
end sub

Channellist should be the textbox where you want the channel name displayed.

Are you using CleanSlateBot.ocx? Post a little more information about your problem to help us help you.

Thanks fo ryour help  ;D this is what I did to get the channelname:


Private Sub CSB_JoinedChannel(ByVal ChannelName As String, ByVal flags As Long, SimulatedEvent As Boolean)
   lblChannel.Caption = ChannelName
End Sub


Thanks Dark Feanor for the help  ;D
Title: Re:BNCS flag (?): need major BNCS tutoring
Post by: ExaM on March 06, 2004, 05:42 PM
Haha... real funny whoever changed the post name