Updated system messages.

This commit is contained in:
MobiusDevelopment
2022-12-08 06:58:55 +00:00
parent d582049150
commit ca344b5854
210 changed files with 2843 additions and 2123 deletions

View File

@@ -235,7 +235,7 @@ public class ItemCommissionManager
if (playerRegisteredItems >= MAX_ITEMS_REGISTRED_PER_PLAYER)
{
player.sendPacket(SystemMessageId.THE_MAXIMUM_NUMBER_OF_AUCTION_HOUSE_ITEMS_FOR_REGISTRATION_IS_10);
player.sendPacket(SystemMessageId.THE_MAXIMUM_NUMBER_OF_WORLD_TRADE_ITEMS_FOR_REGISTRATION_IS_10);
player.sendPacket(ExResponseCommissionRegister.FAILED);
return;
}
@@ -338,7 +338,7 @@ public class ItemCommissionManager
if (!player.isInventoryUnder80(false) || (player.getWeightPenalty() >= 3))
{
player.sendPacket(SystemMessageId.IF_THE_WEIGHT_IS_80_OR_MORE_AND_THE_INVENTORY_NUMBER_IS_90_OR_MORE_PURCHASE_CANCELLATION_IS_NOT_POSSIBLE);
player.sendPacket(SystemMessageId.TO_BUY_CANCEL_YOU_NEED_20_OF_FREE_WEIGHT_AND_10_OF_FREE_SLOTS_IN_YOUR_INVENTORY);
player.sendPacket(SystemMessageId.FAILED_TO_CANCEL_THE_SALE);
player.sendPacket(ExResponseCommissionDelete.FAILED);
return;
@@ -389,7 +389,7 @@ public class ItemCommissionManager
if (!player.isInventoryUnder80(false) || (player.getWeightPenalty() >= 3))
{
player.sendPacket(SystemMessageId.IF_THE_WEIGHT_IS_80_OR_MORE_AND_THE_INVENTORY_NUMBER_IS_90_OR_MORE_PURCHASE_CANCELLATION_IS_NOT_POSSIBLE);
player.sendPacket(SystemMessageId.TO_BUY_CANCEL_YOU_NEED_20_OF_FREE_WEIGHT_AND_10_OF_FREE_SLOTS_IN_YOUR_INVENTORY);
player.sendPacket(ExResponseCommissionBuyItem.FAILED);
return;
}

View File

@@ -81,15 +81,15 @@ public class PetitionManager
currPetition.setState(PetitionState.IN_PROCESS);
// Petition application accepted. (Send to Petitioner)
currPetition.sendPetitionerPacket(new SystemMessage(SystemMessageId.PETITION_ACCEPTED));
currPetition.sendPetitionerPacket(new SystemMessage(SystemMessageId.YOUR_GLOBAL_SUPPORT_REQUEST_WAS_RECEIVED_2));
// Petition application accepted. Reciept No. is <ID>
SystemMessage sm = new SystemMessage(SystemMessageId.YOUR_PETITION_APPLICATION_HAS_BEEN_ACCEPTED_RECEIPT_NO_IS_S1);
SystemMessage sm = new SystemMessage(SystemMessageId.YOUR_GLOBAL_SUPPORT_REQUEST_WAS_RECEIVED_REQUEST_NO_S1);
sm.addInt(currPetition.getId());
currPetition.sendResponderPacket(sm);
// Petition consultation with <Player> underway.
sm = new SystemMessage(SystemMessageId.STARTING_PETITION_CONSULTATION_WITH_C1);
sm = new SystemMessage(SystemMessageId.A_GLOBAL_SUPPORT_CONSULTATION_C1_HAS_BEEN_STARTED);
sm.addString(currPetition.getPetitioner().getName());
currPetition.sendResponderPacket(sm);

View File

@@ -193,7 +193,7 @@ public class BlockList
final Player player = World.getInstance().getPlayer(targetId);
if (player != null)
{
sm = new SystemMessage(SystemMessageId.C1_HAS_PLACED_YOU_ON_HIS_HER_IGNORE_LIST);
sm = new SystemMessage(SystemMessageId.C1_HAS_PLACED_YOU_ON_THEIR_IGNORE_LIST);
sm.addString(listOwner.getName());
player.sendPacket(sm);
}

View File

@@ -76,7 +76,7 @@ public class CombatFlag
// Equip with the weapon
_item = item;
_player.getInventory().equipItem(_item);
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_HAVE_EQUIPPED_S1);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_EQUIPPED);
sm.addItemName(_item);
_player.sendPacket(sm);

View File

@@ -395,7 +395,7 @@ public class CursedWeapon implements INamable
// Equip with the weapon
_item = item;
_player.getInventory().equipItem(_item);
SystemMessage sm = new SystemMessage(SystemMessageId.YOU_HAVE_EQUIPPED_S1);
SystemMessage sm = new SystemMessage(SystemMessageId.S1_EQUIPPED);
sm.addItemName(_item);
_player.sendPacket(sm);

View File

@@ -320,7 +320,7 @@ public class HuntPass
_sayhasSustentionTask.cancel(true);
_sayhasSustentionTask = null;
}
_user.sendPacket(new SystemMessage(SystemMessageId.SAYHA_S_GRACE_SUSTENTION_EFFECT_OF_THE_SEASON_PASS_IS_ACTIVATED_AVAILABLE_SAYHA_S_GRACE_SUSTENTION_TIME_IS_RUNNING));
_user.sendPacket(new SystemMessage(SystemMessageId.THE_MAXIMUM_NUMBER_OF_WORLD_TRADE_ITEMS_FOR_REGISTRATION_IS_10));
_sayhasSustentionTask = ThreadPool.schedule(this::onSayhaEndTime, Math.max(0, getAvailableSayhaTime() - getUsedSayhaTime()) * 1000L);
}
else
@@ -331,7 +331,7 @@ public class HuntPass
_toggleStartTime = 0;
_sayhasSustentionTask.cancel(true);
_sayhasSustentionTask = null;
_user.sendPacket(new SystemMessage(SystemMessageId.SAYHA_S_GRACE_SUSTENTION_EFFECT_OF_THE_SEASON_PASS_HAS_BEEN_DEACTIVATED_THE_SUSTENTION_TIME_YOU_HAVE_DOES_NOT_DECREASE));
_user.sendPacket(new SystemMessage(SystemMessageId.THE_MAXIMUM_NUMBER_OF_WORLD_TRADE_ITEMS_FOR_REGISTRATION_IS_10));
}
}
}

