Link in Chat Metin2 - Python 2.7

  • Autor subiect NetWolf
  • Dată creare
  • Răspunsuri: Răspunsuri 2
  • Vizualizări: Vizualizări 2K

NetWolf

Active member
11 Noi 2018
53
173
33
31
Romania
Monede Dragon
0
[url=https://imgbb.com/] [/URL]

1. Decrypt root.eix/epk
2. Open uichat.py
3. Search

Cod:
def __SendChatPacket(self, text, type)

4. It should look like

Cod:
 else:
            net.SendChatPacket(text, type

5. Replace with

Cod:
else:
            farbe = "FF1CC2" # lila in Hex
            liste = text.split(" ")
            text2 = ""
            for index in range(len(liste)):
                if "www." in liste[index]:
                    tmp = liste[index]
                    liste[index] = "|cff"+farbe+"|Hweblink:"+ tmp +"|h" + tmp + "|h|r"
                text2 += " "+liste[index]
            net.SendChatPacket(text2[1:], type)

6. Close uichat.py
7. Open interfacemodule.py and search

Cod:
def MakeHyperlinkTooltip(self, hyperlink):

8. It should look like

Cod:
if "item" == type:
                self.hyperlinkItemTooltip.SetHyperlinkItem(tokens)

9. Add below

Cod:
elif "weblink" == type:
                import webbrowser
                webbrowser.open(str(tokens[1]))

10. Encrypt root
11. Add attached lib in your lib

Infomanii - Din pasiune pentru jocuri !

If you like this release, please give me like. Enjoy!
 
  • Like
Reacții: Kimoxabi