Author | Message | Time |
---|---|---|
haZe | 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. | December 27, 2002, 2:10 PM |
warz | What kind of bot? | December 27, 2002, 2:15 PM |
haZe | 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? | December 27, 2002, 2:34 PM |
warz | Might I ask what "But anyways does anyone have any source that WORKS (warz, fuck you)? " meant? | December 27, 2002, 2:45 PM |
haZe | 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!!!!!! | December 27, 2002, 2:50 PM |
warz | Ever think about looking at the code I posted? I'm sure you can answer most of your own questions by looking at them. | December 27, 2002, 2:54 PM |
Yoni | Read this. http://botdev.valhallalegends.com/documents/0x0feducation.html | December 27, 2002, 2:58 PM |
haZe | 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... :-/ | December 27, 2002, 4:23 PM |
erase | 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: [code] Me.RoomList.ListItems.Add username [/code] Parse_OnLeave: [code] frmmain.ChannelList.ListItems.Remove frmmain.ChannelList.FindItem(username).Index [/code] edit: [ code ] and [ /code ] | December 27, 2002, 4:33 PM |
haZe | Uhhh...I get a variable not defined error when I do that..username isnt defined =[ | December 27, 2002, 5:39 PM |
warz | uhhh.. i think i'll laugh silently to myself, so i don't shatter any hopes this kid has at learning visual basic. | December 27, 2002, 6:02 PM |
Grok | 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. | December 27, 2002, 6:31 PM |
haZe | WILL SOMEONE PLZ JUST ANSWER MY QUESTION!!!! :'( :'( Grok, all the code u give me gives me errors :-/ | December 27, 2002, 7:25 PM |
Zakath | 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! | December 27, 2002, 7:38 PM |
warz | No way. Seriously? | December 27, 2002, 9:08 PM |
erase | Haze, read what Zakath wrote: [quote]That'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![/quote] 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 | December 27, 2002, 10:21 PM |
haZe | Uhhh...It already has Parse_OnJoin and Parse_OnLeave things. But it doesn't take affect. [code] 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 [/code] [code] 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 [/code] Can someone please tell me whats wrong with that code!!! =[ | December 27, 2002, 10:34 PM |
MesiaH | 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. | December 28, 2002, 8:40 PM |
haZe | k thx mesiah i have thad a chance 2 test it yet tho :/ when i do ull be sure to hear from me =D | December 29, 2002, 11:36 AM |
Yoni | [quote]NOO! Yoni I didn't understand a word of that document :-/[/quote] 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. | December 29, 2002, 8:03 PM |
haZe | Yoni I didn't ask for your comments. hey wanna see somethin cool? ::) :o Edit - Removed repeated faces. | December 29, 2002, 9:10 PM |
Yoni | Way to get someone's respect, haZe. *sigh* | December 29, 2002, 9:19 PM |
haZe | ..well when u criticize me whatd'ya want me to do :/ sry yoni :/ but im not sorry to SOME OTHER PEOPLE | December 29, 2002, 9:44 PM |
Necrosis | 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: [quote]Yoni I didn't ask for your comments. hey wanna see somethin cool? ::) :o Edit - Removed repeated faces.[/quote] like the faces, will only make you look more foolish :-) | December 29, 2002, 9:58 PM |
haZe | 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*> :) | December 29, 2002, 10:02 PM |
Necrosis | 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. | December 29, 2002, 10:08 PM |
haZe | im 11 | December 29, 2002, 10:09 PM |
Noodlez | ooh the age thingie ^^ i've been (attempting) :P to program since 8, am 14 now | December 29, 2002, 10:17 PM |
haZe | 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 | December 29, 2002, 10:18 PM |
Necrosis | Haze-- You have to be kidding me. Tell me you're kiding me. Please. | December 29, 2002, 10:22 PM |
Necrosis | btw get on aim, my sn is th3rm41 I want to talk to you | December 29, 2002, 10:22 PM |
haZe | 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 | December 29, 2002, 10:35 PM |
MesiaH | 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 | December 29, 2002, 11:13 PM |
haZe | huh? mesiah i didnt understand that last post.. :-/ | December 29, 2002, 11:48 PM |
MesiaH | u moron, and u said u knew qbasic, pfft | December 30, 2002, 1:37 AM |
Necrosis | rofl, sorry haze but you just got owned | December 30, 2002, 2:04 AM |
Yoni | CLS: RANDOMIZE FOR I = 1 TO 1000000: NEXT DO COLOR INT(RND * 15) + 1 PRINT CHR$(INT(RND * 256)); BEEP LOOP | December 30, 2002, 10:35 AM |
dRAgoN | correct me if im wrong Yoni lol but would that not like get very annoying. ~l)ragon | December 30, 2002, 6:14 PM |
Etheran | play "l8edcdeel4el8ddl4dl8egl4gl8edcdeeeeddedc" gogo!! | December 30, 2002, 9:54 PM |
Yoni | 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. | December 31, 2002, 6:16 PM |
st0rm of incdamage | 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. | January 1, 2003, 7:00 PM |
MrRaza | Java/c/c++/perl/python/LISP - the way to go... | January 1, 2003, 7:04 PM |
st0rm again | Don't think I remembered all my color codes, but... [code] 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 [/code] My first language as well; anyone ever read Greg Perry? | January 1, 2003, 7:08 PM |
MichaelPW | " anyone ever read Greg Perry? " - Impressive author, indeed:) | January 3, 2003, 7:05 PM |