Blockland Forums > Modification Help

My first chat bot (NEED HELP AGAIN)

Pages: << < (5/7) > >>

PurpleMetro:


--- Quote from: Uxie on August 17, 2011, 04:42:54 PM ---Dark. What he said. Its a lie. Thats EXACTLY how I made it except for the fact that you renamed it to DBot. And now your stealing credit.

--- End quote ---
Wow uxie thats even worse and guys. And I'm gonna test adding another command to my chatbot. ^_^

Uxie:

I dont see whats wrong. :/

I went on and tried fixing it up and tried fixing alot of stuff. Yeah, you missed alot of brackeds, forgot semicolon at parent, and stuff. But after that, I still cant figure it out.

Placid:

you thought what he gave you was the whole god damn script file? good god, you really need to learn what scripting syntax looks like.


--- Code: ---package chatbot {
function clientCmdChatMessage(%a,%b,%c,%msg,%cp,%name,%cs,%fmsg) {
parent::clientCmdChatMessage(%a,%b,%c,%msg,%cp,%name,%cs,%fmsg);
       if(%msg $= "testing testing 123") {
       if(%name == $pref::player::netName) {
commandToServer('messageSent',"Your testing is win, " @ $pref::player::netName @ "!");
                        }
                }
        }
};
activatePackage(chatbot);
--- End code ---
i might seem harsh, i'm sorry. i'm just loving frustrated.
please try to learn the syntax by yourself after this and don't rely on everyone else to spoonfeed you the code.

here's what i fixed:
-if ( to if(
-parent has no {
-parent had no ;
-added a lot of brackets
-added "$pref::player::netName" instead of "secton" so it will automatically check for your name and say your name, rather than "secton"


--- Quote from: Uxie on August 18, 2011, 09:49:06 PM ---I dont see whats wrong. :/

I went on and tried fixing it up and tried fixing alot of stuff. Yeah, you missed alot of brackeds, forgot semicolon at parent, and stuff. But after that, I still cant figure it out.

--- End quote ---
did you remember the activatePackage?

SkullCandy:


--- Quote from: AGlass0fMilk on August 17, 2011, 11:39:27 AM ---It's not like chat bots are that hard to make...

--- End quote ---
I would consider it to be a level 2 project.

Uxie:


--- Quote from: Placid on August 18, 2011, 10:07:01 PM ---did you remember the activatePackage?

--- End quote ---
o.o

Pages: << < (5/7) > >>

Go to full version