mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
* Fix messages that were wrong
This commit is contained in:
@@ -67,6 +67,7 @@ public final class EquipItemHandler extends MessageHandler<ItemOptionMessage> {
|
||||
int slotsRequired = weapon != null && shield != null ? 1 : 0;
|
||||
|
||||
if (inventory.freeSlots() < slotsRequired) {
|
||||
player.sendMessage("You don't have enough free inventory space to do that.");
|
||||
message.terminate();
|
||||
return;
|
||||
}
|
||||
@@ -133,13 +134,11 @@ public final class EquipItemHandler extends MessageHandler<ItemOptionMessage> {
|
||||
if (skills.getMaximumLevel(id) < requirement) {
|
||||
String name = Skill.getName(id);
|
||||
|
||||
player.sendMessage("You need " + LanguageUtil.getIndefiniteArticle(name) + " " + name + " level of " +
|
||||
requirement + " to equip this item.");
|
||||
player.sendMessage("You are not a high enough level to use this item.");
|
||||
player.sendMessage("You need to have " + LanguageUtil.getIndefiniteArticle(name) + " " + name.toLowerCase() + " level of " + requirement + "." );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -14,12 +14,12 @@ public final class FullInventoryListener extends InventoryAdapter {
|
||||
/**
|
||||
* The bank full message.
|
||||
*/
|
||||
public static final String FULL_BANK_MESSAGE = "Not enough bank space.";
|
||||
public static final String FULL_BANK_MESSAGE = "You could not bank all your items.";
|
||||
|
||||
/**
|
||||
* The inventory full message.
|
||||
*/
|
||||
public static final String FULL_INVENTORY_MESSAGE = "Not enough inventory space.";
|
||||
public static final String FULL_INVENTORY_MESSAGE = "You don't have enough inventory space.";
|
||||
|
||||
/**
|
||||
* The message to send when the capacity has been exceeded.
|
||||
|
||||
Reference in New Issue
Block a user