I know I ask for a lot of help around here, but I'm totally n00b with bots (programming them), and that's what this forum is here for, right? ;)
Well, anyways, I'll get down to business. Does anyone have the join/leave code? I need my bot to display joins/leaves. It isn't exactly my bot tho-It's atom's VaporBot and I'm going to improve it =D Well anyways, if anyone has anything tell me plz.
What kind of bot?
Chat bot. Also, 1 more thing: How can I prevent this from happening? (click link below to see what I'm talking about)
www.gosugamers.com/eek.JPG
When the ops or other ppl rejoin, I still see the old person..*sniff* and 1 more thing: When there's 2 ops, the second one is always at the bottom at the list and not at the top with the rest...How I get my channellist to display how it is, rather than in alphabetical order?
Might I ask what "But anyways does anyone have any source that WORKS (warz, fuck you)? " meant?
Warz you shouldn't go around posting people's bot source codes without even asking them. :-/ :-/ :-/ :P
No, we don't know eachother.
WILL SOMEONE PLEASE ANSWER THE ORIGINAL QUESTION IN THIS POST!!!!!!
Ever think about looking at the code I posted? I'm sure you can answer most of your own questions by looking at them.
Read this.
http://botdev.valhallalegends.com/documents/0x0feducation.html
NOO! Yoni I didn't understand a word of that document :-/
Anyways,How can I prevent this from happening? (click link below to see what I'm talking about)
www.gosugamers.com/eek.JPG
When the ops or other ppl rejoin, I still see the old person..*sniff* and 1 more thing: When there's 2 ops, the second one is always at the bottom at the list and not at the top with the rest...How I get my channellist to display how it is, rather than in alphabetical order? I Guess I'm asking 2 questions: How do I get my ChannelList to refresh when a person leaves (this prob has something to do with join/leave notifications) and How do I stop the users from going in alphabetical order? I want them in the order that they joined in... :-/
yoni he's making a gateway bot.
Haze, you can't get your channel list to update when a user joins/parts?
If that's the case, Vapor bot should have Parse_Join and Parse_Leave subs.
Parse_OnJoin:
Me.RoomList.ListItems.Add username
Parse_OnLeave:
frmmain.ChannelList.ListItems.Remove frmmain.ChannelList.FindItem(username).Index
edit: [ code ] and [ /code ]
Uhhh...I get a variable not defined error when I do that..username isnt defined =[
uhhh.. i think i'll laugh silently to myself, so i don't shatter any hopes this kid has at learning visual basic.
Responses of that nature are not helpful. If you have nothing constructive to contribute to the topic at hand, exercise better judgment and do not post.
No one, including myself, should be deriding another person who is trying to learn. All of us started from somewhere, and we all learn at different paces.
WILL SOMEONE PLZ JUST ANSWER MY QUESTION!!!!
:'(
:'(
Grok, all the code u give me gives me errors
:-/
That's because it's only a snippet - Grok (or anyone else) has no way to know what the names of the variables, objects, and functions you've defined are. Thus, the snippet uses some variable that is meant to be a placeholder for the variable in your program. So, if a code snippet doesn't work because "username" isn't a defined variable, substitute in the variable that you use to hold the username in question!
No way. Seriously?
Haze, read what Zakath wrote:
QuoteThat's because it's only a snipper [an example] So, if a code snippet doesn't work because "username" [***] isn't a defined variable, substitute in the variable that you use to hold the username in question!
haze read zakath's quote above.
My USERNAME variable is not the same as your USERNAME variable. Yours may be STRACCOUNT, STRUSER, USER, etc...Find out what it is...search the code for something similar
Uhhh...It already has Parse_OnJoin and Parse_OnLeave things. But it doesn't take affect.
Private Sub Event_Join(strUser, strFlag, strProduct)
frmBot.ChannelUsers.ListItems.Add frmBot.ChannelUsers.ListItems.Count + 1, , strUser, , GetIconCode(strProduct, strFlag)
If Mid(strFlag, 3, 1) = "1" Then frmBot.ChannelUsers.ListItems.Item(frmBot.ChannelUsers.ListItems.Count).ForeColor = vbYellow
End Sub
Private Sub Event_Leave(strUser, strFlag)
'User leaves current channel
'strUser: User's Name
'strFlag: User's Status Flag
frmBot.ChannelUsers.ListItems.Remove (frmBot.ChannelUsers.FindItem(strUser).Index)
End Sub
Can someone please tell me whats wrong with that code!!! =[
uhmm...
If your looking for NOTIFICATIONS, you have everything right, except adding to the rtb.
I dunno what u use, AddChat, or rtbAdd, or whatever u may use. But you need to stick something in there like:
rtbadd vbgreen, strUser & " has left the channel." & vbcrlf
or whatever.
k thx mesiah i have thad a chance 2 test it yet tho :/
when i do ull be sure to hear from me =D
QuoteNOO! Yoni I didn't understand a word of that document :-/
Umm... Don't make a binary bot.
(erase: It is binary according to the screenshot.)
haZe: You should stop pasting everybody else's source code into one big mess and expect it to work without trying to understand it yourself. Maybe one day there will be an MSWord-like bot editor with a little clippy that goes "It looks like you're writing a bot!" but not yet.
Yoni I didn't ask for your comments.
hey wanna see somethin cool?
::) :o
Edit - Removed repeated faces.
Way to get someone's respect, haZe. *sigh*
..well when u criticize me whatd'ya want me to do :/
sry yoni :/
but im not sorry to SOME OTHER PEOPLE
ok, im usually a ghost on this forum..reading up, but I just have to post here. Haze, obviously you are an amateur with visual basic. I would take the time to learn your basics before you get into something of this advancement. After about 6 months of doing what I just suggested to you, I am getting into this kind of programming. I usually don't pass judgement like this, and if I have gone wrong, I apologise, but don't make a fool of yourself like this.
Also--reacting immaturely:
QuoteYoni I didn't ask for your comments.
hey wanna see somethin cool?
::) :o
Edit - Removed repeated faces.
like the faces, will only make you look more foolish :-)
Necrosis,
I thank you for your wise advice. but, quite frankly, all I want is a book on vb6 (not how to use everything, on the syntaxes and stuff). Reading a website and dling other ppls code is boring and isn't really a learning expirience to me. So if you know any B O O K S that I could learn VB6 on, please reply!
Yes, the smily faces are kinda lame but who cares
<*shrugs*>
:)
I would highly suggest Visual Basic 6.0 for Dummies. That is what I started out on. However, this book gets old after a while and I almost guarantee you will lose interest as I did. What I've done recently is ask for snippets and their explainations on various forums.
Some suggestions?
http://kickme.to/datoforums - they have a good vb section there, prompt replies-- dont be a dumbass
http://www.acky.net - a couple good tutorials and an archive of code
http://www.planet-source-code.com - nutload of code
http://www.winsockvb.com - this is one of the best winsockvb tutorial sites I have found, please do check this out
One more thing: Just of out curiosity, how old are you? I've been in this crowd since I was 10, I am 13 now.
Peace.
im 11
ooh the age thingie ^^
i've been (attempting) :P to program since 8, am 14 now
LoL! You started programming when you were 8? I started when I was 10-In QBasic. -.- It's only a 2 years differnce and boy it shows..lol
Haze-- You have to be kidding me. Tell me you're kiding me. Please.
btw get on aim, my sn is th3rm41 I want to talk to you
necrosis i cant parents banned me sry
no aim, no icq, no aim, no nuttin sry
if u want to chat send me an IM thru the forum that we're on
duh
=p
bye
ttyl
=D
CLS
COLOR 4
PRINT "Hi, my name is bob!"
INPUT "What is your name"; name$
PRINT "Hi," & name$ & "!"
END
QB > all
------------------------------------------
I just wanted to post to say the lil MSWord comment yoni made, was quite creative and amusing :P
huh? mesiah i didnt understand that last post.. :-/
u moron, and u said u knew qbasic, pfft
rofl, sorry haze but you just got owned
CLS: RANDOMIZE
FOR I = 1 TO 1000000: NEXT
DO
COLOR INT(RND * 15) + 1
PRINT CHR$(INT(RND * 256));
BEEP
LOOP
correct me if im wrong Yoni lol but would that not like get very annoying.
~l)ragon
play "l8edcdeel4el8ddl4dl8egl4gl8edcdeeeeddedc"
gogo!!
It's meant to be run on multiple public computers, preferably in a school's computer lab.
The "FOR" loop in the beginning gives you time to walk away.
Hmmm...
Been programming since I was 9. PhatBot developed at age 12. Going to resist the urge to flame, but you have to use common sense, Haze. Think, what happens when you join a channel? The list is cleared and then filled up with users. Thus, how do I clear the list? Well, lets see if there's a clear method or something similar? Aha! Maybe if I call it when I join a channel, problems will be solved?
By the way, don't learn VB6. It's dead. It has maybe 2 years tops left in it. VB.NET is replacing it. From all accounts (including mine, I bought it legally too), it SUCKS.
Learn Python. It's an easy, powerful language that beginners as well as professionals use. Free, object-oriented, RAD. What more could you ask?
www.python.org
http://www.python.org/doc/current/tut/tut.html
www.jython.org
Have fun.
Java/c/c++/perl/python/LISP - the way to go...
Don't think I remembered all my color codes, but...
SCREEN 12 '640x480x8bpp, no pcopy :(
COLOR 7
CIRCLE (320,240), 100
COLOR 4
CIRCLE (280,200), 10
CIRCLE (360,200), 10
COLOR 1
CIRCLE (320,280), 20
My first language as well; anyone ever read Greg Perry?
" anyone ever read Greg Perry? "
- Impressive author, indeed:)