Author Topic: Chat Bot HELP  (Read 1848 times)

I'm having trouble with my my ChatBot.

Code: [Select]
package ChatBot
{
Parent::newChatHud_addLine(%text);
{

           %nameToGreet=strReplace(%text,"Hey, NAT3Bot.","NAT3Bot:Sup.")
  %nameToGreet=strReplace(%text,"NAT3Bot, what's 5+5?","NAT3Bot:10.")


           if(%nameToGreet !$=%text)
}

}

ActivatePackage(ChatBot);

« Last Edit: August 08, 2012, 09:30:44 PM by NAT3 »

If someone could just fix it, it'd be much better than telling me what I'm doing wrong. Thanks
I'm not going to fix this for you. We're not code monkeys here to write your code for you. If one of us provides working code examples for you it's for your educational benefit, not so you have to do less work. If you have no will to learn I have no interest in helping nor teaching you.

I'm not going to fix this for you. We're not code monkeys here to write your code for you. If one of us provides working code examples for you it's for your educational benefit, not so you have to do less work. If you have no will to learn I have no interest in helping nor teaching you.
I do. I can just look at what you changed for me then I will learn like that. I'm not trying to make you my "code monkey" anyways.

I do. I can just look at what you changed for me then I will learn like that. I'm not trying to make you my "code monkey" anyways.
I can tell you right now that if I fixed that for you you wouldn't learn nearly as much as you would if I explained what I did. You can tell from the level of fault in the code how much the poster knows about torque and how much they can figure out from your fixed code. You don't understand basic control statements and thus won't understand the fix. I'd be happy to tell you that you:
  • declared the function incorrectly
  • misplaced or complete left out semicolon line separators
  • have an if statement in a place that makes no logical sense (not to mention flags a syntax error)
  • are using a very bad method to parse your strings
« Last Edit: August 08, 2012, 09:15:16 PM by TripNick »

If someone could just fix it, it'd be much better than telling me what I'm doing wrong. Thanks
Are you loving kidding me.

Is this a client-sided chat bot or server-sided? Because I have a client chat bot I could pm you it.

Is this a client-sided chat bot or server-sided? Because I have a client chat bot I could pm you.
It's client. I'll take it. Thanks!

Is this a client-sided chat bot or server-sided? Because I have a client chat bot I could pm you it.
And now he gets 0 help. If he would have just acknowledged that it's better for him to have it explained to him I would have helped him, but now he gets no help and a code example that's too advanced for him to understand.

And now he gets 0 help. If he would have just acknowledged that it's better for him to have it explained to him I would have helped him, but now he gets no help and a code example that's too advanced for him to understand.
Ok, I'm sorry!!! Just quit bugging me about it. If you're gonna help then fine. If not just quit posting (not to be rude)

Is this a client-sided chat bot or server-sided? Because I have a client chat bot I could pm you it.
He could have had a lot more understanding if you would have let him just figure it out. And now will probably learn even more bad habits by looking at someones stuff chat bot