Blockland Forums > Modification Help

Chat Bot Help

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

Treynolds416:


--- Quote from: ¥ola on June 12, 2012, 03:46:20 PM ---Still not working :/

--- End quote ---
Mind trying to be specific ever?
You've said some flavor of "It isn't working, why?" about 5 times in this topic. Say "it gave me a syntax error" or "it isn't doing ______ correctly, it only does _______"

¥ola:


--- Quote from: Treynolds416 on June 12, 2012, 03:54:55 PM ---Mind trying to be specific ever?
You've said some flavor of "It isn't working, why?" about 5 times in this topic. Say "it gave me a syntax error" or "it isn't doing ______ correctly, it only does _______"

--- End quote ---
Treynolds,
The problem is it doesn't not do something or whatever.

It just completely does nothing.

Treynolds416:


--- Quote from: ¥ola on June 12, 2012, 04:04:18 PM ---Treynolds,
The problem is it doesn't not do something or whatever.

It just completely does nothing.

--- End quote ---
That would be a syntax error
*sigh*

Lugnut:


--- Quote from: Placid on June 12, 2012, 01:43:06 AM ---activatepackage shouldn't have a space between the actual function called and the (). pretty sure that's your problem.


--- End quote ---
torque doesn't give a flying stuff about spaces in any place.


--- Quote ---package ChatBotGreet
{
   function newChatHud_addLine(%text)
   {
      
      Parent::newChatHud_addLine(%text);
      if(%text $="connected.")
      {
         if($ChatBot::On)
         {
            %num = getrandom(1,5);
            commandtoserver('messagesent', "ChatBot: @ %num); //Missing a closing ".
            commandtoserver('messagesent', "ChatBot:" @ %num);//fixed.
         }
      }
   }
};
activatepackage (ChatBotGreet);
--- End quote ---


Daenth:


--- Quote from: ¥ola on June 12, 2012, 04:04:18 PM ---Treynolds,
The problem is it doesn't not do something or whatever.

It just completely does nothing.

--- End quote ---
If it doesn't do anything, check if it executed in the first place or execute it yourself and see if any error comes up.

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

Go to full version