• Welcome to Valhalla Legends Archive.
 

Help with my first bot.

Started by Dukester, June 26, 2004, 04:02 PM

Previous topic - Next topic

Dukester

Hello. I am just making my first bot. With a LITTLE vb knowledge.
I began useing the CleanSlateBot.ocx. I can connect my bot. As of right now, I have 1 textbot that I can send messages. I am wondering what the code for a RTB would be to view the chat. Also the code for the channel listings. For the channel listings do I use a RTB or just a TB? And i was reading the tutorial at     http://216.239.51.104/search?q=cache:-QRmRgZih8MJ:www.valhallalegends.com/cuphead/ocx_me.txt+cleanslatebot+tutorial&hl=en   And I say that I could take the information from a .txt file. In which how would I construct that. Make a .txt file for the config and just have the options of...let's say...Username
Password
Key
etc..
Please help me out,
Thanks
Jeff

Warrior

To View the messages you sent and the messages u recieved you will need a RichTextBox and Groks AddChat function. There is one on the Botdev website or search the forums for AddChat. Then when you have your AddChat function in a module all nice and done go to your CleanSlateBot1_OnTalk sub I think its called and just do


AddChat vbwhite, Message

Most of the AddChat usages should look like that but they may Vary.
To add the sent text to the RichTextBox you would need a text box  and a Send Button. When the Send button is clicked do

AddChat vbwhite, Text1.Text
Text1.Text = ""

Now the ChannelListing uses the OnUser, OnChannel , Onjoin , and Onleave Subs. There are various examples scattered throught the Forums use the search feature but they do require a ListView.

You will need a GetStuff / WriteStuff code to read and write data from a .ini . For example then your config.ini would look like

[Main]
Username=
Password=

ect.
You can get this code by searching the forums since im not home and cant give you the code I use.

Well I hope this has helped you atleast a bit.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Meh

You cant just use addchat. You have to creat it in a module. I cant be bothered to type it out, but it must be out there somewhere.


Warrior

Sorry I assumed he would have enough sense to put it in a module and find its usage.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Meh

If he cant display text using Cupheads ocx help/ tutorial he wont understand addchat. There is coding to go with it and addchat is a function not a module. The code for addchat must be put in a module. I think Grok made the function?

Warrior

Yea and again I will RESTATE what I JUST SAID. I am sorry for Assuming you knew the obvious.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Dukester

I would use his tutorial if the webpage opened... It's not working