Blockland Forums > Modification Help

Guide to Scripting/Chatbot Tutorial 2.0 -For the inexperienced.

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

Bauklotz:


--- Quote from: otto-san on February 03, 2011, 07:22:40 PM ---found flaw

--- End quote ---
hi

--- Quote from: otto-san on February 03, 2011, 07:22:40 PM ---"function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)"

--- End quote ---
clientCmdChatMessage(client, a, b, message line, clan prefix, name, clan suffix, message, x)

MegaScientifical:

Everyone knows about my chatbot... Well actually chat scripts, as I don't show Mrbot much anymore.

alex dude:

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);
--- End quote ---


otto-san:


--- Quote from: alex dude on February 04, 2011, 11:12:08 PM ---Hm, i seem to get syntrax errors on line six

--- End quote ---
The local variable %msg does not exist. (change the second %fmsg to %msg)

alex dude:


--- Quote from: otto-san on February 04, 2011, 11:19:07 PM ---The local variable %msg does not exist. (change the second %fmsg to %msg)

--- End quote ---
It's the msg 123 according to the console, i don't see what's wrong with it.

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

Go to full version