Jump to content

Recommended Posts

Salutare.. am si eu o problema cu butonul [PM] care apare in chant, pana acum mergea si acum numai merge.

 

        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)
 

Asta e bucata de cod, am si in cosnstinfo pm_button = ''

Dupa cum spuneam , mergea inainte, deci a fost implementata corect, am inceput sa am problema asta de cand am implementat lucrurile astea 2:

 

CTRL+V in game: https://metin2dev.org/board/index.php?/topic/9742-can-somebody-know-how-to-ctrlc-and-ctrlv-in-game/

Link in game: 

This is the hidden content, please

Am compilat sursa game fara nici un fel de eroare, si syserr la client nu are nici el erori inauntru.

As aprecia ajutorul vostru :D

 

 

------------------------------------

Rezolvat, cand am bagat link am sters functia hyperlink.

    def MakeHyperlinkTooltip(self, hyperlink):
        tokens = hyperlink.split(":")
        if tokens and len(tokens):
            type = tokens[0]
            if "item" == type:
                self.hyperlinkItemTooltip.SetHyperlinkItem(tokens)
            elif "pm_button" == type and str(tokens[1]) != player.GetMainCharacterName():
                self.OpenWhisperDialog(str(tokens[1]))        

Puteti da tc.

 

  • Metin2 Dev 2
  • Love 1
Link to comment
https://metin2.dev/topic/19469-metin2-pm-chat-problem/
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.