Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: titan0060 on August 22, 2004, 04:33 PM

Title: Idle Messages
Post by: titan0060 on August 22, 2004, 04:33 PM
Does anyone know how to make an Idle/Greet message on a CSB?
Title: Re:Idle Messages
Post by: Warrior on August 22, 2004, 04:40 PM
Put a Timer on your form.
When the Timer runs out of time
Send a Message.
Title: Re:Idle Messages
Post by: hismajesty on August 22, 2004, 04:42 PM
Quote from: titan0060 on August 22, 2004, 04:33 PM
Does anyone know how to make an Idle/Greet message on a CSB?

Yes.
Title: Re:Idle Messages
Post by: ChR0NiC on August 22, 2004, 04:44 PM
Quote from: titan0060 on August 22, 2004, 04:33 PM
Does anyone know how to make an Idle/Greet message on a CSB?

Answer #1
Set the timer to an interval of what you want, 1000 = 1 second
Every time the timer fires do something like CSB.Send "Idle Message"

Answer #2

CleanSlateBot1_UserJoins(Username As String)
CSB.Send "/w " & Username & " Hello " & Username & ", I think you are hot"
End Sub


Edit: Of course you will probably want to implement some sort of queue system, which I will not provide, that will prevent you from flooding out. You can probably get some help here (http://forum.valhallalegends.com/phpbbs/index.php?board=45)
Title: Re:Idle Messages
Post by: Networks on August 22, 2004, 05:04 PM
Wow dude, I agree with Stealth you really need to learn or re-learn VB because If you keep posting like this people are going to get annoyed.

Try to think of things logically at least...and search the forum.
Title: Re:Idle Messages
Post by: Yegg on August 22, 2004, 05:13 PM
Networks wut do u think the forums r for.......
Title: Re:Idle Messages
Post by: hismajesty on August 22, 2004, 05:44 PM
Quote from: Yegg on August 22, 2004, 05:13 PM
Networks wut do u think the forums r for.......

Us to make fun of people.
Title: Re:Idle Messages
Post by: ChR0NiC on August 22, 2004, 05:46 PM
Quote from: hismajesty[yL] on August 22, 2004, 05:44 PM
Us to make fun of people.

For example, Spht and Userloser like to make fun of me.
Title: Re:Idle Messages
Post by: Warrior on August 22, 2004, 06:39 PM
Enable a Timer on Logon.
Set the Interval to whatever you want
Send Message

IE

'Not sure what CSB Logon Event is called so Ill make one up :P
'You should know what this is
Private Sub CleanSlateBot1_OnLogon
'Stuff
Timer1.Enabled = True
End Sub

When the Timer Fires

Private Sub Timer1_Timer
CleanSlateBot1.Send "Wow Warrior is l33t!"
End Sub



OMG WARRIOR YOUR SO LEET AND SMART.
Title: Re:Idle Messages
Post by: MyndFyre on August 22, 2004, 06:56 PM
Quote from: Yegg on August 22, 2004, 05:13 PM
Networks wut do u think the forums r for.......

The forums aren't for you to learn how to program.  This is a *basic* and *menial* task.  They're here for reference and help on information specific and relevant to Battle.net bot making.  Having a timer fire so that you have an "anti-idle" is not specific to that, even if the end result is used on Battle.net -- perhaps the VB forum would have been better.
Title: Re:Idle Messages
Post by: R.a.B.B.i.T on August 23, 2004, 12:38 AM
Quote from: titan0060 on August 22, 2004, 04:33 PM
Does anyone know how to make an Idle/Greet message on a CSB?
The simple answer (which everyone should have said previously): Yes.
Title: Re:Idle Messages
Post by: Soul Taker on August 23, 2004, 06:29 AM
Quote from: hismajesty[yL] on August 22, 2004, 04:42 PM
Quote from: titan0060 on August 22, 2004, 04:33 PM
Does anyone know how to make an Idle/Greet message on a CSB?

Yes.
Title: Re:Idle Messages
Post by: Networks on August 23, 2004, 06:25 PM
Quote from: Yegg on August 22, 2004, 05:13 PM
Networks wut do u think the forums r for.......

Not for asking questions like: how Do progRAM in vB?

If he doesn't understand how to use a timer obviously he doesn't know VB enough. Learn the language or look up something relavent before asking questions. We aren't your professional technical support for VB everytime you have trouble for something. At least search the internet... It's like your teacher says try it before you come to me. Most of us are simply asking for that much at the least. It's like me asking you what 9 / 3 is 15 times every week.

There was a time I didn't know either but I read books and  experimented heavly on my own. Don't give me that crap. I started learning VB just last summer and I think I've come pretty far without coming to the forum every 10 minutes I can't get something to work or I don't know how to do.

I am suprised even 3 - 5 people here have the patience to help these people who don't even attempt to help themselves.

And for god's sake at least ask a friend above anything else for help if it's every 10 minutes. Don't post a million times at the forum for simple things you SHOULD know if you know VB...
Title: Re:Idle Messages
Post by: Gangz on August 24, 2004, 03:19 AM
Wow. This kid asks for alot of code. I say everyone should give him advice, not the actual coding. Let him try to put it together by himself
Title: Re:Idle Messages
Post by: Banana fanna fo fanna on August 24, 2004, 10:02 AM
I say we give him psuedocode and see what he does.

Funny, if I had said it anywhere except here, it wouldn't have been a joke.