Updated system messages and NPC strings.
This commit is contained in:
@@ -226,7 +226,7 @@ public final class BotReportTable
|
||||
|
||||
if (bot.isInsideZone(ZoneId.PEACE) || bot.isInsideZone(ZoneId.PVP))
|
||||
{
|
||||
reporter.sendPacket(SystemMessageId.YOU_CANNOT_REPORT_A_CHARACTER_WHO_IS_IN_A_PEACE_ZONE_OR_A_BATTLEGROUND);
|
||||
reporter.sendPacket(SystemMessageId.YOU_CANNOT_REPORT_A_CHARACTER_IN_THIS_AREA);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ public final class BotReportTable
|
||||
{
|
||||
if (rcdRep.getPointsLeft() == 0)
|
||||
{
|
||||
reporter.sendPacket(SystemMessageId.YOU_HAVE_USED_ALL_AVAILABLE_POINTS_POINTS_ARE_RESET_EVERYDAY_AT_NOON);
|
||||
reporter.sendPacket(SystemMessageId.YOU_SPENT_ALL_AVAILABLE_POINTS_THEY_WILL_BECOME_AVAILABLE_WHEN_THEY_ARE_RESET_AT_06_30_AM_EVERY_DAY);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -157,7 +157,7 @@ public final class HandysBlockCheckerManager
|
||||
{
|
||||
if (_arenaPlayers[i].getAllPlayers().contains(player))
|
||||
{
|
||||
final SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.C1_IS_ALREADY_REGISTERED_ON_THE_MATCH_WAITING_LIST);
|
||||
final SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.THE_MATCH_C1_PREVIOUSLY_PARTICIPATED_IN_SHOULD_END_BEFORE_YOU_APPLY_PLEASE_TRY_AGAIN_LATER);
|
||||
msg.addString(player.getName());
|
||||
player.sendPacket(msg);
|
||||
return false;
|
||||
|
@@ -208,7 +208,7 @@ public class Fishing
|
||||
}
|
||||
else
|
||||
{
|
||||
_player.sendPacket(SystemMessageId.YOU_CAN_T_FISH_HERE);
|
||||
_player.sendPacket(SystemMessageId.YOU_CAN_T_FISH_HERE_YOUR_CHARACTER_IS_NOT_FACING_WATER_OR_YOU_ARE_NOT_IN_A_FISHING_GROUND);
|
||||
_player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
}
|
||||
stopFishing(FishingEndType.ERROR);
|
||||
@@ -388,7 +388,7 @@ public class Fishing
|
||||
int baitZ = computeBaitZ(_player, baitX, baitY, fishingZone, waterZone);
|
||||
if (baitZ == Integer.MIN_VALUE)
|
||||
{
|
||||
_player.sendPacket(SystemMessageId.YOU_CAN_T_FISH_HERE);
|
||||
_player.sendPacket(SystemMessageId.YOU_CAN_T_FISH_HERE_YOUR_CHARACTER_IS_NOT_FACING_WATER_OR_YOU_ARE_NOT_IN_A_FISHING_GROUND);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@@ -953,7 +953,7 @@ public class L2Npc extends L2Character
|
||||
final String msg = Config.ANNOUNCE_PK_MSG.replace("$killer", player.getName()).replace("$target", getName());
|
||||
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
|
||||
{
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S13);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_3);
|
||||
sm.addString(msg);
|
||||
Broadcast.toAllOnlinePlayers(sm);
|
||||
}
|
||||
@@ -985,7 +985,7 @@ public class L2Npc extends L2Character
|
||||
final String msg = Config.ANNOUNCE_PVP_MSG.replace("$killer", player.getName()).replace("$target", getName());
|
||||
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
|
||||
{
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S13);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_3);
|
||||
sm.addString(msg);
|
||||
Broadcast.toAllOnlinePlayers(sm);
|
||||
}
|
||||
|
@@ -721,7 +721,7 @@ public abstract class L2Summon extends L2Playable
|
||||
}
|
||||
else
|
||||
{
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2_S4);
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2);
|
||||
sm.addNpcName(this);
|
||||
sm.addString(target.getName());
|
||||
sm.addInt(damage);
|
||||
|
@@ -152,7 +152,7 @@ public class DoppelgangerInstance extends L2Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2_S4);
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2);
|
||||
sm.addNpcName(this);
|
||||
sm.addString(target.getName());
|
||||
sm.addInt(damage);
|
||||
|
@@ -3079,7 +3079,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -3407,7 +3407,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -3463,7 +3463,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -3488,7 +3488,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -3520,7 +3520,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -3703,7 +3703,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -3792,7 +3792,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -5012,7 +5012,7 @@ public final class L2PcInstance extends L2Playable
|
||||
msg = Config.ANNOUNCE_PK_MSG.replace("$killer", killer.getName()).replace("$target", getName());
|
||||
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
|
||||
{
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S13);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_3);
|
||||
sm.addString(msg);
|
||||
Broadcast.toAllOnlinePlayers(sm);
|
||||
}
|
||||
@@ -5026,7 +5026,7 @@ public final class L2PcInstance extends L2Playable
|
||||
msg = Config.ANNOUNCE_PVP_MSG.replace("$killer", killer.getName()).replace("$target", getName());
|
||||
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
|
||||
{
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S13);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_3);
|
||||
sm.addString(msg);
|
||||
Broadcast.toAllOnlinePlayers(sm);
|
||||
}
|
||||
@@ -6145,7 +6145,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
// You can't mount, dismount, break and drop items while fishing
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_DO_THAT_WHILE_FISHING2);
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_DO_THAT_WHILE_FISHING_2);
|
||||
return false;
|
||||
}
|
||||
else if (isTransformed() || isCursedWeaponEquipped())
|
||||
@@ -9415,7 +9415,7 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
if (isInsideZone(ZoneId.PVP) || isInsideZone(ZoneId.PEACE) || isInsideZone(ZoneId.SIEGE))
|
||||
{
|
||||
_noDuelReason = SystemMessageId.C1_CANNOT_MAKE_A_CHALLENGE_TO_A_DUEL_BECAUSE_C1_IS_CURRENTLY_IN_A_DUEL_PROHIBITED_AREA_PEACEFUL_ZONE_BATTLE_ZONE_NEAR_WATER_RESTART_PROHIBITED_AREA;
|
||||
_noDuelReason = SystemMessageId.C1_IS_IN_AN_AREA_WHERE_DUEL_IS_NOT_ALLOWED_AND_YOU_CANNOT_APPLY_FOR_A_DUEL;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -11565,7 +11565,7 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
else
|
||||
{
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2_S4);
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2);
|
||||
sm.addPcName(this);
|
||||
sm.addString(target.getName());
|
||||
sm.addInt(damage);
|
||||
@@ -13786,7 +13786,7 @@ public final class L2PcInstance extends L2Playable
|
||||
if (AdminData.getInstance().requireConfirm(command))
|
||||
{
|
||||
setAdminConfirmCmd(fullCommand);
|
||||
final ConfirmDlg dlg = new ConfirmDlg(SystemMessageId.S13);
|
||||
final ConfirmDlg dlg = new ConfirmDlg(SystemMessageId.S1_3);
|
||||
dlg.addString("Are you sure you want execute command " + fullCommand.substring(6) + " ?");
|
||||
addAction(PlayerAction.ADMIN_COMMAND);
|
||||
sendPacket(dlg);
|
||||
|
@@ -393,7 +393,7 @@ public class L2PetInstance extends L2Summon
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -441,7 +441,7 @@ public class L2PetInstance extends L2Summon
|
||||
{
|
||||
if (sendMessage)
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@@ -271,7 +271,7 @@ public final class L2TrapInstance extends L2Npc
|
||||
}
|
||||
else
|
||||
{
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2_S4);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_INFLICTED_S3_DAMAGE_ON_C2);
|
||||
sm.addString(getName());
|
||||
sm.addString(target.getName());
|
||||
sm.addInt(damage);
|
||||
|
@@ -258,7 +258,7 @@ public final class ItemAuction
|
||||
|
||||
if (newBid > 100000000000L)
|
||||
{
|
||||
player.sendPacket(SystemMessageId.BIDDING_IS_NOT_ALLOWED_BECAUSE_THE_MAXIMUM_BIDDING_PRICE_EXCEEDS_100_BILLION);
|
||||
player.sendPacket(SystemMessageId.THE_HIGHEST_BID_IS_OVER_999_9_BILLION_THEREFORE_YOU_CANNOT_PLACE_A_BID);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ public final class ItemAuction
|
||||
final L2PcInstance old = _highestBid.getPlayer();
|
||||
if (old != null)
|
||||
{
|
||||
old.sendPacket(SystemMessageId.YOU_HAVE_BEEN_OUTBID);
|
||||
old.sendPacket(SystemMessageId.YOU_WERE_OUTBID_THE_NEW_HIGHEST_BID_IS_S1_ADENA);
|
||||
}
|
||||
|
||||
_highestBid = bid;
|
||||
|
@@ -214,7 +214,7 @@ public class OlympiadManager
|
||||
|
||||
if (Olympiad.getInstance().getRemainingWeeklyMatchesClassed(charId) < 1)
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOU_CAN_ENTER_UP_TO_30_FREE_FOR_ALL_BATTLES_AND_30_CLASS_SPECIFIC_BATTLES_PER_WEEK);
|
||||
player.sendPacket(SystemMessageId.YOU_MAY_PARTICIPATE_IN_UP_TO_30_MATCHES_PER_WEEK);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ public class OlympiadManager
|
||||
|
||||
if (Olympiad.getInstance().getRemainingWeeklyMatchesNonClassed(charId) < 1)
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOU_CAN_ENTER_UP_TO_30_FREE_FOR_ALL_BATTLES_AND_30_CLASS_SPECIFIC_BATTLES_PER_WEEK);
|
||||
player.sendPacket(SystemMessageId.YOU_MAY_PARTICIPATE_IN_UP_TO_30_MATCHES_PER_WEEK);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -65,7 +65,7 @@ public final class DlgAnswer implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (_messageId == SystemMessageId.S13.getId())
|
||||
if (_messageId == SystemMessageId.S1_3.getId())
|
||||
{
|
||||
if (activeChar.removeAction(PlayerAction.ADMIN_COMMAND))
|
||||
{
|
||||
|
@@ -706,7 +706,7 @@ public final class RequestAcquireSkill implements IClientIncomingPacket
|
||||
private void giveSkill(L2PcInstance player, L2Npc trainer, Skill skill, boolean store)
|
||||
{
|
||||
// Send message.
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_EARNED_S12);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_2);
|
||||
sm.addSkillName(skill);
|
||||
player.sendPacket(sm);
|
||||
|
||||
|
@@ -96,10 +96,10 @@ public final class RequestAllyInfo implements IClientIncomingPacket
|
||||
sm.addInt(aci.getTotal());
|
||||
client.sendPacket(sm);
|
||||
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.EMPTY4);
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.EMPTY_4);
|
||||
}
|
||||
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.EMPTY5);
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.EMPTY_5);
|
||||
client.sendPacket(sm);
|
||||
}
|
||||
else
|
||||
|
@@ -126,7 +126,7 @@ public final class RequestDropItem implements IClientIncomingPacket
|
||||
if (activeChar.isFishing())
|
||||
{
|
||||
// You can't mount, dismount, break and drop items while fishing
|
||||
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_DO_THAT_WHILE_FISHING2);
|
||||
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_DO_THAT_WHILE_FISHING_2);
|
||||
return;
|
||||
}
|
||||
if (activeChar.isFlying())
|
||||
|
@@ -71,7 +71,7 @@ public final class RequestDuelStart implements IClientIncomingPacket
|
||||
final String name = FakePlayerData.getInstance().getProperName(_player);
|
||||
if (activeChar.isInsideZone(ZoneId.PVP) || activeChar.isInsideZone(ZoneId.PEACE) || activeChar.isInsideZone(ZoneId.SIEGE))
|
||||
{
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_CANNOT_MAKE_A_CHALLENGE_TO_A_DUEL_BECAUSE_C1_IS_CURRENTLY_IN_A_DUEL_PROHIBITED_AREA_PEACEFUL_ZONE_BATTLE_ZONE_NEAR_WATER_RESTART_PROHIBITED_AREA);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_IS_IN_AN_AREA_WHERE_DUEL_IS_NOT_ALLOWED_AND_YOU_CANNOT_APPLY_FOR_A_DUEL);
|
||||
sm.addString(name);
|
||||
activeChar.sendPacket(sm);
|
||||
return;
|
||||
|
@@ -137,7 +137,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
// attempting to destroy scroll
|
||||
if (activeChar.getInventory().destroyItem("Enchant", scroll.getObjectId(), 1, activeChar, item) == null)
|
||||
{
|
||||
client.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
client.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " tried to enchant with a scroll he doesn't have", Config.DEFAULT_PUNISH);
|
||||
activeChar.removeRequest(request.getClass());
|
||||
client.sendPacket(new EnchantResult(EnchantResult.ERROR, 0, 0));
|
||||
@@ -149,7 +149,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
{
|
||||
if (activeChar.getInventory().destroyItem("Enchant", support.getObjectId(), 1, activeChar, item) == null)
|
||||
{
|
||||
client.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
client.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " tried to enchant with a support item he doesn't have", Config.DEFAULT_PUNISH);
|
||||
activeChar.removeRequest(request.getClass());
|
||||
client.sendPacket(new EnchantResult(EnchantResult.ERROR, 0, 0));
|
||||
@@ -268,7 +268,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
if (scrollTemplate.isSafe())
|
||||
{
|
||||
// safe enchant - remain old value
|
||||
client.sendPacket(SystemMessageId.ENCHANT_FAILED_THE_ENCHANT_SKILL_FOR_THE_CORRESPONDING_ITEM_WILL_BE_EXACTLY_RETAINED);
|
||||
client.sendPacket(SystemMessageId.ENCHANT_FAILED_THE_ENCHANT_VALUE_FOR_THE_CORRESPONDING_ITEM_WILL_BE_EXACTLY_RETAINED);
|
||||
client.sendPacket(new EnchantResult(EnchantResult.SAFE_FAIL, item));
|
||||
|
||||
if (Config.LOG_ITEM_ENCHANTS)
|
||||
|
@@ -113,7 +113,7 @@ public final class RequestGiveItemToPet implements IClientIncomingPacket
|
||||
|
||||
if (!pet.getInventory().validateWeight(item, _amount))
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOUR_PET_CANNOT_CARRY_ANY_MORE_ITEMS2);
|
||||
player.sendPacket(SystemMessageId.YOUR_PET_CANNOT_CARRY_ANY_MORE_ITEMS_2);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -69,7 +69,7 @@ public final class RequestPreviewItem implements IClientIncomingPacket
|
||||
{
|
||||
try
|
||||
{
|
||||
activeChar.sendPacket(SystemMessageId.YOU_ARE_NO_LONGER_TRYING_ON_EQUIPMENT2);
|
||||
activeChar.sendPacket(SystemMessageId.YOU_ARE_NO_LONGER_TRYING_ON_EQUIPMENT_2);
|
||||
activeChar.sendPacket(new ExUserInfoEquipSlot(activeChar));
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@@ -71,7 +71,7 @@ public final class RequestReplyStartPledgeWar implements IClientIncomingPacket
|
||||
}
|
||||
else
|
||||
{
|
||||
requestor.sendPacket(SystemMessageId.THE_S1_CLAN_DID_NOT_RESPOND_WAR_PROCLAMATION_HAS_BEEN_REFUSED2);
|
||||
requestor.sendPacket(SystemMessageId.THE_S1_CLAN_DID_NOT_RESPOND_WAR_PROCLAMATION_HAS_BEEN_REFUSED_2);
|
||||
}
|
||||
activeChar.setActiveRequester(null);
|
||||
requestor.onTransactionResponse();
|
||||
|
@@ -151,7 +151,7 @@ public final class Say2 implements IClientIncomingPacket
|
||||
}
|
||||
else if (Config.BAN_CHAT_CHANNELS.contains(chatType))
|
||||
{
|
||||
activeChar.sendPacket(SystemMessageId.CHATTING_IS_CURRENTLY_PROHIBITED_IF_YOU_TRY_TO_CHAT_BEFORE_THE_PROHIBITION_IS_REMOVED_THE_PROHIBITION_TIME_WILL_INCREASE_EVEN_FURTHER);
|
||||
activeChar.sendPacket(SystemMessageId.CHATTING_IS_CURRENTLY_PROHIBITED_IF_YOU_TRY_TO_CHAT_BEFORE_THE_PROHIBITION_IS_REMOVED_THE_PROHIBITION_TIME_WILL_INCREASE_EVEN_FURTHER_CHATTING_BAN_TIME_REMAINING_S1_SECONDS);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@@ -131,7 +131,7 @@ public final class UseItem implements IClientIncomingPacket
|
||||
if (activeChar.isFishing() && ((_itemId < 6535) || (_itemId > 6540)))
|
||||
{
|
||||
// You cannot do anything else while fishing
|
||||
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_DO_THAT_WHILE_FISHING3);
|
||||
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_DO_THAT_WHILE_FISHING_3);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -65,7 +65,7 @@ public class RequestChangeAttributeItem implements IClientIncomingPacket
|
||||
// attempting to destroy item
|
||||
if (activeChar.getInventory().destroyItemByItemId("ChangeAttribute", _consumeItemId, 1, activeChar, item) == null)
|
||||
{
|
||||
client.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT2);
|
||||
client.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
client.sendPacket(ExChangeAttributeFail.STATIC);
|
||||
Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " tried to change attribute without an attribute change crystal.", Config.DEFAULT_PUNISH);
|
||||
return;
|
||||
|
@@ -81,6 +81,6 @@ public final class RequestFriendList implements IClientIncomingPacket
|
||||
}
|
||||
|
||||
// =========================
|
||||
activeChar.sendPacket(SystemMessageId.EMPTY3);
|
||||
activeChar.sendPacket(SystemMessageId.EMPTY_3);
|
||||
}
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ public class ConfirmDlg extends AbstractMessagePacket<ConfirmDlg>
|
||||
|
||||
public ConfirmDlg(String text)
|
||||
{
|
||||
this(SystemMessageId.S13);
|
||||
this(SystemMessageId.S1_3);
|
||||
addString(text);
|
||||
}
|
||||
|
||||
|
@@ -37,7 +37,7 @@ public final class SystemMessage extends AbstractMessagePacket<SystemMessage>
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S13);
|
||||
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_3);
|
||||
sm.addString(text);
|
||||
return sm;
|
||||
}
|
||||
|
Reference in New Issue
Block a user