From 05a3a912f63cc5719360eba6eb8b9f0981122e07 Mon Sep 17 00:00:00 2001 From: RedSparr0w Date: Sat, 23 Nov 2019 17:05:25 +1300 Subject: [PATCH] Add comments --- 2006Redone Server/src/redone/game/bots/Bot.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/2006Redone Server/src/redone/game/bots/Bot.java b/2006Redone Server/src/redone/game/bots/Bot.java index ec95ff28..a46add12 100644 --- a/2006Redone Server/src/redone/game/bots/Bot.java +++ b/2006Redone Server/src/redone/game/bots/Bot.java @@ -72,11 +72,16 @@ public class Bot { /* Real chat - Disabled for now, can't get it to function correctly + // Add some color and effects botClient.setChatTextColor(9); botClient.setChatTextEffects(2); - String message = "Selling Rune Platebody 210k ea - " + botClient.playerName; + + String message = "Selling " + item_name + " " + formatSellPrice(value) + " ea - " + botClient.playerName; + // Need to figure out how to calculate this botClient.setChatTextSize((byte) 29); + // This is wrong too botClient.setChatText(message.getBytes(StandardCharsets.UTF_8)); + // Not a clue what this does botClient.inStream.readBytes_reverseA(botClient.getChatText(), botClient.getChatTextSize(), 0); botClient.setChatTextUpdateRequired(true); */