initial bots

This commit is contained in:
RedSparr0w
2019-11-22 13:03:02 +13:00
parent 4b3bb7ade7
commit 447fc738d9
5 changed files with 86 additions and 13 deletions
@@ -3,6 +3,7 @@ package redone.net.packets.impl;
import redone.Connection;
import redone.Constants;
import redone.Server;
import redone.game.bots.BotHandler;
import redone.game.items.ItemAssistant;
import redone.game.npcs.NpcHandler;
import redone.game.players.*;
@@ -92,6 +93,12 @@ public class Commands implements PacketType {
player.getActionSender().sendMessage("There is currently " + PlayerHandler.getPlayerCount() + " player online.");
}
break;
case "bots":
if (arguments.length == 0)
player.getActionSender().sendMessage("Must have 1 argument: ::bots 5");
else
BotHandler.connectBots(Integer.parseInt(arguments[0]));
break;
case "wealth":
int totalWealth = player.getPlayerAssistant().totalGold();
player.getActionSender().sendMessage("You currently have " + totalWealth + "gp.");