mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Various Changes (#614)
* Clean Old Log Files * Various Changes * Moved minutes.log to log folder * Made SERVER_LOG_DIR constant * Moved FILE_SYSTEM_DIR to GameConstants & Deleted org.apollo.jagcached.Constants * Removed unused minutes.log from data/data * Removed Duplicate RSAKeyGen * Moved RSAKeyGen from com.rs2.net.rsa to com.rs2.util.rsa * Removed data/net.xml & Created Moved NetworkConstants.java * Add HTTP & Jaggrab Port's to ConfigLoader * IntelliJ Reformat ConfigLoader.java * Fix Mistake * Attempt #2 * Woops, wrong port
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.rs2.game.items;
|
||||
|
||||
import com.rs2.Constants;
|
||||
import com.rs2.event.impl.ItemOnItemEvent;
|
||||
import com.rs2.GameConstants;
|
||||
import com.rs2.game.content.skills.cooking.Cooking;
|
||||
import com.rs2.game.content.skills.crafting.BattleStaffs;
|
||||
import com.rs2.game.content.skills.crafting.GemCutting;
|
||||
@@ -183,19 +183,19 @@ public class UseItem {
|
||||
LogCutting.wolfBoneArrow(player);
|
||||
}
|
||||
if (itemUsed == 771 && useWith == 946
|
||||
&& player.playerLevel[GameConstants.CRAFTING] > 30) {
|
||||
&& player.playerLevel[Constants.CRAFTING] > 30) {
|
||||
player.getItemAssistant().deleteItem(771, 1);
|
||||
player.getItemAssistant().addItem(772, 1);
|
||||
} else if (player.playerLevel[GameConstants.CRAFTING] < 31 && itemUsed == 771
|
||||
} else if (player.playerLevel[Constants.CRAFTING] < 31 && itemUsed == 771
|
||||
&& useWith == 946) {
|
||||
player.getPacketSender().sendMessage(
|
||||
"You need 31 crafting to make this.");
|
||||
}
|
||||
if (itemUsed == 946 && useWith == 771
|
||||
&& player.playerLevel[GameConstants.CRAFTING] > 30) {
|
||||
&& player.playerLevel[Constants.CRAFTING] > 30) {
|
||||
player.getItemAssistant().deleteItem(771, 1);
|
||||
player.getItemAssistant().addItem(772, 1);
|
||||
} else if (player.playerLevel[GameConstants.CRAFTING] < 31 && itemUsed == 946
|
||||
} else if (player.playerLevel[Constants.CRAFTING] < 31 && itemUsed == 946
|
||||
&& useWith == 771) {
|
||||
player.getPacketSender().sendMessage(
|
||||
"You need 31 crafting to make this.");
|
||||
@@ -247,12 +247,12 @@ public class UseItem {
|
||||
player.getItemAssistant().deleteItem(4548, 1);
|
||||
}
|
||||
if (itemUsed == 1095 && useWith == 2370 || itemUsed == 2370
|
||||
&& useWith == 1095 && player.playerLevel[GameConstants.CRAFTING] > 43) {// chaps
|
||||
&& useWith == 1095 && player.playerLevel[Constants.CRAFTING] > 43) {// chaps
|
||||
player.getItemAssistant().deleteItem(2370, 1);
|
||||
player.getItemAssistant().deleteItem(1095, 1);
|
||||
player.getItemAssistant().addItem(1097, 1);
|
||||
player.getPlayerAssistant().addSkillXP(42, GameConstants.CRAFTING);
|
||||
} else if (itemUsed == 1095 && useWith == 2370 || itemUsed == 2370 && useWith == 1095 && player.playerLevel[GameConstants.CRAFTING] < 44) {
|
||||
player.getPlayerAssistant().addSkillXP(42, Constants.CRAFTING);
|
||||
} else if (itemUsed == 1095 && useWith == 2370 || itemUsed == 2370 && useWith == 1095 && player.playerLevel[Constants.CRAFTING] < 44) {
|
||||
player.getPacketSender().sendMessage("You need 44 crafting to make this.");
|
||||
}
|
||||
if (itemUsed == 946 && useWith == 1963 || itemUsed == 1963 && useWith == 946) {
|
||||
@@ -265,12 +265,12 @@ public class UseItem {
|
||||
player.getItemAssistant().addItem(1975, 1);
|
||||
player.getPacketSender().sendMessage("You slice your chocolate bar.");
|
||||
}
|
||||
if (itemUsed == 1129 && useWith == 2370 || itemUsed == 2370 && useWith == 1129 && player.playerLevel[GameConstants.CRAFTING] > 40) {// body
|
||||
if (itemUsed == 1129 && useWith == 2370 || itemUsed == 2370 && useWith == 1129 && player.playerLevel[Constants.CRAFTING] > 40) {// body
|
||||
player.getItemAssistant().deleteItem(2370, 1);
|
||||
player.getItemAssistant().deleteItem(1129, 1);
|
||||
player.getItemAssistant().addItem(1133, 1);
|
||||
player.getPlayerAssistant().addSkillXP(40, GameConstants.CRAFTING);
|
||||
} else if (itemUsed == 1129 && useWith == 2370 || itemUsed == 2370 && useWith == 1129 && player.playerLevel[GameConstants.CRAFTING] < 41) {
|
||||
player.getPlayerAssistant().addSkillXP(40, Constants.CRAFTING);
|
||||
} else if (itemUsed == 1129 && useWith == 2370 || itemUsed == 2370 && useWith == 1129 && player.playerLevel[Constants.CRAFTING] < 41) {
|
||||
player.getPacketSender().sendMessage("You need 41 crafting to make this.");
|
||||
}
|
||||
if (itemUsed == 4593 && useWith == 4591 || useWith == 4591 && itemUsed == 4593) {
|
||||
@@ -375,11 +375,11 @@ public class UseItem {
|
||||
|
||||
if (itemUsed == 1987 && useWith == 1937 || itemUsed == 1937
|
||||
&& useWith == 1987) {
|
||||
if (player.playerLevel[GameConstants.COOKING] >= 35) {
|
||||
if (player.playerLevel[Constants.COOKING] >= 35) {
|
||||
player.getItemAssistant().addItem(1993, 1);
|
||||
player.getItemAssistant().deleteItem(1937, 1);
|
||||
player.getItemAssistant().deleteItem(1987, 1);
|
||||
player.getPlayerAssistant().addSkillXP(200, GameConstants.COOKING);
|
||||
player.getPlayerAssistant().addSkillXP(200, Constants.COOKING);
|
||||
} else {
|
||||
player.getPacketSender().sendMessage(
|
||||
"You need grapes and a jug of water to make wine.");
|
||||
|
||||
Reference in New Issue
Block a user