View File

@@ -76,14 +76,14 @@ public class Petition
else
{
// Ending petition consultation with <Player>.
SystemMessage sm = new SystemMessage(SystemMessageId.PETITION_CONSULTATION_WITH_C1_HAS_ENDED);
SystemMessage sm = new SystemMessage(SystemMessageId.A_GLOBAL_SUPPORT_CONSULTATION_C1_HAS_BEEN_FINISHED);
sm.addString(_petitioner.getName());
_responder.sendPacket(sm);
if (endState == PetitionState.PETITIONER_CANCEL)
{
// Receipt No. <ID> petition cancelled.
sm = new SystemMessage(SystemMessageId.PETITION_NO_S1_CANCELLED);
sm = new SystemMessage(SystemMessageId.REQUEST_NO_S1_TO_THE_GLOBAL_SUPPORT_WAS_CANCELLED);
sm.addInt(_id);
_responder.sendPacket(sm);
}
@@ -93,7 +93,7 @@ public class Petition
// End petition consultation and inform them, if they are still online. And if petitioner is online, enable Evaluation button
if ((_petitioner != null) && _petitioner.isOnline())
{
_petitioner.sendPacket(SystemMessageId.THIS_ENDS_THE_GM_PETITION_CONSULTATION_PLEASE_GIVE_US_FEEDBACK_ON_THE_PETITION_SERVICE);
_petitioner.sendPacket(SystemMessageId.GLOBAL_SUPPORT_HAS_ALREADY_RESPONDED_TO_YOUR_REQUEST_PLEASE_GIVE_US_FEEDBACK_ON_THE_SERVICE_QUALITY);
_petitioner.sendPacket(PetitionVotePacket.STATIC_PACKET);
}

View File

@@ -1052,7 +1052,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
{
if (getActingPlayer().inObserverMode())
{
sendPacket(SystemMessageId.OBSERVERS_CANNOT_PARTICIPATE);
sendPacket(SystemMessageId.YOU_CANNOT_USE_THIS_FUNCTION_IN_THE_OBSERVER_MODE);
sendPacket(ActionFailed.STATIC_PACKET);
return;
}

View File

@@ -2274,13 +2274,13 @@ public class Player extends Playable
{
if (item.getEnchantLevel() > 0)
{
sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(item.getEnchantLevel());
sm.addItemName(item);
}
else
{
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
sm.addItemName(item);
}
sendPacket(sm);
@@ -2303,13 +2303,13 @@ public class Player extends Playable
{
if (item.getEnchantLevel() > 0)
{
sm = new SystemMessage(SystemMessageId.YOU_HAVE_EQUIPPED_S1_S2);
sm = new SystemMessage(SystemMessageId.S1_S2_EQUIPPED);
sm.addInt(item.getEnchantLevel());
sm.addItemName(item);
}
else
{
sm = new SystemMessage(SystemMessageId.YOU_HAVE_EQUIPPED_S1);
sm = new SystemMessage(SystemMessageId.S1_EQUIPPED);
sm.addItemName(item);
}
sendPacket(sm);
@@ -2535,7 +2535,7 @@ public class Player extends Playable
}
else
{
sendPacket(SystemMessageId.CONGRATULATIONS_YOU_VE_COMPLETED_A_CLASS_TRANSFER);
sendPacket(SystemMessageId.CONGRATULATIONS_YOU_VE_COMPLETED_THE_CLASS_CHANGE);
}
// Remove class permitted hennas.
@@ -6122,13 +6122,13 @@ public class Player extends Playable
final Item unequippedItem = unequipped.get(0);
if (unequippedItem.getEnchantLevel() > 0)
{
sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(unequippedItem.getEnchantLevel());
sm.addItemName(unequippedItem);
}
else
{
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
sm.addItemName(unequippedItem);
}
sendPacket(sm);
@@ -6163,13 +6163,13 @@ public class Player extends Playable
final Item unequippedItem = unequipped.get(0);
if (unequippedItem.getEnchantLevel() > 0)
{
sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(unequippedItem.getEnchantLevel());
sm.addItemName(unequippedItem);
}
else
{
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
sm.addItemName(unequippedItem);
}
sendPacket(sm);
@@ -8726,7 +8726,7 @@ public class Player extends Playable
if (_observerMode)
{
sendPacket(SystemMessageId.OBSERVERS_CANNOT_PARTICIPATE);
sendPacket(SystemMessageId.YOU_CANNOT_USE_THIS_FUNCTION_IN_THE_OBSERVER_MODE);
sendPacket(ActionFailed.STATIC_PACKET);
return false;
}
@@ -12190,13 +12190,13 @@ public class Player extends Playable
if (equippedItem.getEnchantLevel() > 0)
{
sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(equippedItem.getEnchantLevel());
sm.addItemName(equippedItem);
}
else
{
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
sm.addItemName(equippedItem);
}
sendPacket(sm);

View File

@@ -217,7 +217,7 @@ public class ControllableAirShip extends AirShip
if ((_fuel == 0) && (old > 0))
{
broadcastToPassengers(new SystemMessage(SystemMessageId.THE_AIRSHIP_S_FUEL_EP_HAS_RUN_OUT_THE_AIRSHIP_S_SPEED_WILL_BE_GREATLY_DECREASED_IN_THIS_CONDITION));
broadcastToPassengers(new SystemMessage(SystemMessageId.THE_AIRSHIP_S_FUEL_EP_HAS_RUN_OUT_THE_AIRSHIP_S_SPEED_IS_GREATLY_DECREASED));
}
else if (_fuel < LOW_FUEL)
{

View File

@@ -2251,7 +2251,7 @@ public class Clan implements IIdentifiable, INamable
}
if (_level < 5)
{
player.sendPacket(SystemMessageId.TO_CREATE_AN_ALLIANCE_YOUR_CLAN_MUST_BE_LEVEL_5_OR_HIGHER);
player.sendPacket(SystemMessageId.TO_CREATE_AN_ALLIANCE_YOUR_CLAN_MUST_BE_LV_5_OR_HIGHER);
return;
}
if ((_allyPenaltyExpiryTime > System.currentTimeMillis()) && (_allyPenaltyType == PENALTY_TYPE_DISSOLVE_ALLY))
@@ -2295,7 +2295,7 @@ public class Clan implements IIdentifiable, INamable
{
if (_allyId == 0)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_CURRENTLY_ALLIED_WITH_ANY_CLANS);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_IN_AN_ALLIANCE);
return;
}
if (!player.isClanLeader() || (_clanId != _allyId))

View File

@@ -120,11 +120,11 @@ public class ClanWar
}
// System Message notification to clan members
SystemMessage sm = new SystemMessage(SystemMessageId.BECAUSE_C1_WAS_KILLED_BY_A_CLAN_MEMBER_OF_S2_CLAN_REPUTATION_DECREASED_BY_1);
SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_KILLED_BY_A_MEMBER_OF_THE_S2_CLAN_CLAN_REPUTATION_POINTS_1);
sm.addPcName(victim);
sm.addString(killerClan.getName());
victimClan.broadcastToOnlineMembers(sm);
sm = new SystemMessage(SystemMessageId.BECAUSE_CLAN_MEMBER_OF_S1_WAS_KILLED_BY_C2_CLAN_REPUTATION_INCREASED_BY_1);
sm = new SystemMessage(SystemMessageId.A_MEMBER_OF_THE_S1_CLAN_IS_KILLED_BY_C2_CLAN_REPUTATION_POINTS_1);
sm.addString(victimClan.getName());
sm.addPcName(killer);
killerClan.broadcastToOnlineMembers(sm);

