Jump to content

Recommended Posts

16 hours ago, Cappuccino said:

I can say that probably the bug is in uitooltip.py

I was tweaking the code from UiToolTip.py and noticed the problem might come from this line:

if window_type == player.INVENTORY and self.interface and self.interface.wndDragonSoul:

It might be that the trade window is considered an inventory window, that's why it shows the DS Bonus...

Also tried to change to player.EQUIPMENT, since I have the Extended Inventory_system implemented, but that way I can't even see the DS Set Bonus anywhere.

Is there any other variable I can change to, that only affects the DS Slots?
 

Link to comment
https://metin2.dev/topic/25648-ds-bonus-set/page/2/#findComment-137669
Share on other sites

  • 2 weeks later...
On 3/24/2021 at 2:08 AM, WizKid said:

Hi, does anyone know how to fix this? (Sorry for the bad image quality)
If I trade DS while my set is on, it shows the bonus of the stones inside the trade window.

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

Thanks ?

 

 

 

On 3/24/2021 at 9:52 PM, Cappuccino said:

I can say that probably the bug is in uitooltip.py

In fact, in uiToolTip.py, window_type should be right when append __AppendDragonSoulAttributeInformation. Most people use the old uidragonsoul.py class and is most common that you will have this kind of problems.

 

Example (also make sure in uiDragonSoul.py on OverInEquipItem func must be self.ShowToolTip(player.EQUIPMENT, overSlotPos))

Spoiler

if window_type == player.EQUIPMENT and self.interface and self.interface.wndDragonSoul:
    self.__AppendDragonSoulAttributeInformation(attrSlot, itemVnum/10000, self.interface.wndDragonSoul.GetDSSetGrade())
else:
    self.__AppendDragonSoulAttributeInformation(attrSlot)

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/25648-ds-bonus-set/page/2/#findComment-138011
Share on other sites

  • 4 months later...
2 hours ago, centarus said:
		if app.ENABLE_DS_SET:
			self.tooltipItem.BindInterface(self)

add this before:

 

		self.tooltipItem = uiToolTip.ItemToolTip()

interfacemodule.py

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/25648-ds-bonus-set/page/2/#findComment-142625
Share on other sites

39 minutes ago, SamuraiHUN said:
		if app.ENABLE_DS_SET:
			self.tooltipItem.BindInterface(self)

add this before:

 

		self.tooltipItem = uiToolTip.ItemToolTip()

interfacemodule.py

thx but it already is

Edited by centarus
Link to comment
https://metin2.dev/topic/25648-ds-bonus-set/page/2/#findComment-142628
Share on other sites

This is the hidden content, please



0.0.1 modification: Fixed the path to the uiaffectshower.py + add image ymir work/ui/dragonsoul folder.

Edited by SamuraiHUN
  • Metin2 Dev 44
  • Dislove 1
  • Good 5
  • Love 3
Link to comment
https://metin2.dev/topic/25648-ds-bonus-set/page/2/#findComment-142629
Share on other sites

  • 1 year later...

Can anyone help me? After following the whole tutorial I get this error in the client and its closing.
I also tried debugging but I get no information

https://metin2.download/picture/fgR10X846RjJl6imsKSFwc3XY53ENLFk/.png

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/25648-ds-bonus-set/page/2/#findComment-156076
Share on other sites

  • 2 years later...

if you only want bonuses to be displayed on equipped gems and not elsewhere...

 

### uitooltip.py ###

#find

		elif item.ITEM_TYPE_DS == itemType:
			self.AppendTextLine(self.__DragonSoulInfoString(itemVnum))

			if app.ENABLE_DS_SET:
				if window_type == player.EQUIPMENT and self.interface and self.interface.wndDragonSoul:
					self.__AppendDragonSoulAttributeInformation(attrSlot, itemVnum / 10000, self.interface.wndDragonSoul.GetDSSetGrade())
				else:
					self.__AppendAttributeInformation(attrSlot)
			else:
				self.__AppendAttributeInformation(attrSlot)

		else:
			self.__AppendLimitInformation()

### replace them all with this

		elif item.ITEM_TYPE_DS == itemType:
			self.AppendTextLine(self.__DragonSoulInfoString(itemVnum))

			if app.ENABLE_DS_SET:
				showSetBonus = False
				if self.interface and self.interface.wndDragonSoul:
					if slotIndex != -1 and window_type is not None:
						try:
							if player.IsDSEquipmentSlot(window_type, slotIndex):
								showSetBonus = True
						except:
							showSetBonus = False

				if showSetBonus:
					self.__AppendDragonSoulAttributeInformation(
						attrSlot, itemVnum / 10000, self.interface.wndDragonSoul.GetDSSetGrade()
					)
				else:
					self.__AppendDragonSoulAttributeInformation(attrSlot)
			else:
				self.__AppendAttributeInformation(attrSlot)

 

Link to comment
https://metin2.dev/topic/25648-ds-bonus-set/page/2/#findComment-172652
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.