Preview:
Open root > uichat.py and under:
Add:
Open root > uichat.py and under:
Python:
def __SendChatPacket(self, text, type):
CAN_W = FALSE
KLName = player.GetGuildName()
if KLName[:4] == "[KL]":
CAN_W = TRUE
Add:
Python:
if net.IsChatInsultIn(text):
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING)
elif text.find("@") == 0:
user,msg = text[1:].split(" ", 1)
if len(msg) > 0:
net.SendWhisperPacket(user, msg)
chat.AppendChat(chat.CHAT_TYPE_INFO, "A private message was sent to player %s." % user)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, "You can not send an empty message.")
else:
net.SendChatPacket(text, type)