View File

@@ -47,7 +47,7 @@ public class ConditionPlayerCallPc extends Condition
}
else if (player.isInOlympiadMode())
{
player.sendPacket(SystemMessageId.YOU_MAY_NOT_SUMMON_FROM_YOUR_CURRENT_LOCATION);
player.sendPacket(SystemMessageId.CANNOT_BE_SUMMONED_IN_THIS_LOCATION);
canCallPlayer = false;
}
else if (player.inObserverMode())

View File

@@ -63,35 +63,35 @@ public class ConditionPlayerCanCreateBase extends Condition
final SystemMessage sm;
if ((castle == null) && (fort == null))
{
sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
canCreateBase = false;
}
else if (((castle != null) && !castle.getSiege().isInProgress()) || ((fort != null) && !fort.getSiege().isInProgress()))
{
sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
canCreateBase = false;
}
else if (((castle != null) && (castle.getSiege().getAttackerClan(player.getClan()) == null)) || ((fort != null) && (fort.getSiege().getAttackerClan(player.getClan()) == null)))
{
sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
canCreateBase = false;
}
else if (!player.isClanLeader())
{
sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
canCreateBase = false;
}
else if (((castle != null) && (castle.getSiege().getAttackerClan(player.getClan()).getNumFlags() >= SiegeManager.getInstance().getFlagMaxCount())) || ((fort != null) && (fort.getSiege().getAttackerClan(player.getClan()).getNumFlags() >= FortSiegeManager.getInstance().getFlagMaxCount())))
{
sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
canCreateBase = false;

View File

@@ -61,7 +61,7 @@ public class ConditionPlayerCanResurrect extends Condition
canResurrect = false;
if (effector.isPlayer())
{
final SystemMessage msg = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage msg = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
msg.addSkillName(skill);
effector.sendPacket(msg);
}
@@ -132,7 +132,7 @@ public class ConditionPlayerCanResurrect extends Condition
canResurrect = false;
if (effector.isPlayer())
{
final SystemMessage msg = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage msg = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
msg.addSkillName(skill);
effector.sendPacket(msg);
}

View File

@@ -76,7 +76,7 @@ public class ConditionPlayerCanSweep extends Condition
}
else
{
sweeper.sendPacket(SystemMessageId.SWEEPER_FAILED_TARGET_NOT_SPOILED);
sweeper.sendPacket(SystemMessageId.THE_SWEEPER_HAS_FAILED_AS_THE_TARGET_IS_NOT_SPOILED);
}
}
}

View File

