mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-12-06 11:17:17 +00:00
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
@@ -17,7 +17,6 @@ import com.rs2.game.content.music.sound.SoundList;
|
||||
import com.rs2.game.content.randomevents.RandomEventHandler;
|
||||
import com.rs2.game.content.skills.SkillData;
|
||||
import com.rs2.game.content.skills.SkillHandler;
|
||||
import com.rs2.game.content.skills.smithing.Superheat;
|
||||
import com.rs2.game.items.GameItem;
|
||||
import com.rs2.game.items.ItemAssistant;
|
||||
import com.rs2.game.items.ItemConstants;
|
||||
@@ -95,7 +94,7 @@ public class PlayerAssistant {
|
||||
|
||||
public void loginScreen() {
|
||||
player.getPacketSender().showInterface(15244);
|
||||
player.getPacketSender().sendString("Welcome to " + GameConstants.SERVER_NAME + "\\n", 15257);
|
||||
player.getPacketSender().sendString("Welcome to " + GameConstants.SERVER_NAME + " World: " + GameConstants.WORLD + "\\n", 15257);
|
||||
int currentDay = player.getLastLogin() - player.lastLoginDate;
|
||||
|
||||
if (player.playerLevel[GameConstants.HERBLORE] < 3) {
|
||||
@@ -1833,7 +1832,7 @@ public class PlayerAssistant {
|
||||
player.getItemAssistant().clearBank();
|
||||
player.getPlayerAssistant().addStarter();
|
||||
player.getPlayerAssistant().movePlayer(3233, 3229, 0);
|
||||
player.getPacketSender().sendMessage("Welcome to @blu@" + GameConstants.SERVER_NAME + "@bla@ - we are currently in Server Stage v@blu@" + GameConstants.TEST_VERSION + "@bla@.");
|
||||
player.getPacketSender().sendMessage("Welcome to @blu@" + GameConstants.SERVER_NAME + " World: " + GameConstants.WORLD + "@bla@ - we are currently in Server Stage v@blu@" + GameConstants.TEST_VERSION + "@bla@.");
|
||||
player.getPacketSender().sendMessage("@red@Did you know?@bla@ We're open source and pull requests are welcome!");
|
||||
player.getPacketSender().sendMessage("Source code: github.com/2006-Scape/2006Scape");
|
||||
player.getPacketSender().sendMessage("Discord: https://discord.gg/hZ6VfWG");
|
||||
@@ -2033,7 +2032,11 @@ public class PlayerAssistant {
|
||||
if (player.tutorialProgress < 36 && player.playerLevel[skill] == 3 && GameConstants.TUTORIAL_ISLAND) {
|
||||
return false;
|
||||
}
|
||||
amount *= GameConstants.XP_RATE;
|
||||
if (GameConstants.VARIABLE_XP_RATE){
|
||||
amount *= player.getXPRate();
|
||||
} else {
|
||||
amount *= GameConstants.XP_RATE;
|
||||
}
|
||||
int oldLevel = getLevelForXP(player.playerXP[skill]);
|
||||
player.playerXP[skill] += amount;
|
||||
if (oldLevel < getLevelForXP(player.playerXP[skill])) {
|
||||
|
||||
Reference in new issue
Block a user