Author Topic: Please fix my chatbot.  (Read 873 times)

/title
Please fix my chatbot. If you're not gonna help, please don't post.
Code: [Select]
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%msg $= "lol")
{
commandToServer('messageSent',"Ahahahahaha... I dont get it.");
}
else if(msg $= "rofl")
{
commandToServer('messageSent',"I still don't see what's funny.");
else if(%msg $= "shut up")
{
commandToServer('messageSent',"Right back at ya.");
}
else if(%msg $= "fail")
{
commandToServer('messageSent',"If you never fail, you never succeed.");
{
else if(%msg $= "spin")
{
turnleft(1);
}
else if(%msg $= "stop spin")
{
turnleft(0);
else if(%msg $= "holdmouse")
{
mousefire(1);
}
else if(%msg $= "releasemouse")
{
mousefire(0);
}
else if (%msg $= "getid")
{
commandToServer('getid');
}
}
};
activatePackage(chatbot);
This does not belong in Coding Help, I want someone to fix it.

Code: [Select]
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
switch$(%msg)
{
case "lol":
commandToServer('messageSent',"Ahahahahaha... I dont get it.");
case "rofl":
commandToServer('messageSent',"I still don't see what's funny.");
case "shut up":
commandToServer('messageSent',"Right back at ya.");
case "fail":
commandToServer('messageSent',"If you never fail, you never succeed.");
case "spin":
turnleft(1);
case "stop spin":
turnleft(0);
case "holdmouse":
mousefire(1);
case "releasemouse":
mousefire(0);
case "getid":
commandToServer('getid');
}
}
};
activatePackage(chatbot);
Now don't use it because chatbots suck.


Now don't use it because chatbots suck.
they're good for first client mod practice projects though

this does belong in coding help btw
since you're seeking help with coding

they're good for first client mod practice projects though

this does belong in coding help btw
since you're seeking help with coding
I can't tell if he wants to learn how to code or steal other people's codes, make small edits, and release them as his own without giving the original author credit or asking him for permission in the first place.
« Last Edit: September 08, 2012, 04:09:57 PM by Racerboy »

I can't tell if he wants to learn how to code or steal other people's codes, make small edits, and release them as his own without giving the original author credit.
The only mistake was actually releasing it in that state. It's not as if it's rare for that to happen. Lots of people do the same thing. Especially as some of their first projects.

The only mistake was actually releasing it in that state. It's not as if it's rare for that to happen. Lots of people do the same thing. Especially as some of their first projects.
It's common sense - being new to scripting has nothing to do with it.

It's common sense - being new to scripting has nothing to do with it.
Yes, and the common sense is only relevant to actually releasing it. The parts after that were mostly irrelevant to what you were trying to get across. You don't normally release mod edits unless the creator is inactive and it's broken and you're releasing a fix.

Yes, and the common sense is only relevant to actually releasing it.
Yes, and that's what he did....

Yes, and that's what he did....
Which means I was agreeing with you.

I find chatbots are idiots who talk to themselfs. So I ban them all


I find chatbots are idiots who talk to themselfs. So I ban them all
Nah just mute them or add the name of the bot to etard filter

Code: [Select]
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
switch$(%msg)
{
case "lol":
commandToServer('messageSent',"Ahahahahaha... I dont get it.");
case "rofl":
commandToServer('messageSent',"I still don't see what's funny.");
case "shut up":
commandToServer('messageSent',"Right back at ya.");
case "fail":
commandToServer('messageSent',"If you never fail, you never succeed.");
case "spin":
turnleft(1);
case "stop spin":
turnleft(0);
case "holdmouse":
mousefire(1);
case "releasemouse":
mousefire(0);
case "getid":
commandToServer('getid');
}
}
};
activatePackage(chatbot);
Now don't use it because chatbots suck.
Maybe if you made it do a myping or something like that,
then there'd be a good reason to have it. For my bot, it turns on and off,
it updates when command said, it has a myping command, a spin-me command,
a disconnect and quit command, and I'm making more currently.

chatbots are stupid and you should feel stupid for using them

you came onto Katz's server with your chat bot spamming "Ahahahahaha... I dont get it.","Ahahahahaha... I dont get it.","Ahahahahaha... I dont get it.","Ahahahahaha... I dont get it." whenever somebody said "lol".

what's the point?

if someone said "lol lol lol lol lol lol" would it keep saying it