/** * 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()); }
/** Clean up the module by removing the bot. */ public void unload() { fTestBot.playerDisconnect(); }
/** * 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"); }
/** * Force the bot to respawn now. * * @param args java.lang.String[] */ public void svcmd_respawn(String[] args) { fTestBot.doRespawn(); }
/** 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"); } }
/** * 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"); }