Blockland Forums > Modification Help

Math Chatbot

Pages: << < (2/4) > >>

jes00:


--- Quote from: infiniteLoop on October 12, 2011, 04:44:17 PM ---
Well figure out what the equation is going to be using str str and getSubStr

%msg = "bob add 2+2 please";

if(strStr(%msg,"+") <= 0)
{
     //we are adding do math stuff here using getsubstr

}

--- End quote ---
I've never worked with str or getsubstr and I have no idea how they work or what they do.

Placid:


--- Quote from: jes00 on October 12, 2011, 04:52:55 PM ---I've never worked with str or getsubstr and I have no idea how they work or what they do.

--- End quote ---
getSubStr takes the first character from the string you input and assigns it to a variable.

no idea what strstr is but i believe it's whether it contains whatever string is inputted in the second argument.

PurpleMetro:

My friend BL_ID 1337 has a math chatbot. But its better than infinite's example. It will add, subtract, multiply, and divide any 2 numbers you give it. It will also say anything you want it to say. He also even has a auto-spell/grammer-fixer

jes00:


--- Quote from: PurpleMetro on October 12, 2011, 05:20:41 PM ---My friend BL_ID 1337 has a math chatbot.

--- End quote ---
Well he does not have RTB so I guess I may never find out who he is.

Ipquarx:


--- Quote from: PurpleMetro on October 12, 2011, 05:20:41 PM ---My friend BL_ID 1337 has a math chatbot.

--- End quote ---
BLID 1337 doesn't exist genius.
 
But anyways, on topic, you may want to check who's sending the chat, to make sure other people can't spam it.

Pages: << < (2/4) > >>

Go to full version