Poll

How did i do on this thing?

Great! I'd like another tutorial.
Good.
A little lengthy. Can you tone it down?
Too loud! Be more to the point.
Too soft! Make the statements more solid.
Too short. Can you go more in-depth?
Horrible! Why would i need to know any of this?
The worst tutorial i've seen yet. You must work on this.
Too show-offy. Use better words.
Too boring. Needs more fun to it.
I don't really know...
The current options cannot describe my opinion.

Author Topic: Guide to Scripting/Chatbot Tutorial 2.0 -For the inexperienced.  (Read 22715 times)

@ Bold: .gui? .mis? .ts? These are not "only" for GUI's, mission files, they are exactly like .cs.

@ Bold: .gui? .mis? .ts? These are not "only" for GUI's, mission files, they are exactly like .cs.

It's not proper.

Nice tutorial.


But when I saw 'Chatbot' I expected a serversided one, and I got excited because I like seeing how other people work theirs. c:

edit:

found flaw

"function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)"
« Last Edit: February 03, 2011, 07:26:25 PM by otto-san »


Tom

We need a "he doesn't know what's he's talking about but acts like an expert" option.

found flaw
hi
"function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)"
clientCmdChatMessage(client, a, b, message line, clan prefix, name, clan suffix, message, x)

Everyone knows about my chatbot... Well actually chat scripts, as I don't show Mrbot much anymore.
« Last Edit: February 04, 2011, 05:41:03 AM by MegaScientifical »

Hm, i seem to get syntrax errors on line six
Quote
// Think Invisible's Code

package chatbot {
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg) {
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
  if (%msg $= "123") {
  if (%name $= "Alex_Dude") {
commandToServer('messageSent',"Your testing is win!");
     }
}

}
};
activatePackage(chatbot);

Hm, i seem to get syntrax errors on line six
The local variable %msg does not exist. (change the second %fmsg to %msg)

The local variable %msg does not exist. (change the second %fmsg to %msg)
It's the msg 123 according to the console, i don't see what's wrong with it.

It's the msg 123 according to the console, i don't see what's wrong with it.
The local variable %msg does not exist. (change the second %fmsg to %msg)


So change
Quote
// Think Invisible's Code

package chatbot {
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg) {
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
  if (%msg $= "123") {
  if (%name $= "Alex_Dude") {
commandToServer('messageSent',"Your testing is win!");
     }
}
to
Quote
// Think Invisible's Code

package chatbot {
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg) {
parent::clientCmdChatMessage(%a,%b,%c,%msg,%cp,%name,%cs,%msg)
  if (%msg $= "123") {
  if (%name $= "Alex_Dude") {
commandToServer('messageSent',"Your testing is win!");
     }
}
?

Code: [Select]
package chatbot {
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg) {
parent::clientCmdChatMessage(%a,%b,%c,%msg,%cp,%name,%cs,%msg)
  if (%msg $= "123") {
  if (%name $= "Alex_Dude") {
commandToServer('messageSent',"Your testing is win!");
     }
}

you change both.

Nevermind, i got it :D
« Last Edit: February 05, 2011, 12:17:06 AM by alex dude »