Use of system messages for Homunculus packets.
Thanks to CostyKiller.
This commit is contained in:
		| @@ -17647,6 +17647,51 @@ public class SystemMessageId | ||||
| 	@ClientString(id = 13086, message = "The XP recovery fee has changed. Please try again.") | ||||
| 	public static SystemMessageId THE_XP_RECOVERY_FEE_HAS_CHANGED_PLEASE_TRY_AGAIN; | ||||
| 	 | ||||
| 	@ClientString(id = 13136, message = "The enchant value is decreased by 1.") | ||||
| 	public static SystemMessageId THE_ENCHANT_VALUE_IS_DECREASED_BY_1; | ||||
| 	 | ||||
| 	@ClientString(id = 13213, message = "A new homunculus is created.") | ||||
| 	public static SystemMessageId A_NEW_HOMUNCULUS_IS_CREATED; | ||||
| 	 | ||||
| 	@ClientString(id = 13230, message = "The homunculus takes your blood (HP).") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_TAKES_YOUR_BLOOD_HP; | ||||
| 	 | ||||
| 	@ClientString(id = 13231, message = "The homunculus takes your spirit (SP).") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_TAKES_YOUR_SPIRIT_SP; | ||||
| 	 | ||||
| 	@ClientString(id = 13232, message = "The homunculus takes your tears (VP).") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_TAKES_YOUR_TEARS_VP; | ||||
| 	 | ||||
| 	@ClientString(id = 13238, message = "You've obtained upgrade points.") | ||||
| 	public static SystemMessageId YOUVE_OBTAINED_UPGRADE_POINTS; | ||||
| 	 | ||||
| 	@ClientString(id = 13239, message = "The homunculus' level is increased!") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_LEVEL_IS_INCREASED; | ||||
| 	 | ||||
| 	@ClientString(id = 13243, message = "Not enough items for resetting.") | ||||
| 	public static SystemMessageId NOT_ENOUGH_ITEMS_FOR_RESETTING; | ||||
| 	 | ||||
| 	@ClientString(id = 13244, message = "The received upgrade points are reset.") | ||||
| 	public static SystemMessageId THE_RECEIVED_UPGRADE_POINTS_ARE_RESET; | ||||
| 	 | ||||
| 	@ClientString(id = 13246, message = "The relations are being established.") | ||||
| 	public static SystemMessageId THE_RELATIONS_ARE_BEING_ESTABLISHED; | ||||
| 	 | ||||
| 	@ClientString(id = 13247, message = "The relations are broken.") | ||||
| 	public static SystemMessageId THE_RELATIONS_ARE_BROKEN; | ||||
| 	 | ||||
| 	@ClientString(id = 13248, message = "Not enough upgrade points.") | ||||
| 	public static SystemMessageId NOT_ENOUGH_UPGRADE_POINTS; | ||||
| 	 | ||||
| 	@ClientString(id = 13252, message = "The homunculus is destroyed.") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_IS_DESTROYED; | ||||
| 	 | ||||
| 	@ClientString(id = 13254, message = "You've sealed a homunculus' heart. In order to create it, your blood, spirit and tears are required.") | ||||
| 	public static SystemMessageId YOUVE_SEALED_A_HOMUNCULUS_HEART_IN_ORDER_TO_CREATE_IT_YOUR_BLOOD_SPIRIT_AND_TEARS_ARE_REQUIRED; | ||||
| 	 | ||||
| 	@ClientString(id = 13272, message = "VP added.") | ||||
| 	public static SystemMessageId VP_ADDED; | ||||
| 	 | ||||
| 	@ClientString(id = 19000, message = "KR Live/Classic new numbers (13001-19000)") | ||||
| 	public static SystemMessageId KR_LIVE_CLASSIC_NEW_NUMBERS_13001_19000_2; | ||||
| 	 | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -41,12 +42,12 @@ public class ExActivateHomunculusResult implements IClientOutgoingPacket | ||||
| 		if (_activate) | ||||
| 		{ | ||||
| 			packet.writeC(1); // activate | ||||
| 			packet.writeD(13246); // The relations are being established. | ||||
| 			packet.writeD(SystemMessageId.THE_RELATIONS_ARE_BEING_ESTABLISHED.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeC(0); // activate | ||||
| 			packet.writeD(13247); // The relations are broken. | ||||
| 			packet.writeD(SystemMessageId.THE_RELATIONS_ARE_BROKEN.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -34,7 +35,7 @@ public class ExDeleteHomunculusDataResult implements IClientOutgoingPacket | ||||
| 	{ | ||||
| 		OutgoingPackets.EX_ACTIVATE_HOMUNCULUS_RESULT.writeId(packet); | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		packet.writeD(13252); // The homunculus is destroyed. | ||||
| 		packet.writeD(SystemMessageId.THE_HOMUNCULUS_IS_DESTROYED.getId()); | ||||
| 		return true; | ||||
| 	} | ||||
| } | ||||
| @@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -26,10 +27,8 @@ import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  */ | ||||
| public class ExHomunculusCreateStartResult implements IClientOutgoingPacket | ||||
| { | ||||
| 	 | ||||
| 	public ExHomunculusCreateStartResult(PlayerInstance player) | ||||
| 	{ | ||||
| 		 | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| @@ -37,7 +36,7 @@ public class ExHomunculusCreateStartResult implements IClientOutgoingPacket | ||||
| 	{ | ||||
| 		OutgoingPackets.EX_HOMUNCULUS_CREATE_START_RESULT.writeId(packet); | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		packet.writeD(13254); // You've sealed a homunculus' heart. In order to create it, your blood, spirit and tears are required. | ||||
| 		packet.writeD(SystemMessageId.YOUVE_SEALED_A_HOMUNCULUS_HEART_IN_ORDER_TO_CREATE_IT_YOUR_BLOOD_SPIRIT_AND_TEARS_ARE_REQUIRED.getId()); | ||||
| 		return true; | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -41,7 +42,7 @@ public class ExHomunculusEnchantEXPResult implements IClientOutgoingPacket | ||||
| 		if (!_success) | ||||
| 		{ | ||||
| 			packet.writeD(0); | ||||
| 			packet.writeD(13248); // Not enough upgrade points. | ||||
| 			packet.writeD(SystemMessageId.NOT_ENOUGH_UPGRADE_POINTS.getId()); | ||||
| 		} | ||||
| 		else if (!_newLevel) | ||||
| 		{ | ||||
| @@ -51,7 +52,7 @@ public class ExHomunculusEnchantEXPResult implements IClientOutgoingPacket | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(1); | ||||
| 			packet.writeD(13239); // The homunculus' level is increased! | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_LEVEL_IS_INCREASED.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -40,13 +41,13 @@ public class ExHomunculusGetEnchantPointResult implements IClientOutgoingPacket | ||||
| 		{ | ||||
| 			packet.writeD(1); // success | ||||
| 			packet.writeD(_enchantType); | ||||
| 			packet.writeD(13238); // You've obtained upgrade points. | ||||
| 			packet.writeD(SystemMessageId.YOUVE_OBTAINED_UPGRADE_POINTS.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(1); | ||||
| 			packet.writeD(_enchantType); | ||||
| 			packet.writeD(13272); // VP added. | ||||
| 			packet.writeD(SystemMessageId.VP_ADDED.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -42,13 +43,13 @@ public class ExHomunculusInitPointResult implements IClientOutgoingPacket | ||||
| 		{ | ||||
| 			packet.writeD(1); // success | ||||
| 			packet.writeD(_type); // init type | ||||
| 			packet.writeD(13244); // The received upgrade points are reset. | ||||
| 			packet.writeD(SystemMessageId.THE_RECEIVED_UPGRADE_POINTS_ARE_RESET.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(0); | ||||
| 			packet.writeD(_type); | ||||
| 			packet.writeD(13243); // Not enough items for resetting. | ||||
| 			packet.writeD(SystemMessageId.NOT_ENOUGH_ITEMS_FOR_RESETTING.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -40,15 +41,15 @@ public class ExHomunculusInsertResult implements IClientOutgoingPacket | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		if (_type == 0) | ||||
| 		{ | ||||
| 			packet.writeD(13230); // The homunculus takes your blood (HP). | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_TAKES_YOUR_BLOOD_HP.getId()); | ||||
| 		} | ||||
| 		else if (_type == 1) | ||||
| 		{ | ||||
| 			packet.writeD(13231); // The homunculus takes your spirit (SP). | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_TAKES_YOUR_SPIRIT_SP.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(13232); // The homunculus takes your tears (VP). | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_TAKES_YOUR_TEARS_VP.getId()); | ||||
| 		} | ||||
| 		 | ||||
| 		return true; | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| public class ExHomunculusSummonResult implements IClientOutgoingPacket | ||||
| @@ -32,7 +33,7 @@ public class ExHomunculusSummonResult implements IClientOutgoingPacket | ||||
| 		OutgoingPackets.EX_HOMUNCULUS_SUMMON_RESULT.writeId(packet); | ||||
| 		 | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		packet.writeD(13213); // A new homunculus is created | ||||
| 		packet.writeD(SystemMessageId.A_NEW_HOMUNCULUS_IS_CREATED.getId()); | ||||
| 		 | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -17647,6 +17647,51 @@ public class SystemMessageId | ||||
| 	@ClientString(id = 13086, message = "The XP recovery fee has changed. Please try again.") | ||||
| 	public static SystemMessageId THE_XP_RECOVERY_FEE_HAS_CHANGED_PLEASE_TRY_AGAIN; | ||||
| 	 | ||||
| 	@ClientString(id = 13136, message = "The enchant value is decreased by 1.") | ||||
| 	public static SystemMessageId THE_ENCHANT_VALUE_IS_DECREASED_BY_1; | ||||
| 	 | ||||
| 	@ClientString(id = 13213, message = "A new homunculus is created.") | ||||
| 	public static SystemMessageId A_NEW_HOMUNCULUS_IS_CREATED; | ||||
| 	 | ||||
| 	@ClientString(id = 13230, message = "The homunculus takes your blood (HP).") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_TAKES_YOUR_BLOOD_HP; | ||||
| 	 | ||||
| 	@ClientString(id = 13231, message = "The homunculus takes your spirit (SP).") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_TAKES_YOUR_SPIRIT_SP; | ||||
| 	 | ||||
| 	@ClientString(id = 13232, message = "The homunculus takes your tears (VP).") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_TAKES_YOUR_TEARS_VP; | ||||
| 	 | ||||
| 	@ClientString(id = 13238, message = "You've obtained upgrade points.") | ||||
| 	public static SystemMessageId YOUVE_OBTAINED_UPGRADE_POINTS; | ||||
| 	 | ||||
| 	@ClientString(id = 13239, message = "The homunculus' level is increased!") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_LEVEL_IS_INCREASED; | ||||
| 	 | ||||
| 	@ClientString(id = 13243, message = "Not enough items for resetting.") | ||||
| 	public static SystemMessageId NOT_ENOUGH_ITEMS_FOR_RESETTING; | ||||
| 	 | ||||
| 	@ClientString(id = 13244, message = "The received upgrade points are reset.") | ||||
| 	public static SystemMessageId THE_RECEIVED_UPGRADE_POINTS_ARE_RESET; | ||||
| 	 | ||||
| 	@ClientString(id = 13246, message = "The relations are being established.") | ||||
| 	public static SystemMessageId THE_RELATIONS_ARE_BEING_ESTABLISHED; | ||||
| 	 | ||||
| 	@ClientString(id = 13247, message = "The relations are broken.") | ||||
| 	public static SystemMessageId THE_RELATIONS_ARE_BROKEN; | ||||
| 	 | ||||
| 	@ClientString(id = 13248, message = "Not enough upgrade points.") | ||||
| 	public static SystemMessageId NOT_ENOUGH_UPGRADE_POINTS; | ||||
| 	 | ||||
| 	@ClientString(id = 13252, message = "The homunculus is destroyed.") | ||||
| 	public static SystemMessageId THE_HOMUNCULUS_IS_DESTROYED; | ||||
| 	 | ||||
| 	@ClientString(id = 13254, message = "You've sealed a homunculus' heart. In order to create it, your blood, spirit and tears are required.") | ||||
| 	public static SystemMessageId YOUVE_SEALED_A_HOMUNCULUS_HEART_IN_ORDER_TO_CREATE_IT_YOUR_BLOOD_SPIRIT_AND_TEARS_ARE_REQUIRED; | ||||
| 	 | ||||
| 	@ClientString(id = 13272, message = "VP added.") | ||||
| 	public static SystemMessageId VP_ADDED; | ||||
| 	 | ||||
| 	@ClientString(id = 19000, message = "KR Live/Classic new numbers (13001-19000)") | ||||
| 	public static SystemMessageId KR_LIVE_CLASSIC_NEW_NUMBERS_13001_19000_2; | ||||
| 	 | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -41,12 +42,12 @@ public class ExActivateHomunculusResult implements IClientOutgoingPacket | ||||
| 		if (_activate) | ||||
| 		{ | ||||
| 			packet.writeC(1); // activate | ||||
| 			packet.writeD(13246); // The relations are being established. | ||||
| 			packet.writeD(SystemMessageId.THE_RELATIONS_ARE_BEING_ESTABLISHED.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeC(0); // activate | ||||
| 			packet.writeD(13247); // The relations are broken. | ||||
| 			packet.writeD(SystemMessageId.THE_RELATIONS_ARE_BROKEN.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -34,7 +35,7 @@ public class ExDeleteHomunculusDataResult implements IClientOutgoingPacket | ||||
| 	{ | ||||
| 		OutgoingPackets.EX_ACTIVATE_HOMUNCULUS_RESULT.writeId(packet); | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		packet.writeD(13252); // The homunculus is destroyed. | ||||
| 		packet.writeD(SystemMessageId.THE_HOMUNCULUS_IS_DESTROYED.getId()); | ||||
| 		return true; | ||||
| 	} | ||||
| } | ||||
| @@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -35,7 +36,7 @@ public class ExHomunculusCreateStartResult implements IClientOutgoingPacket | ||||
| 	{ | ||||
| 		OutgoingPackets.EX_HOMUNCULUS_CREATE_START_RESULT.writeId(packet); | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		packet.writeD(13254); // You've sealed a homunculus' heart. In order to create it, your blood, spirit and tears are required. | ||||
| 		packet.writeD(SystemMessageId.YOUVE_SEALED_A_HOMUNCULUS_HEART_IN_ORDER_TO_CREATE_IT_YOUR_BLOOD_SPIRIT_AND_TEARS_ARE_REQUIRED.getId()); | ||||
| 		return true; | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -41,7 +42,7 @@ public class ExHomunculusEnchantEXPResult implements IClientOutgoingPacket | ||||
| 		if (!_success) | ||||
| 		{ | ||||
| 			packet.writeD(0); | ||||
| 			packet.writeD(13248); // Not enough upgrade points. | ||||
| 			packet.writeD(SystemMessageId.NOT_ENOUGH_UPGRADE_POINTS.getId()); | ||||
| 		} | ||||
| 		else if (!_newLevel) | ||||
| 		{ | ||||
| @@ -51,7 +52,7 @@ public class ExHomunculusEnchantEXPResult implements IClientOutgoingPacket | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(1); | ||||
| 			packet.writeD(13239); // The homunculus' level is increased! | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_LEVEL_IS_INCREASED.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -40,13 +41,13 @@ public class ExHomunculusGetEnchantPointResult implements IClientOutgoingPacket | ||||
| 		{ | ||||
| 			packet.writeD(1); // success | ||||
| 			packet.writeD(_enchantType); | ||||
| 			packet.writeD(13238); // You've obtained upgrade points. | ||||
| 			packet.writeD(SystemMessageId.YOUVE_OBTAINED_UPGRADE_POINTS.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(1); | ||||
| 			packet.writeD(_enchantType); | ||||
| 			packet.writeD(13272); // VP added. | ||||
| 			packet.writeD(SystemMessageId.VP_ADDED.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -42,13 +43,13 @@ public class ExHomunculusInitPointResult implements IClientOutgoingPacket | ||||
| 		{ | ||||
| 			packet.writeD(1); // success | ||||
| 			packet.writeD(_type); // init type | ||||
| 			packet.writeD(13244); // The received upgrade points are reset. | ||||
| 			packet.writeD(SystemMessageId.THE_RECEIVED_UPGRADE_POINTS_ARE_RESET.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(0); | ||||
| 			packet.writeD(_type); | ||||
| 			packet.writeD(13243); // Not enough items for resetting. | ||||
| 			packet.writeD(SystemMessageId.NOT_ENOUGH_ITEMS_FOR_RESETTING.getId()); | ||||
| 		} | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| /** | ||||
| @@ -40,15 +41,15 @@ public class ExHomunculusInsertResult implements IClientOutgoingPacket | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		if (_type == 0) | ||||
| 		{ | ||||
| 			packet.writeD(13230); // The homunculus takes your blood (HP). | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_TAKES_YOUR_BLOOD_HP.getId()); | ||||
| 		} | ||||
| 		else if (_type == 1) | ||||
| 		{ | ||||
| 			packet.writeD(13231); // The homunculus takes your spirit (SP). | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_TAKES_YOUR_SPIRIT_SP.getId()); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			packet.writeD(13232); // The homunculus takes your tears (VP). | ||||
| 			packet.writeD(SystemMessageId.THE_HOMUNCULUS_TAKES_YOUR_TEARS_VP.getId()); | ||||
| 		} | ||||
| 		 | ||||
| 		return true; | ||||
|   | ||||
| @@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets.homunculus; | ||||
|  | ||||
| import org.l2jmobius.commons.network.PacketWriter; | ||||
| import org.l2jmobius.gameserver.network.OutgoingPackets; | ||||
| import org.l2jmobius.gameserver.network.SystemMessageId; | ||||
| import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; | ||||
|  | ||||
| public class ExHomunculusSummonResult implements IClientOutgoingPacket | ||||
| @@ -32,7 +33,7 @@ public class ExHomunculusSummonResult implements IClientOutgoingPacket | ||||
| 		OutgoingPackets.EX_HOMUNCULUS_SUMMON_RESULT.writeId(packet); | ||||
| 		 | ||||
| 		packet.writeD(1); // 1 - success | ||||
| 		packet.writeD(13213); // A new homunculus is created | ||||
| 		packet.writeD(SystemMessageId.A_NEW_HOMUNCULUS_IS_CREATED.getId()); | ||||
| 		 | ||||
| 		return true; | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment