mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 00:32:01 +00:00
Fix Naming For Some Vars
This commit is contained in:
@@ -6137,7 +6137,7 @@ public class DialogueHandler {
|
||||
break;
|
||||
|
||||
case 3116:
|
||||
if(GameConstants.VARIABLE_XP_RATES) {
|
||||
if(GameConstants.VARIABLE_XP_RATE) {
|
||||
player.getDialogueHandler().sendDialogues(10001, -1);
|
||||
} else {
|
||||
player.getPacketSender().showInterface(3559);
|
||||
@@ -7603,7 +7603,7 @@ public class DialogueHandler {
|
||||
player.nextChat = 10002;
|
||||
break;
|
||||
case 10002:
|
||||
sendOption("x" + GameConstants.PLAYER_XP_RATES[0], "x" + GameConstants.PLAYER_XP_RATES[1], "x" + GameConstants.PLAYER_XP_RATES[2], "x" + GameConstants.PLAYER_XP_RATES[3]);
|
||||
sendOption("x" + GameConstants.VARIABLE_XP_RATES[0], "x" + GameConstants.VARIABLE_XP_RATES[1], "x" + GameConstants.VARIABLE_XP_RATES[2], "x" + GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.dialogueAction = 10002;
|
||||
break;
|
||||
case 10003:
|
||||
@@ -7615,15 +7615,15 @@ public class DialogueHandler {
|
||||
player.dialogueAction = 10004;
|
||||
break;
|
||||
case 10005:
|
||||
sendOption("x" + GameConstants.PLAYER_XP_RATES[1], "x" + GameConstants.PLAYER_XP_RATES[2], "x" + GameConstants.PLAYER_XP_RATES[3]);
|
||||
sendOption("x" + GameConstants.VARIABLE_XP_RATES[1], "x" + GameConstants.VARIABLE_XP_RATES[2], "x" + GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.dialogueAction = 10005;
|
||||
break;
|
||||
case 10006:
|
||||
sendOption("x" + GameConstants.PLAYER_XP_RATES[2], "x" + GameConstants.PLAYER_XP_RATES[3]);
|
||||
sendOption("x" + GameConstants.VARIABLE_XP_RATES[2], "x" + GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.dialogueAction = 10006;
|
||||
break;
|
||||
case 10007:
|
||||
sendOption("x" + GameConstants.PLAYER_XP_RATES[3], "Don't Change");
|
||||
sendOption("x" + GameConstants.VARIABLE_XP_RATES[3], "Don't Change");
|
||||
player.dialogueAction = 10007;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public class DialogueOptions {
|
||||
BotHandler.playerShop(player);
|
||||
return;
|
||||
case 10005:
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[1]);
|
||||
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();
|
||||
@@ -199,7 +199,7 @@ public class DialogueOptions {
|
||||
BotHandler.closeShop(player);
|
||||
return;
|
||||
case 10005:
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[2]);
|
||||
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();
|
||||
@@ -296,7 +296,7 @@ public class DialogueOptions {
|
||||
BotHandler.takeCoins(player);
|
||||
return;
|
||||
case 10005:
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[3]);
|
||||
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;
|
||||
@@ -646,7 +646,7 @@ public class DialogueOptions {
|
||||
player.canChangeAppearance = true;
|
||||
player.closeTutorialInterface = true;
|
||||
return;
|
||||
} else if (player.getXPRate() != + GameConstants.PLAYER_XP_RATES[3]) {
|
||||
} 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;
|
||||
@@ -655,13 +655,13 @@ public class DialogueOptions {
|
||||
return;
|
||||
}
|
||||
} else if(player.dialogueAction == 10006) {
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[2]);
|
||||
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.PLAYER_XP_RATES[3]);
|
||||
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;
|
||||
@@ -895,7 +895,7 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendDialogues(10002, 2244);
|
||||
return;
|
||||
} else if(player.dialogueAction == 10006) {
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[3]);
|
||||
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();
|
||||
@@ -975,7 +975,7 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendDialogues(3561, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[0]);
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[0]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
@@ -1048,7 +1048,7 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendDialogues(3562, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[1]);
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[1]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
@@ -1124,7 +1124,7 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendDialogues(3563, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[2]);
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[2]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
@@ -1185,7 +1185,7 @@ public class DialogueOptions {
|
||||
player.getDialogueHandler().sendDialogues(3564, player.npcType);
|
||||
}
|
||||
if (player.dialogueAction == 10002) {
|
||||
player.setXPRate(GameConstants.PLAYER_XP_RATES[3]);
|
||||
player.setXPRate(GameConstants.VARIABLE_XP_RATES[3]);
|
||||
player.getDialogueHandler().sendDialogues(10003, player.npcType);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user