@@ -58,7 +58,7 @@ public class ConditionPlayerCanTakeCastle extends Condition
SystemMessage sm;
if ((castle == null) || (castle.getResidenceId() <= 0) || !castle.getSiege().isInProgress() || (castle.getSiege().getAttackerClan(player.getClan()) == null))
{
sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
canTakeCastle = false;

View File

@@ -58,7 +58,7 @@ public class ConditionPlayerCanTakeFort extends Condition
final SystemMessage sm;
if ((fort == null) || (fort.getResidenceId() <= 0) || !fort.getSiege().isInProgress() || (fort.getSiege().getAttackerClan(player.getClan()) == null))
{
sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
canTakeFort = false;

View File

@@ -52,7 +52,7 @@ public class ConditionTargetMyPartyExceptMe extends Condition
}
else if (!player.isInParty() || !player.getParty().equals(effected.getParty()))
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
isPartyMember = false;

View File

@@ -31,7 +31,7 @@ public class ConditionParty extends Condition
public ConditionParty(InstanceTemplate template, StatSet parameters, boolean onlyLeader, boolean showMessageAndHtml)
{
super(template, parameters, true, showMessageAndHtml);
setSystemMessage(SystemMessageId.YOU_ARE_NOT_CURRENTLY_IN_A_PARTY_SO_YOU_CANNOT_ENTER);
setSystemMessage(SystemMessageId.YOU_ARE_NOT_IN_A_PARTY_SO_YOU_CANNOT_ENTER);
}
@Override

View File

@@ -344,7 +344,7 @@ public class AppearanceStone
{
if ((targetItem.getTemplate().getBodyPart() != ItemTemplate.SLOT_HAIR) && (targetItem.getTemplate().getBodyPart() != ItemTemplate.SLOT_HAIR2) && (targetItem.getTemplate().getBodyPart() != ItemTemplate.SLOT_HAIRALL))
{
player.sendPacket(SystemMessageId.HAIR_ACCESSORIES_ONLY);
player.sendPacket(SystemMessageId.HEAD_ACCESSORIES_ONLY);
return false;
}
break;
@@ -387,12 +387,12 @@ public class AppearanceStone
{
if (_weaponType != WeaponType.CROSSBOW)
{
player.sendPacket(SystemMessageId.THIS_ITEM_CANNOT_BE_USED_AS_AN_APPEARANCE_WEAPON);
player.sendPacket(SystemMessageId.THIS_ITEM_CANNOT_BE_EXTRACTED);
return false;
}
else if ((targetItem.getItemType() != WeaponType.CROSSBOW) && (targetItem.getItemType() != WeaponType.TWOHANDCROSSBOW))
{
player.sendPacket(SystemMessageId.THIS_ITEM_CANNOT_BE_USED_AS_AN_APPEARANCE_WEAPON);
player.sendPacket(SystemMessageId.THIS_ITEM_CANNOT_BE_EXTRACTED);
return false;
}
}

View File

@@ -577,7 +577,7 @@ public class Olympiad extends ListenersContainer
player.sendPacket(new ExOlympiadInfo(0));
}
Broadcast.toAllOnlinePlayers(new SystemMessage(SystemMessageId.BATTLES_IN_THE_OLYMPIAD_GAMES_ARE_NOW_OVER));
Broadcast.toAllOnlinePlayers(new SystemMessage(SystemMessageId.THE_OLYMPIAD_IS_OVER));
LOGGER.info("Olympiad System: Olympiad games have ended.");
while (OlympiadGameManager.getInstance().isBattleStarted()) // cleared in game manager

View File

@@ -97,7 +97,7 @@ public class OlympiadManager
{
if (showMessage)
{
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_ALREADY_REGISTERED_ON_THE_WAITING_LIST_FOR_THE_ALL_CLASS_BATTLE);
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_ALREADY_REGISTERED_FOR_ALL_CLASS_BATTLES);
sm.addPcName(noble);
player.sendPacket(sm);
}
@@ -158,7 +158,7 @@ public class OlympiadManager
}
case NON_CLASSED:
{
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_ALREADY_REGISTERED_ON_THE_WAITING_LIST_FOR_THE_ALL_CLASS_BATTLE);
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_ALREADY_REGISTERED_FOR_ALL_CLASS_BATTLES);
sm.addPcName(noble);
player.sendPacket(sm);
break;

View File

@@ -532,7 +532,7 @@ public class Siege implements Siegable
_siegeEndDate.add(Calendar.MINUTE, SiegeManager.getInstance().getSiegeLength());
ThreadPool.schedule(new ScheduleEndSiegeTask(_castle), 1000); // Prepare auto end task
final SystemMessage sm = new SystemMessage(SystemMessageId.THE_S1_SIEGE_HAS_STARTED);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_THE_SIEGE_HAS_BEGUN);
sm.addCastleId(_castle.getResidenceId());
Broadcast.toAllOnlinePlayers(sm);
Broadcast.toAllOnlinePlayers(new PlaySound("systemmsg_eu.17"));

View File

@@ -311,7 +311,7 @@ public class BuffInfo
// When effects are initialized, the successfully landed.
if (!_hideStartMessage && _effected.isPlayer() && !_skill.isHidingMessages() && !_skill.isAura())
{
final SystemMessage sm = new SystemMessage(_skill.isToggle() ? SystemMessageId.YOU_VE_USED_S1 : SystemMessageId.S1_S_EFFECT_CAN_BE_FELT);
final SystemMessage sm = new SystemMessage(_skill.isToggle() ? SystemMessageId.YOU_VE_USED_S1 : SystemMessageId.YOU_FEEL_THE_S1_EFFECT);
sm.addSkillName(_skill);
_effected.sendPacket(sm);
}

View File

@@ -1053,7 +1053,7 @@ public class Skill implements IIdentifiable
if (creature.isPlayer() && creature.getActingPlayer().isMounted() && isBad() && !MountEnabledSkillList.contains(_id))
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(_id);
creature.sendPacket(sm);
return false;
@@ -1063,7 +1063,7 @@ public class Skill implements IIdentifiable
{
if (sendMessage && !((creature == object) && isBad())) // Self targeted bad skills should not send a message.
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(_id);
creature.sendPacket(sm);
}

View File

@@ -1136,7 +1136,7 @@ public class SkillCaster implements Runnable
// Check if not in AirShip
if (player.isInAirShip() && !skill.hasEffectType(EffectType.REFUEL_AIRSHIP))
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addSkillName(skill);
player.sendPacket(sm);
return false;

View File

@@ -621,7 +621,7 @@ public class Formulas
{
case SHIELD_DEFENSE_SUCCEED:
{
enemy.sendPacket(SystemMessageId.YOUR_SHIELD_DEFENSE_HAS_SUCCEEDED);
enemy.sendPacket(SystemMessageId.YOU_VE_BLOCKED_THE_ATTACK);
break;
}
case SHIELD_DEFENSE_PERFECT_BLOCK:

View File

@@ -68,7 +68,7 @@ public class Action implements ClientPacket
if (player.inObserverMode())
{
player.sendPacket(SystemMessageId.OBSERVERS_CANNOT_PARTICIPATE);
player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THIS_FUNCTION_IN_THE_OBSERVER_MODE);
player.sendPacket(ActionFailed.STATIC_PACKET);
return;
}

View File

