antiblock
https://arwen2.global/
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
.4s

Nick No Chat Com Link Direto Para Um Pm

4 posts in this topic

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 player

Guardem 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.

Share this post


Link to post
Share on other sites
antiblock
diamwall

Print?

Share this post


Link to post
Share on other sites

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

Alguém poderia explicar melhor por favor?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now