Second World Setup (#518)
* Start Setting Up Second World Added World Number To Login Message Added World Number To Login Interface Made World 2 Listen On Different Port Made Client Connect To 43597 For World 2 * Small Cleanup For World 2 Support Calculate Port For World Based On World Number Use Existing World int For World In Server * Woops Wrong Ports * Set Server Port After Loading Config * Add xpRate Var & Include With XPRate Calculations * Add -w/-world arg to client * Add XP Rate Multiplier For Non-Bot Worlds * More Multi World Stuff Update Integrations(Discord Bot/Website Stuff) For Multiple Worlds Added More XP Rate Dialogue Stuff * Add Kick Command To Discord Bot & Fix Type In ConfigLoader * Create/Use commandPrefix Var For Discord Bot * Small Fixup For World 2 Renamed BOT_WORLD to VARIABLE_XP_RATE Fixed Dialogue/Message grammar Added a check for VARIABLE_XP_RATES to ::xprate command * More Discord Commands(GameKick, MoveHome & Update) *GameKick kicks A player if their client froze but acc stayed logged in *MoveHome removes the need for ::stuck which removes potential for abuse *Update schedules A server update * Minor fixup * 43597 → 43598 * Fix XP Rate Multiplier & add ::xprate to cooamnds list if enabled * Use Either VARIABLE_SKILL_RATE OR XP_RATE Not Both TODO(Convert Player.xpRate Into An Array For Easier Rate Changes) * Create/Use PLAYER_XP_RATES For Easier Rate Changes * Fixed Abusive Client Command Privileges & Added myxprate/checkxprate * Allow Loading VARIABLE_XP_RATES & PLAYER_XP_RATES From Config * Properly Update Client Title Logo If The Cache Has Already Been Downloaded You Will Need To Delete It & Let The Client ReDownload It * Fix Cache CRC Checks For The Client(Allows Cache To Actually Check For Updates) * Add -no-crc & -dev Arguments To Client * Fix Naming For Some Vars * Make CHECK_CRC Description More Descriptive * Fix More Var Descriptions * Cleanup Unused GameConstants Vars & Add More Vars To ConfigLoader Co-authored-by: Danial <admin@redsparr0w.com>
This commit is contained in:
1 parent
1c5b400f00
commit
e1a8d85408
32 files changed
+406
-149
No files matched your search
@@ -104,6 +104,12 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendStatement("You summoned your shop!");
|
||||
BotHandler.playerShop(player);
|
||||
return;
|
||||
case 10005:
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[1]);
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you can increase your rate in the future by using");
|
||||
player.getPacketSender().sendMessage("::xprate");
|
||||
player.getPacketSender().closeAllWindows();
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
@@ -192,6 +198,12 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendStatement("You close your shop!");
|
||||
BotHandler.closeShop(player);
|
||||
return;
|
||||
case 10005:
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[2]);
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you can increase your rate in the future by using");
|
||||
player.getPacketSender().sendMessage("::xprate");
|
||||
player.getPacketSender().closeAllWindows();
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
@@ -283,6 +295,11 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendStatement("You withdraw " + Bot.formatSellPrice(BotHandler.checkCoins(player)) + " from your shop!");
|
||||
BotHandler.takeCoins(player);
|
||||
return;
|
||||
case 10005:
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you now have the highest XP rate.");
|
||||
player.getPacketSender().closeAllWindows();
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
@@ -618,11 +635,37 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendDialogues(3586, player.npcType);
|
||||
return;
|
||||
}
|
||||
else if (player.dialogueAction == 7559)
|
||||
{
|
||||
else if (player.dialogueAction == 7559) {
|
||||
player.getDialogueHandler().sendDialogues(3864, player.npcType);
|
||||
return;
|
||||
}
|
||||
} else if (player.dialogueAction == 10004) {
|
||||
if(!player.closeTutorialInterface) {
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you can increase your rate in the future by using");
|
||||
player.getPacketSender().sendMessage("::xprate");
|
||||
player.getPacketSender().showInterface(3559);
|
||||
player.canChangeAppearance = true;
|
||||
player.closeTutorialInterface = true;
|
||||
return;
|
||||
} else if (player.getXPRate() != + GameConstants.VARIABLE_XP_RATES[3]) {
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you can increase your rate in the future by using");
|
||||
player.getPacketSender().sendMessage("::xprate");
|
||||
return;
|
||||
} else {
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you now have the highest XP rate.");
|
||||
return;
|
||||
}
|
||||
} else if(player.dialogueAction == 10006) {
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[2]);
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you can increase your rate in the future by using");
|
||||
player.getPacketSender().sendMessage("::xprate");
|
||||
player.getPacketSender().closeAllWindows();
|
||||
return;
|
||||
} else if(player.dialogueAction == 10007) {
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you now have the highest XP rate.");
|
||||
player.getPacketSender().closeAllWindows();
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
break;
|
||||
@@ -848,6 +891,15 @@ public class DialogueOptions {
|
||||
{
|
||||
player.getDialogueHandler().sendDialogues(3865, player.npcType);
|
||||
return;
|
||||
} else if (player.dialogueAction == 10004) {
|
||||
player.getDialogueHandler().sendDialogues(10002, 2244);
|
||||
return;
|
||||
} else if(player.dialogueAction == 10006) {
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.getPacketSender().sendMessage("Your XP rate is now set to x" + player.getXPRate() + " you now have the highest XP rate.");
|
||||
player.getPacketSender().sendMessage("::xprate");
|
||||
player.getPacketSender().closeAllWindows();
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
@@ -922,6 +974,10 @@ public class DialogueOptions {
|
||||
if (player.dialogueAction == 701) {
|
||||
player.getDialogueHandler().sendDialogues(3561, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[0]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
|
||||
case 9179:
|
||||
@@ -991,6 +1047,10 @@ public class DialogueOptions {
|
||||
if (player.dialogueAction == 701) {
|
||||
player.getDialogueHandler().sendDialogues(3562, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[1]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
|
||||
case 9180:
|
||||
@@ -1063,6 +1123,10 @@ public class DialogueOptions {
|
||||
if (player.dialogueAction == 701) {
|
||||
player.getDialogueHandler().sendDialogues(3563, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[2]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
|
||||
case 9181:
|
||||
@@ -1120,6 +1184,10 @@ public class DialogueOptions {
|
||||
if (player.dialogueAction == 701) {
|
||||
player.getDialogueHandler().sendDialogues(3564, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user