Author |
Message |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Mon Jul 11, 2005 6:05 pm Post subject: TWBot Coding Help. |
 |
|
|
|
Well i just have a few questions, first of all...
If i have this:
public void handleCommand( String name, String message, String playerName ){
if( message.startsWith( "!ban ")){
m_botAction.sendUnfilteredPrivateMessage( playerName, "*kill 283892" );
}
}
How can i get this to work? It does not do anything when i type !ban in game. No errors are reported when i compile the coding either.
Also, how can i get the bot to send someone text from a txt or cfg?
Like !staff and you read from a file and send the text from there.
would it be something like:
...} else if( message.startsWith( "!staff" )){
m_botAction.send[w/e goes in here]
}
} |
|
Back to top |
|
 |
Contempt+ Server Help Squatter
Age:36 Gender: Joined: May 15 2005 Posts: 682 Location: Home Offline
|
Posted: Mon Jul 11, 2005 9:12 pm Post subject: |
 |
|
|
|
Just incode the !staff in a merv bot. Instead of writing it in java. _________________ SSE Network Administrator |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Mon Jul 11, 2005 9:19 pm Post subject: |
 |
|
|
|
LOL! Nah serciously you guys know how? |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Mon Jul 18, 2005 4:36 pm Post subject: |
 |
|
|
|
Hey man you rock. You gave me a straight up awnser instead of something like "Make a new Bot". There are nice people on here!  |
|
Back to top |
|
 |
|