@@ -49,13 +49,13 @@ public class AllyDismiss implements ClientPacket
}
if (player.getClan() == null)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_AND_CANNOT_PERFORM_THIS_ACTION);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return;
}
final Clan leaderClan = player.getClan();
if (leaderClan.getAllyId() == 0)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_CURRENTLY_ALLIED_WITH_ANY_CLANS);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_IN_AN_ALLIANCE);
return;
}
if (!player.isClanLeader() || (leaderClan.getId() != leaderClan.getAllyId()))

View File

@@ -35,7 +35,7 @@ public class AllyLeave implements ClientPacket
if (player.getClan() == null)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_AND_CANNOT_PERFORM_THIS_ACTION);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return;
}
if (!player.isClanLeader())
@@ -46,7 +46,7 @@ public class AllyLeave implements ClientPacket
final Clan clan = player.getClan();
if (clan.getAllyId() == 0)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_CURRENTLY_ALLIED_WITH_ANY_CLANS);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_IN_AN_ALLIANCE);
return;
}
if (clan.getId() == clan.getAllyId())

View File

@@ -60,7 +60,7 @@ public class AnswerCoupleAction implements ClientPacket
if (_answer == 0) // cancel
{
target.sendPacket(SystemMessageId.THE_COUPLE_ACTION_WAS_DENIED);
target.sendPacket(SystemMessageId.THE_COUPLE_ACTION_REQUEST_HAS_BEEN_DENIED);
}
else if (_answer == 1) // approve
{

View File

@@ -120,7 +120,7 @@ public class DlgAnswer implements ClientPacket
{
player.reviveAnswer(_answer);
}
else if (_messageId == SystemMessageId.C1_WISHES_TO_SUMMON_YOU_FROM_S2_DO_YOU_ACCEPT.getId())
else if (_messageId == SystemMessageId.C1_WANTS_TO_SUMMON_YOU_TO_S2_ACCEPT.getId())
{
final SummonRequestHolder holder = player.removeScript(SummonRequestHolder.class);
if ((_answer == 1) && (holder != null) && (holder.getSummoner().getObjectId() == _requesterId))

View File

@@ -138,7 +138,7 @@ public class MoveToLocationAirShip implements ClientPacket
{
if (fuelConsumption > ship.getFuel())
{
player.sendPacket(SystemMessageId.YOUR_AIRSHIP_CANNOT_TELEPORT_BECAUSE_DUE_TO_LOW_FUEL);
player.sendPacket(SystemMessageId.NOT_ENOUGH_FUEL_FOR_TELEPORTATION);
return;
}
ship.setFuel(ship.getFuel() - fuelConsumption);

View File

@@ -215,7 +215,7 @@ public class MultiSellChoose implements ClientPacket
// Check if clan exists for clan reputation products.
if ((clan == null) && (SpecialItemType.CLAN_REPUTATION.getClientId() == product.getId()))
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_AND_CANNOT_PERFORM_THIS_ACTION);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return;
}
continue;
@@ -264,7 +264,7 @@ public class MultiSellChoose implements ClientPacket
// Check for enchanted item if its present in the inventory.
if ((itemEnchantment != null) && (inventory.getItemByObjectId(itemEnchantment.getObjectId()) == null))
{
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_NEED_A_N_S1);
final SystemMessage sm = new SystemMessage(SystemMessageId.REQUIRED_S1);
sm.addItemName(itemEnchantment.getItem().getId());
player.sendPacket(sm);
return;
@@ -304,7 +304,7 @@ public class MultiSellChoose implements ClientPacket
if (found < ingredient.getCount())
{
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_NEED_A_N_S1);
final SystemMessage sm = new SystemMessage(SystemMessageId.REQUIRED_S1);
sm.addString("+" + ingredient.getEnchantmentLevel() + " " + ItemTable.getInstance().getTemplate(ingredient.getId()).getName());
player.sendPacket(sm);
return;
@@ -392,7 +392,7 @@ public class MultiSellChoose implements ClientPacket
}
else
{
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_NEED_A_N_S1);
final SystemMessage sm = new SystemMessage(SystemMessageId.REQUIRED_S1);
sm.addItemName(ingredient.getId());
player.sendPacket(sm);
return;
@@ -413,7 +413,7 @@ public class MultiSellChoose implements ClientPacket
}
else
{
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_NEED_A_N_S1);
final SystemMessage sm = new SystemMessage(SystemMessageId.REQUIRED_S1);
sm.addItemName(ingredient.getId());
player.sendPacket(sm);
return;
@@ -638,7 +638,7 @@ public class MultiSellChoose implements ClientPacket
{
if (clan == null)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_AND_CANNOT_PERFORM_THIS_ACTION);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return false;
}
else if (!player.isClanLeader())

View File

@@ -96,7 +96,7 @@ public class RequestAllyInfo implements ClientPacket
}
else
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_CURRENTLY_ALLIED_WITH_ANY_CLANS);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_IN_AN_ALLIANCE);
}
}
}

View File

@@ -92,7 +92,7 @@ public class RequestBlock implements ClientPacket
if (targetAL > 0)
{
// Cannot block a GM character.
player.sendPacket(SystemMessageId.YOU_MAY_NOT_IMPOSE_A_BLOCK_ON_A_GM);
player.sendPacket(SystemMessageId.YOU_CANNOT_BAN_A_GM);
return;
}

View File

@@ -217,13 +217,13 @@ public class RequestCrystallizeItem implements ClientPacket
if (itemToRemove.getEnchantLevel() > 0)
{
sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(itemToRemove.getEnchantLevel());
sm.addItemName(itemToRemove);
}
else
{
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
sm.addItemName(itemToRemove);
}
player.sendPacket(sm);

View File

@@ -180,14 +180,14 @@ public class RequestDestroyItem implements ClientPacket
{
if (itemToRemove.getEnchantLevel() > 0)
{
final SystemMessage sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(itemToRemove.getEnchantLevel());
sm.addItemName(itemToRemove);
player.sendPacket(sm);
}
else
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
sm.addItemName(itemToRemove);
player.sendPacket(sm);
}

View File

