Jump to content
×
×
  • Create New...
  • 0

Sash absorption color change || Uitooltip


Shahin

Question

Hey devs, i have a great idea on highlighting something pretty relevant (for me at least), but i don't know how to make it myself.

  • How to make the sash bonus absorption rate in between 20% & 24% to be colored with #fffbe700 and with #fffb9200 for 25% ?

 

As an idea:

Normal sash bonus in between 1-19% color:

G6jzWIs.png

 

For 20% - 24%:

VCBjhVb.png

 

For 25%:

4ytIpau.png

 

Thank you!

Have a great day :D 

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

try this

 

add below this: CONDITION_COLOR = 0xffBEB47D

 

	SASH_1 = 0xFFFBE700
	SASH_2 = 0xFFFB9200

 

 

and replace this with your function 

				absChance = int(metinSlot[acce.ABSORPTION_SOCKET])
				if absChance >= 20 and absChance <= 24:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_1)
				elif absChance >= 25:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_2)
				else:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.CONDITION_COLOR)

 

  • Love 1
Link to comment
Share on other sites

  • 0
4 hours ago, mebe said:

try this

 

add below this: CONDITION_COLOR = 0xffBEB47D

 





	SASH_1 = 0xFFFBE700
	SASH_2 = 0xFFFB9200

 

 

and replace this with your function 





				absChance = int(metinSlot[acce.ABSORPTION_SOCKET])
				if absChance >= 20 and absChance <= 24:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_1)
				elif absChance >= 25:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.SASH_2)
				else:
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.CONDITION_COLOR)

 

This is so great!! Thank you, kind sir :D I appreciate it!

4e7TQTa.png

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Metin2 Dev Github
  • Activity

    1. 7

      Wear (use) item only on specific map

    2. 4

      Python tool for analyzing average yang drop per hour in each map.

    3. 162

      Plechito - Halloween 2022

    4. 0

      disable quest esc

    5. 7

      Wear (use) item only on specific map

    6. 7

      Wear (use) item only on specific map

    7. 7

      Wear (use) item only on specific map

    8. 4

      max level exp

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.