.4s 7 Posted January 17, 2013 Boas, Neste tópico vou ensinar, passo a passo, a meter um link direto no chat de uma mensagem de um player para um PM, ou seja, ao carregares no nome do player que aparece no chat, aparece um PM para essa pessoa. Vamos Começar. Descompactem o root.epk e root.eix, abram o uichat.py e procurem: def __SendChatPacket(self, text, type): if net.IsChatInsultIn(text): chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING) else: e por debaixo disto, metam: playerName = player.GetName() if '/' == text[0] and playerName[0] == '[': net.SendChatPacket(text) return if chat.CHAT_TYPE_SHOUT == type: text = "|Hmsg:" + playerName + "|h" + playerName + "|h|r : " + text else: text = playerName + " : " + text Depois, no ínicio do mesmo ficheiro (uichat.py) metam: import playerGuardem o ficheiro. Depois abram o ficheiro interfacemodule.py no root ainda e procurem: def MakeHyperlinkTooltip(self, hyperlink):Debaixo do def, metam: elif "msg" == type: self.OpenWhisperDialog(str(tokens[1])) Guardem os ficheiros e compactem os root. Agora, vão ao game das vossas serverfiles (atenção, o game tem de ser de versão game2089) e metam os seguintes diffs: This difference file has been created by IDA Pro & Terenzo. game_r2089M_32 ~ for chat format 000E7AF4: E8 B8 000E7AF5: 77 04 000E7AF6: A3 04 000E7AF7: F3 35 000E7AF8: FF 08 00308404: 4E 00 00308405: 75 00 00308406: 6C 00 00308407: 6C 00 00308447: 20 25 00308448: 3A 73 00308449: 20 00 0030844A: 25 00 0030844B: 73 00 This difference file has been created by IDA Pro & Terenzo. game_r2089M_32 ~ for glass intuition 000E29AC: E8 B8 000E29AD: 0F C8 000E29AE: 72 00 000E29AF: F6 00 000E29B0: FF 00 000E29DF: E8 B8 000E29E0: FC 00 000E29E1: 9C 00 000E29E2: F6 00 000E29E3: FF 00 Testem e Aproveitem :) Eu testei e comigo funcionou. Créditos: EPVP Tradução feita por mim. 1 mbcn10ww reacted to this Share this post Link to post Share on other sites
Aioria 0 Posted November 1, 2014 can anyone make a dif for vanilla-core of this? or explain me how can i do it? i love this systemP.s: sorry for necro but i prefer up this topic instead open another Share this post Link to post Share on other sites
DiogoPT 0 Posted January 25, 2016 Alguém poderia explicar melhor por favor? Share this post Link to post Share on other sites