Jump to content

Recommended Posts

  • Active+ Member

Hey guys,

can someone help me with this?

I need to get a system default red (notification) color for the text: net.SendWhisperPacket(name, localeInfo.BLA_BLA) or if exist another function for it I will be glad too :)

Thanks

I'll be always helpful!  😉

Link to comment
https://metin2.dev/topic/17878-small-py-problem/
Share on other sites

  • 2 weeks later...
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active+ Member
1 hour ago, Nevisor said:

Add in localeInfo.py 


def SetHexColor(text, hex="f44242"): #red color by default if there is not 2nd argument (color)
	return ("|cff%s%s|r" % (hex, text))	

then call it:


localeInfo.SetHexColor(localeInfo.BLA_BLA)

 

Thanks but I need to recieve message returned by python. Now I have it like: 

net.SendWhisperPacket(name, localeInfo.CANNOT_WHISPER_BLOCK)  - color of font is white

and I need to change it to lightred color (it's color when you receive some error from system)

I'll be always helpful!  😉

Link to comment
https://metin2.dev/topic/17878-small-py-problem/#findComment-97971
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.