Metin2 EP, Valorant VP dahil tüm oyun ürünlerini en uygun fiyatlarla bulabilir, Item ve Karakterlerinizi hızlıca satabilirsiniz. HEMEN TIKLA!
def OnUpdate(self):
if self.boardState == chat.BOARD_STATE_EDIT:
chat.Update(self.chatID)
elif self.boardState == chat.BOARD_STATE_VIEW:
if systemSetting.IsViewChat():
chat.Update(self.chatID)
if constInfo.AUTO_CHAT == 1:
if app.GetTime() > self.lastShoutTime and app.GetTime() > constInfo.wait_chat_auto:
if constInfo.chat_wait_because_teleport == 1:
return
if len(constInfo.LAST_CHAT_MESSAGE) > 2:
text = constInfo.LAST_CHAT_MESSAGE
constInfo.wait_chat_auto2 = app.GetTime() + 1
net.SendChatPacket(text, chat.CHAT_TYPE_SHOUT)
elif len(constInfo.LAST_CHAT_MESSAGE_TRADE) > 2:
text = constInfo.LAST_CHAT_MESSAGE_TRADE
constInfo.wait_chat_auto2 = app.GetTime() + 1
net.SendChatPacket(text, chat.CHAT_TYPE_SHOUT_TRADE)
self.lastShoutTime = app.GetTime() + 30
def __SendShoutChatPacket(self, text):
if 1 == len(text):
self.RunCloseEvent()
return
if app.GetTime() < self.lastShoutTime + 15:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_SHOUT_LIMIT)
self.__ResetChat()
return
chInfo = net.GetServerInfo()
myChannel = chInfo[-3:]
if net.GetEmpireID() == 1:
self.__SendChatPacket(""+constInfo.pm_button+'|cFF47DA00|Hpm_button:'+str(player.GetName())+'|h[PM]|h|r:'+" "+text[1:], chat.CHAT_TYPE_SHOUT)
elif net.GetEmpireID() == 2:
self.__SendChatPacket(""+constInfo.pm_button+'|cFF47DA00|Hpm_button:'+str(player.GetName())+'|h[PM]|h|r:'+" "+text[1:], chat.CHAT_TYPE_SHOUT)
elif net.GetEmpireID() == 3:
self.__SendChatPacket(""+constInfo.pm_button+'|cFF47DA00|Hpm_button:'+str(player.GetName())+'|h[PM]|h|r:'+" "+text[1:], chat.CHAT_TYPE_SHOUT)
self.__SendChatPacket(text[1:], chat.CHAT_TYPE_SHOUT)
self.__ResetChat()
self.lastShoutTime = app.GetTime()
# Orijinal Hatalı Satır (yanlış girinti):
net.SendChatPacket(constInfo.BagirmaPm+'|cff00ff00|HBagirmaPm:'+str(player.GetName())+'|h - [PM AT] |h|r'+" : "+text[1:], chat.CHAT_TYPE_SHOUT)
# Düzeltilmiş Girinti (çevresindeki kodla aynı hizada olmalı):
net.SendChatPacket(constInfo.BagirmaPm + '|cff00ff00|HBagirmaPm:' + str(player.GetName()) + '|h - [PM AT] |h|r' + " : " + text[1:], chat.CHAT_TYPE_SHOUT)
# Ekle
BagirmaPm = ""
# Arat
net.SendChatPacket(text, chat.CHAT_TYPE_SHOUT)
# Değiştir
net.SendChatPacket(constInfo.BagirmaPm+'|cff00ff00|HBagirmaPm:'+str(player.GetName())+'|h - [PM AT] |h|r'+" : "+text[1:], chat.CHAT_TYPE_SHOUT)
//Arat;
int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
//Değiştir;
if (CHAT_TYPE_SHOUT == pinfo->type)
{
len = snprintf(chatbuf, sizeof(chatbuf), "|cFF98FF33|h[Lv %d] |Hchattanpmyolla:%s|h%s|h|r : %s", ch->GetLevel(), ch->GetName(), ch->GetName(), buf);
}
else
{
len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
}
#Arat;
def MakeHyperlinkTooltip(self, hyperlink):
tokens = hyperlink.split(":")
if tokens and len(tokens):
type = tokens[0]
if "item" == type:
self.hyperlinkItemTooltip.SetHyperlinkItem(tokens)
#D#Değiştir def MakeHyperlinkTooltip(self, hyperlink):
tokens = hyperlink.split(":")
if tokens and len(tokens):
type = tokens[0]
if "item" == type:
self.hyperlinkItemTooltip.SetHyperlinkItem(tokens)
elif "chattanpmyolla" == type:
self.OpenWhisperDialog(str(tokens[1]))
Hocam benim fileste bu kodlama game.py de yok ama uichat.py de var.Şu adımları izle
constinfo.py:# Ekle BagirmaPm = ""
game.py:# Arat net.SendChatPacket(text, chat.CHAT_TYPE_SHOUT) # Değiştir net.SendChatPacket(constInfo.BagirmaPm+'|cff00ff00|HBagirmaPm:'+str(player.GetName())+'|h - [PM AT] |h|r'+" : "+text[1:], chat.CHAT_TYPE_SHOUT)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?