Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
December 22, 2014, 05:56:42 AM

Home Help Login Register
+  Blockland Forum
|-+  Blockland Modification Forums
| |-+  Coding Help
| | |-+  A Chatbot
Pages: [1]
Author Topic: A Chatbot  (Read 1105 times)
Dr. Toast

« November 25, 2008, 01:04:46 AM »

I am making a chatbot for my clan, BoB, and I need some help. I've never really scripted before, just edited scripts. If this is too hard to start with please tell me. If not then please help me. All I have is:

Code:
//Package
package BobBot
As you can see, I have much too learn.

Things I would like to know how to do and do:
  • Make him say "Hello" to people when they say hello, hi, yo, etc...
  • Be able to say "Bob admin/super admin [Name]" and they become an admin/super admin
  • Make him respond to other things, such as questions.

That's all for now, thanks.
« Last Edit: November 25, 2008, 01:17:10 AM by Dr. Toast » Logged
Ad Bot

Full members do not see ads

Falcondude

« November 25, 2008, 10:13:53 AM »

I'd say if you don't have a clue how to script, a chatbot is probably a bit beyond your reach, but something like a console chat function would be manageable. Do you at least know how to use functions in the console?
Logged
Truce

« November 25, 2008, 10:33:55 AM »

Would it be a clientbot or serverbot?
The latter is a lot easier to understand and make.
Logged
Dr. Toast

« November 25, 2008, 04:21:10 PM »

I'd say if you don't have a clue how to script, a chatbot is probably a bit beyond your reach, but something like a console chat function would be manageable. Do you at least know how to use functions in the console?
I have editted scripts. And I know how to use functions in the console.

Would it be a clientbot or serverbot?
The latter is a lot easier to understand and make.
serverbot
Logged
Slicksilver555

« November 25, 2008, 09:52:40 PM »

Oh god, Another bot, Atleast its serverside...
Serverside you want? Easyer, But still fairly complicated.
How to make it say hello to a player joining:
Code:
package Hello {
function GameConnection::LoadMission(%c,%a,%b,%d,%e,%f)
{
Parent::LosfMission(%c,%a,%b,%d,%e,%f);
BBsay("Hello," SPC %c.name @ ".");
}
function BBsay(%say)
{
Messageall(' ',"\c3BobBot\c6:" SPC %say);
}
I'd hate to screw up your chat, and once i failed at mine and screwed up mine and couldn't figure out mine, So thats all i'll tell you, I do, however have more experience at Clientside Chat Bots.
Logged
Dr. Toast

« November 25, 2008, 11:14:37 PM »

I'm going to close this as Truce is helping me via private messages.
Logged
Pages: [1]  


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.103 seconds with 15 queries.