Jump to content

DS - Bonus Set


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
Share on other sites

  • 2 weeks later...
  • Bronze
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
Share on other sites

  • 4 months later...
  • Silver
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
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
Share on other sites

Announcements



×
×
  • 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.