Jump to content

Bonus page auto-update on item change


Go to solution Solved by MORTE,

Recommended Posts

Basically I want my bonus page's bonuses to update when I wield or unwield an item without having to close and open again the bonus page.

How can I do that? 

 

Im using this version of bonus page

1216_221151_zps10cb2f21.jpg

Thanks!

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
Link to comment
https://metin2.dev/topic/16065-bonus-page-auto-update-on-item-change/
Share on other sites

  • Solution

in root/uibonuspage.py

 

def OnUpdate(self):
		import item
		if int(app.GetTime()) > int(self.ProcessTimeStamp) + 6:
			self.SetBoni(self.dict)
			self.ProcessTimeStamp = app.GetTime()

to

def OnUpdate(self):
		import item
		if int(app.GetTime()) > int(self.ProcessTimeStamp) + 0.01:
			self.SetBoni(self.dict)
			self.ProcessTimeStamp = app.GetTime()

 

  • Metin2 Dev 1
20 minutes ago, MORTE said:

in root/uibonuspage.py

 


def OnUpdate(self):
		import item
		if int(app.GetTime()) > int(self.ProcessTimeStamp) + 6:
			self.SetBoni(self.dict)
			self.ProcessTimeStamp = app.GetTime()

to


def OnUpdate(self):
		import item
		if int(app.GetTime()) > int(self.ProcessTimeStamp) + 0.01:
			self.SetBoni(self.dict)
			self.ProcessTimeStamp = app.GetTime()

 

Thank you very much!1

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.