Set sender name for CreatureSay method using NpcStringId.
This commit is contained in:
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -50,6 +50,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -50,6 +50,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -92,6 +92,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
@@ -94,6 +94,10 @@ public class CreatureSay implements IClientOutgoingPacket
|
|||||||
_sender = sender;
|
_sender = sender;
|
||||||
_chatType = chatType;
|
_chatType = chatType;
|
||||||
_messageId = npcStringId.getId();
|
_messageId = npcStringId.getId();
|
||||||
|
if (sender != null)
|
||||||
|
{
|
||||||
|
_senderName = sender.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
public CreatureSay(ChatType chatType, int charId, SystemMessageId systemMessageId)
|
||||||
|
Reference in New Issue
Block a user