@@ -54,7 +54,7 @@ public class RequestJoinAlly implements ClientPacket
final Clan clan = player.getClan();
if (clan == null)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_AND_CANNOT_PERFORM_THIS_ACTION);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return;
}

View File

@@ -142,7 +142,7 @@ public class RequestJoinParty implements ClientPacket
if (BlockList.isBlocked(target, requestor))
{
sm = new SystemMessage(SystemMessageId.C1_HAS_PLACED_YOU_ON_HIS_HER_IGNORE_LIST);
sm = new SystemMessage(SystemMessageId.C1_HAS_PLACED_YOU_ON_THEIR_IGNORE_LIST);
sm.addString(target.getName());
requestor.sendPacket(sm);
return;

View File

@@ -52,7 +52,7 @@ public class RequestOustPledgeMember implements ClientPacket
}
if (player.getClan() == null)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_AND_CANNOT_PERFORM_THIS_ACTION);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return;
}
if (!player.hasClanPrivilege(ClanPrivilege.CL_DISMISS))

View File

@@ -70,7 +70,7 @@ public class RequestPetUseItem implements ClientPacket
if (player.isAlikeDead() || pet.isDead())
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addItemName(item);
player.sendPacket(sm);
return;

View File

@@ -69,26 +69,26 @@ public class RequestPetition implements ClientPacket
if (!PetitionManager.getInstance().isPetitioningAllowed())
{
player.sendPacket(SystemMessageId.THE_GAME_CLIENT_ENCOUNTERED_AN_ERROR_AND_WAS_UNABLE_TO_CONNECT_TO_THE_PETITION_SERVER);
player.sendPacket(SystemMessageId.UNABLE_TO_CONNECT_TO_THE_GLOBAL_SUPPORT_SERVER);
return;
}
if (PetitionManager.getInstance().isPlayerPetitionPending(player))
{
player.sendPacket(SystemMessageId.YOU_MAY_ONLY_SUBMIT_ONE_PETITION_ACTIVE_AT_A_TIME);
player.sendPacket(SystemMessageId.YOUR_GLOBAL_SUPPORT_REQUEST_WAS_RECEIVED);
return;
}
if (PetitionManager.getInstance().getPendingPetitionCount() == Config.MAX_PETITIONS_PENDING)
{
player.sendPacket(SystemMessageId.THE_PETITION_SERVICE_IS_CURRENTLY_UNAVAILABLE_PLEASE_SEND_A_SUPPORT_TICKET_ON_HTTPS_EU_4GAMESUPPORT_COM);
player.sendPacket(SystemMessageId.UNABLE_TO_SEND_YOUR_REQUEST_TO_THE_GLOBAL_SUPPORT_PLEASE_TRY_AGAIN_LATER);
return;
}
final int totalPetitions = PetitionManager.getInstance().getPlayerTotalPetitionCount(player) + 1;
if (totalPetitions > Config.MAX_PETITIONS_PER_PLAYER)
{
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_HAVE_SUBMITTED_THE_MAXIMUM_NUMBER_OF_PETITIONS_S1_TODAY_YOU_CANNOT_SUBMIT_MORE);
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_HAVE_SUBMITTED_MAXIMUM_NUMBER_OF_S1_GLOBAL_SUPPORT_REQUESTS_TODAY_YOU_CANNOT_SUBMIT_MORE_REQUESTS);
sm.addInt(totalPetitions);
player.sendPacket(sm);
return;
@@ -96,21 +96,21 @@ public class RequestPetition implements ClientPacket
if (_content.length() > 255)
{
player.sendPacket(SystemMessageId.THE_PETITION_CAN_CONTAIN_UP_TO_800_CHARACTERS);
player.sendPacket(SystemMessageId.YOUR_GLOBAL_SUPPORT_REQUEST_CAN_CONTAIN_UP_TO_800_CHARACTERS);
return;
}
final int petitionId = PetitionManager.getInstance().submitPetition(player, _content, _type);
SystemMessage sm = new SystemMessage(SystemMessageId.YOUR_PETITION_APPLICATION_HAS_BEEN_ACCEPTED_RECEIPT_NO_IS_S1);
SystemMessage sm = new SystemMessage(SystemMessageId.YOUR_GLOBAL_SUPPORT_REQUEST_WAS_RECEIVED_REQUEST_NO_S1);
sm.addInt(petitionId);
player.sendPacket(sm);
sm = new SystemMessage(SystemMessageId.YOU_HAVE_SUBMITTED_S1_PETITION_S_YOU_MAY_SUBMIT_S2_MORE_PETITION_S_TODAY);
sm = new SystemMessage(SystemMessageId.SUPPORT_RECEIVED_S1_TIME_S_GLOBAL_SUPPORT_REQUESTS_LEFT_FOR_TODAY_S2);
sm.addInt(totalPetitions);
sm.addInt(Config.MAX_PETITIONS_PER_PLAYER - totalPetitions);
player.sendPacket(sm);
sm = new SystemMessage(SystemMessageId.THERE_ARE_S1_PETITIONS_CURRENTLY_ON_THE_WAITING_LIST);
sm = new SystemMessage(SystemMessageId.S1_USERS_ARE_IN_LINE_TO_GET_THE_GLOBAL_SUPPORT);
sm.addInt(PetitionManager.getInstance().getPendingPetitionCount());
player.sendPacket(sm);
}

View File

@@ -54,7 +54,7 @@ public class RequestPetitionCancel implements ClientPacket
}
else
{
player.sendPacket(SystemMessageId.YOUR_PETITION_IS_BEING_PROCESSED);
player.sendPacket(SystemMessageId.YOUR_GLOBAL_SUPPORT_REQUEST_IS_BEING_PROCESSED);
}
}
else if (PetitionManager.getInstance().isPlayerPetitionPending(player))
@@ -62,7 +62,7 @@ public class RequestPetitionCancel implements ClientPacket
if (PetitionManager.getInstance().cancelActivePetition(player))
{
final int numRemaining = Config.MAX_PETITIONS_PER_PLAYER - PetitionManager.getInstance().getPlayerTotalPetitionCount(player);
final SystemMessage sm = new SystemMessage(SystemMessageId.THE_PETITION_WAS_CANCELED_YOU_MAY_SUBMIT_S1_MORE_PETITION_S_TODAY);
final SystemMessage sm = new SystemMessage(SystemMessageId.YOUR_GLOBAL_SUPPORT_REQUEST_HAS_BEEN_REVOKED_NUMBER_OR_REQUESTS_YOU_CAN_SEND_S1);
sm.addString(String.valueOf(numRemaining));
player.sendPacket(sm);
@@ -72,12 +72,12 @@ public class RequestPetitionCancel implements ClientPacket
}
else
{
player.sendPacket(SystemMessageId.FAILED_TO_CANCEL_PETITION_PLEASE_TRY_AGAIN_LATER);
player.sendPacket(SystemMessageId.FAILED_TO_CANCEL_YOUR_GLOBAL_SUPPORT_REQUEST_PLEASE_TRY_AGAIN_LATER);
}
}
else
{
player.sendPacket(SystemMessageId.YOU_HAVE_NOT_SUBMITTED_A_PETITION);
player.sendPacket(SystemMessageId.GLOBAL_SUPPORT_DOES_NOT_ACCEPT_REQUESTS_AT_THE_MOMENT);
}
}
}

View File

@@ -167,7 +167,7 @@ public class RequestRecipeItemMakeSelf implements ClientPacket
{
if (craftingCritical)
{
player.sendPacket(SystemMessageId.CRAFTING_CRITICAL);
player.sendPacket(SystemMessageId.CRITICAL_CRAFT);
}
}
else // Failed craft.

View File

@@ -211,7 +211,7 @@ public class RequestRecipeShopMakeItem implements ClientPacket
{
if (craftingCritical)
{
player.sendPacket(SystemMessageId.CRAFTING_CRITICAL);
player.sendPacket(SystemMessageId.CRITICAL_CRAFT);
}
if (craftedItem.getCount() > 1)
{

View File

@@ -108,12 +108,12 @@ public class RequestUnEquipItem implements ClientPacket
final Item unequippedItem = unequipped.get(0);
if (unequippedItem.getEnchantLevel() > 0)
{
sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(unequippedItem.getEnchantLevel());
}
else
{
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
}
sm.addItemName(unequippedItem);
player.sendPacket(sm);

View File

@@ -40,7 +40,7 @@ public class RequestWithdrawalPledge implements ClientPacket
}
if (player.getClan() == null)
{
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_AND_CANNOT_PERFORM_THIS_ACTION);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return;
}
if (player.isClanLeader())

View File

@@ -215,7 +215,7 @@ public class TradeRequest implements ClientPacket
if (BlockList.isBlocked(partner, player))
{
sm = new SystemMessage(SystemMessageId.C1_HAS_PLACED_YOU_ON_HIS_HER_IGNORE_LIST);
sm = new SystemMessage(SystemMessageId.C1_HAS_PLACED_YOU_ON_THEIR_IGNORE_LIST);
sm.addString(partner.getName());
player.sendPacket(sm);
return;

View File

@@ -130,7 +130,7 @@ public class UseItem implements ClientPacket
// Char cannot use item when dead
if (player.isDead() || !player.getInventory().canManipulateWithItemId(item.getId()))
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_THE_FUNCTION_CANNOT_BE_USED_AS_CERTAIN_REQUIREMENTS_ARE_NOT_MET);
sm.addItemName(item);
player.sendPacket(sm);
return;

View File

@@ -169,7 +169,7 @@ public class RequestAlchemyConversion implements ClientPacket
if (player.getInventory().getInventoryItemCount(ingredient.getId(), -1) < (ingredient.getCount() * _craftTimes))
{
player.sendPacket(new ExAlchemyConversion(0, 0));
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_ENOUGH_MATERIALS_TO_PERFORM_THAT_ACTION_2);
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_ENOUGH_MATERIALS_TO_PERFORM_THAT_ACTION);
return;
}
}

View File

@@ -149,7 +149,7 @@ public class RequestAlchemyTryMixCube implements ClientPacket
final long price = itemInstance.getReferencePrice();
if (itemInstance.getReferencePrice() == 0)
{
player.sendPacket(SystemMessageId.THIS_ITEM_CANNOT_BE_COMBINED);
player.sendPacket(SystemMessageId.THIS_ITEM_CANNOT_BE_USED_IN_COMPOUNDING);
player.sendPacket(new ExTryMixCube(TryMixCubeType.FAIL_ITEM_WRONG));
return;
}

View File

@@ -76,7 +76,7 @@ public class RequestVipAttendanceCheck implements ClientPacket
final long slots = itemTemplate.isStackable() ? 1 : reward.getCount();
if (!player.getInventory().validateWeight(weight) || !player.getInventory().validateCapacity(slots))
{
player.sendPacket(SystemMessageId.THE_ATTENDANCE_REWARD_CANNOT_BE_RECEIVED_BECAUSE_THE_INVENTORY_WEIGHT_QUANTITY_LIMIT_HAS_BEEN_EXCEEDED);
player.sendPacket(SystemMessageId.THE_ATTENDANCE_REWARD_CANNOT_BE_RECEIVED_AS_YOUR_INVENTORY_S_WEIGHT_SLOT_LIMIT_HAS_BEEN_EXCEEDED);
return;
}

View File

@@ -57,7 +57,7 @@ public class RequestCommissionBuyInfo implements ClientPacket
if (!player.isInventoryUnder80(false) || (player.getWeightPenalty() >= 3))
{
player.sendPacket(SystemMessageId.IF_THE_WEIGHT_IS_80_OR_MORE_AND_THE_INVENTORY_NUMBER_IS_90_OR_MORE_PURCHASE_CANCELLATION_IS_NOT_POSSIBLE);
player.sendPacket(SystemMessageId.TO_BUY_CANCEL_YOU_NEED_20_OF_FREE_WEIGHT_AND_10_OF_FREE_SLOTS_IN_YOUR_INVENTORY);
player.sendPacket(ExResponseCommissionBuyInfo.FAILED);
return;
}

