Example #1
0
  /**
   * Have the bot execute a player command.
   *
   * @param args java.lang.String[]
   */
  public void svcmd_cmd(String[] args) {
    StringBuffer sb = new StringBuffer(args[2]);
    for (int i = 3; i < args.length; i++) {
      sb.append(' ');
      sb.append(args[i]);
    }

    fTestBot.playerCommand(sb.toString());
  }
Example #2
0
 /** Clean up the module by removing the bot. */
 public void unload() {
   fTestBot.playerDisconnect();
 }
Example #3
0
 /**
  * Set the bot's skin.
  *
  * @param args java.lang.String[]
  */
 public void svcmd_skin(String[] args) {
   if (args.length > 2) fTestBot.setSkin(args[2]);
   else Game.dprint("Usage: sv skin <skin-name> (example: male/grunt)\n");
 }
Example #4
0
 /**
  * Force the bot to respawn now.
  *
  * @param args java.lang.String[]
  */
 public void svcmd_respawn(String[] args) {
   fTestBot.doRespawn();
 }
Example #5
0
 /** Set the bot's locale */
 public void svcmd_locale(String[] args) {
   if (args.length > 2) fTestBot.setLocale(args[2]);
   else {
     Game.dprint("Usage: sv locale [<locale>]\nCurrent locale: " + fTestBot.getLocale() + "\n");
   }
 }
Example #6
0
 /**
  * This method was created by a SmartGuide.
  *
  * @param args java.lang.String[]
  */
 public void svcmd_help(String[] args) {
   Game.dprint("Bot health: " + fTestBot.getHealth() + "\n");
 }