IDs showing and HS prototype~~

This commit is contained in:
dginovker
2019-06-19 22:44:23 -04:00
parent 6591eb43cf
commit afad8ec4a3
20 changed files with 34 additions and 14 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ public class Constants {
public final static boolean SERVER_DEBUG = false;
public final static String SERVER_NAME = "2006Redone", SERVER_VERSION = "Server Stage v " + Constants.TEST_VERSION + ".";
public final static double TEST_VERSION = 1.13;
public final static String SERVER_NAME = "2006rebotted", SERVER_VERSION = "Server Stage v " + Constants.TEST_VERSION + ".";
public final static double TEST_VERSION = 2.00;
public static int BANK_SIZE = 352;
public final static int ITEM_LIMIT = 15000, MAXITEM_AMOUNT = Integer.MAX_VALUE, CLIENT_VERSION = 999999,
WORLD = 1, IPS_ALLOWED = 3, CONNECTION_DELAY = 100,
@@ -651,10 +651,8 @@ public class Client extends Player {
getPlayerAssistant().sendSidebars();
getItemAssistant().sendWeapon(playerEquipment[playerWeapon], ItemAssistant.getItemName(playerEquipment[playerWeapon]));
getActionSender().sendMessage("Welcome to @blu@" + Constants.SERVER_NAME + "@bla@ - we are currently in Server Stage v@blu@" + Constants.TEST_VERSION + "@bla@.");
getActionSender().sendMessage("@red@Warning@bla@: If you find a bug, report it to owner in skype.");
if (!hasBankpin) {
getActionSender().sendMessage("You do not have a bank pin it is highly recommended you get one.");
}
getActionSender().sendMessage("@red@Did you know?@bla@ We're open source! Pull requests are welcome");
getActionSender().sendMessage("Source code at github.com/dginovker/2006rebotted");
}
for (int i = 0; i < 25; i++) {
getActionSender().setSkillLevel(i, playerLevel[i], playerXP[i]);
@@ -54,6 +54,29 @@ public class Commands implements PacketType {
case "close_interface":
player.getPlayerAssistant().closeAllWindows();
break;
case "commands":
player.getActionSender().sendMessage("::players, ::highscores");
break;
case "highscores":
String[] highscores = new String[]{
"@dre@Highscores",
"",
"Top 5 Highest total level:",
"1", "2", "3", "4", "5",
"",
"Top 5 Highest coins stack:",
"1", "2", "3", "4", "5"
};
player.getPlayerAssistant().sendFrame126("@dre@Highscores", 8144);
player.getPlayerAssistant().sendFrame126("", 8145);
player.getPlayerAssistant().sendFrame126("Top 5 Highest total level:", 8145);
player.getPlayerAssistant().sendFrame126("1", 8145);
player.getPlayerAssistant().sendFrame126("1", 8145);
player.getPlayerAssistant().sendFrame126("1", 8145);
player.getPlayerAssistant().sendFrame126("1", 8145);
player.getPlayerAssistant().sendFrame126("1", 8145);
break;
}
}