View File

@@ -295,14 +295,14 @@ public class RequestEnchantItem implements ClientPacket
{
if (item.getEnchantLevel() > 0)
{
final SystemMessage sm = new SystemMessage(SystemMessageId.ITEM_S1_S2_UNEQUIPPED);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2_UNEQUIPPED);
sm.addInt(item.getEnchantLevel());
sm.addItemName(item);
player.sendPacket(sm);
}
else
{
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_UNEQUIPPED);
sm.addItemName(item);
player.sendPacket(sm);
}

View File

@@ -84,13 +84,13 @@ public class RequestAnswerFriendInvite implements ClientPacket
requestor.sendPacket(msg);
// Player added to your friend list
msg = new SystemMessage(SystemMessageId.S1_HAS_BEEN_ADDED_TO_YOUR_FRIENDS_LIST);
msg = new SystemMessage(SystemMessageId.S1_HAS_BEEN_ADDED_TO_YOUR_FRIEND_LIST);
msg.addString(player.getName());
requestor.sendPacket(msg);
requestor.getFriendList().add(player.getObjectId());
// has joined as friend.
msg = new SystemMessage(SystemMessageId.S1_HAS_BEEN_ADDED_TO_YOUR_FRIENDS_LIST_2);
msg = new SystemMessage(SystemMessageId.S1_HAS_BEEN_ADDED_TO_YOUR_FRIEND_LIST_2);
msg.addString(requestor.getName());
player.sendPacket(msg);
player.getFriendList().add(requestor.getObjectId());

View File

@@ -82,7 +82,7 @@ public class RequestFriendDel implements ClientPacket
statement.execute();
// Player deleted from your friend list
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_REMOVED_FROM_YOUR_FRIENDS_LIST_2);
sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_REMOVED_FROM_YOUR_FRIEND_LIST_2);
sm.addString(_name);
player.sendPacket(sm);

View File

@@ -53,7 +53,7 @@ public class HuntpassSayhasToggle implements ClientPacket
int timeUsed = huntPass.getUsedSayhaTime();
if (player.getVitalityPoints() < 35000)
{
player.sendPacket(SystemMessageId.UNABLE_TO_ACTIVATE_YOU_CAN_USE_SAYHA_S_GRACE_SUSTENTION_EFFECT_OF_THE_SEASON_PASS_ONLY_IF_YOU_HAVE_AT_LEAST_35_000_SAYHA_S_GRACE_POINTS);
player.sendPacket(SystemMessageId.THE_MAXIMUM_NUMBER_OF_WORLD_TRADE_ITEMS_FOR_REGISTRATION_IS_10);
return;
}

View File

@@ -63,7 +63,7 @@ public class RequestHuntPassReward implements ClientPacket
final long slots = itemTemplate.isStackable() ? 1 : reward.getCount();
if (!player.getInventory().validateWeight(weight) || !player.getInventory().validateCapacity(slots))
{
player.sendPacket(SystemMessageId.YOUR_INVENTORY_S_WEIGHT_LIMIT_HAS_BEEN_EXCEEDED_SO_YOU_CAN_T_RECEIVE_THE_REWARD_PLEASE_FREE_UP_SOME_SPACE_AND_TRY_AGAIN);
player.sendPacket(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
return;
}
@@ -93,7 +93,7 @@ public class RequestHuntPassReward implements ClientPacket
{
final int count = (int) reward.getCount();
huntpass.addSayhaTime(count);
final SystemMessage msg = new SystemMessage(SystemMessageId.YOU_RECEIVED_S1_SAYHA_S_GRACE_SUSTENTION_POINTS);
final SystemMessage msg = new SystemMessage(SystemMessageId.YOU_ARE_NOT_A_CLAN_MEMBER_2);
msg.addInt(count);
player.sendPacket(msg);
}

View File

@@ -77,7 +77,7 @@ public class ExRequestTeleport implements ClientPacket
// Teleport in combat configuration.
if (!Config.TELEPORT_WHILE_PLAYER_IN_COMBAT && (player.isInCombat() || player.isCastingNow()))
{
player.sendPacket(SystemMessageId.YOU_CANNOT_TELEPORT_WHILE_IN_COMBAT_MODE);
player.sendPacket(SystemMessageId.YOU_CANNOT_TELEPORT_WHILE_IN_COMBAT);
return;
}

View File

@@ -22,8 +22,8 @@ import org.l2jmobius.gameserver.enums.MailType;
import org.l2jmobius.gameserver.model.Message;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer;
import org.l2jmobius.gameserver.network.ServerPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.ServerPackets;
import org.l2jmobius.gameserver.network.SystemMessageId;
/**
@@ -59,7 +59,7 @@ public class ExReplyReceivedPost extends AbstractItemPacket
if (_msg.getMailType() == MailType.COMMISSION_ITEM_RETURNED)
{
writeInt(SystemMessageId.THE_REGISTRATION_PERIOD_FOR_THE_ITEM_YOU_REGISTERED_HAS_EXPIRED.getId());
writeInt(SystemMessageId.THE_AUCTION_HOUSE_REGISTRATION_PERIOD_HAS_EXPIRED_AND_THE_CORRESPONDING_ITEM_IS_BEING_FORWARDED.getId());
writeInt(SystemMessageId.THE_WORLD_TRADE_REGISTRATION_PERIOD_HAS_EXPIRED_AND_THE_CORRESPONDING_ITEM_IS_BEING_FORWARDED.getId());
}
else if (_msg.getMailType() == MailType.COMMISSION_ITEM_SOLD)
{

View File

@@ -133,7 +133,7 @@ public class SystemMessage extends ServerPacket
{
throw new NullPointerException();
}
_smId = SystemMessageId.getSystemMessageId(SystemMessageId.S1_3.getId());
_smId = SystemMessageId.getSystemMessageId(SystemMessageId.S1_2.getId());
_params = new SMParam[1];
addString(text);
}