Jump to content

I am not a

Members
  • Posts

    6
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by I am not a

  1. Wrong. If (message.contains("what") || message.contains("wat")) { phraseCount++; } if (message.contains(" r ") || message.contains(" are ")) { phraseCount++; } if (message.contains(" you ") || message.contains(" ya ") || message.contains(" u ")) { phraseCount++; } if (message.contains(" doin") {//lack of space after would also cover "doing" phraseCount++; } if (phraseCount >= 3) {//incase they just say "wat u doin" //ACTION HERE } Obviously there's a billion ways better to carry this function out but i'd thought to keep it simple to explain the point i guess.
  2. -Insert an array of nicknames or close matches to your name. If you wanna get real technical, add a variance of one or two characters for the cases where they make a typo. -Just get the player data of the person who sent the chat using the API, and check that their distance to you is within a desired range using Map class -Make sure you add a reasonable (and semi random) delay in responses so you aren't having instances where you respond too fast. -Make sure you have a large array of similar responses so that you aren't just saying the exact same things over and over. Also make sure you add repeat question detectors. What happens if someone decides to test if you're a bot by trading you or getting you to say the same thing over and over.
  3. haha yeah she's staying with "her parents"....you're getting cucked bro
  4. Either your memory is low and causing the entire client to freeze, or the script is hitting a NullPointerException causing the script (and client) to crash.
×
×
  • Create New...