Jump to content

Refresh gaya currency


Go to solution Solved by IGNEEL,

Recommended Posts

Hi metin2devs 

 

I added expanded money task-bar and it works fine ... the problem is that the gaya currency  it is always appear on it's slot as I have 999,999  but actually I have 0
here is an image for it 
https://metin2.download/picture/ytCIiy6H4YV1G74m8Tzy5Zj3Htu22pZb/.png 

I tried to add refresh def in uiinventory.py
like this 

 

		def RefreshStatus(self):
			money = player.GetElk()
			self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))
		
			if app.ENABLE_CHEQUE_SYSTEM:
				cheque = player.GetCheque()
				self.wndCheque.SetText(str(cheque))
		
			if app.ENABLE_GEM_SYSTEM:
				if self.wndGem:
					gem = player.GetGem()
					self.wndGem.SetText(localeInfo.NumberToMoneyString(gem))

------------------------------------------------------------------------------------
			self.wndGem.SetText(localeInfo.NumberToMoneyString(player.GetGem()))


but this doesn't solve the problem 

every help is appreciated  

 

EDIT :solved by adding refresh def in class expanded money taskbar in uitaskbar.py .

 another problem ... if I make gaya I must change character to update the amount of gaya 

here is an image without changing character 

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

 

when I change character

 

https://metin2.download/picture/520ZvxGDnmagtfVu9F751FGcHH01rr7o/.png

 

 



 

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

11 minutes ago, IGNEEL said:

try this

This is the hidden content, please

Thanks @IGNEEL

but I have this error 

 

1206 15:44:13612 :: Traceback (most recent call last):

1206 15:44:13612 ::   File "networkModule.py", line 239, in SetGamePhase

1206 15:44:13612 ::   File "game.py", line 98, in __init__

1206 15:44:13612 ::   File "interfaceModule.py", line 323, in MakeInterface

1206 15:44:13612 ::   File "interfaceModule.py", line 159, in __MakeTaskBar

1206 15:44:13612 ::   File "uiTaskBar.py", line 49, in __init__

1206 15:44:13612 ::   File "uiTaskBar.py", line 82, in LoadWindow

1206 15:44:13612 :: AttributeError
1206 15:44:13612 :: : 
1206 15:44:13612 :: 'module' object has no attribute 'YANG_NEW'
1206 15:44:13612 :: 


also I don't use new character create or select 
I use the old one 
 

Link to comment
Share on other sites

  • Solution
59 minutes ago, xLoGaN said:

Thanks @IGNEEL

but I have this error 

 

1206 15:44:13612 :: Traceback (most recent call last):

1206 15:44:13612 ::   File "networkModule.py", line 239, in SetGamePhase

1206 15:44:13612 ::   File "game.py", line 98, in __init__

1206 15:44:13612 ::   File "interfaceModule.py", line 323, in MakeInterface

1206 15:44:13612 ::   File "interfaceModule.py", line 159, in __MakeTaskBar

1206 15:44:13612 ::   File "uiTaskBar.py", line 49, in __init__

1206 15:44:13612 ::   File "uiTaskBar.py", line 82, in LoadWindow

1206 15:44:13612 :: AttributeError
1206 15:44:13612 :: : 
1206 15:44:13612 :: 'module' object has no attribute 'YANG_NEW'
1206 15:44:13612 :: 


also I don't use new character create or select 
I use the old one 
 

open locale_interface.txt

YANG_NEW	Yang
GAYA_NEW	Gaya
WON_NEW	Won

 

Link to comment
Share on other sites

4 minutes ago, IGNEEL said:

open locale_interface.txt


YANG_NEW	Yang
GAYA_NEW	Gaya
WON_NEW	Won

 

1206 16:50:13136 :: Traceback (most recent call last):

1206 16:50:13136 ::   File "networkModule.py", line 239, in SetGamePhase

1206 16:50:13136 ::   File "game.py", line 98, in __init__

1206 16:50:13136 ::   File "interfaceModule.py", line 323, in MakeInterface

1206 16:50:13136 ::   File "interfaceModule.py", line 162, in __MakeTaskBar

1206 16:50:13136 ::   File "uiInventory.py", line 546, in SetExpandedMoneyBar

1206 16:50:13136 :: AttributeError
1206 16:50:13136 :: : 
1206 16:50:13136 :: 'ExpandedMoneyTaskBar' object has no attribute 'GetMoneySlot'
1206 16:50:13136 :: 


 

	if constInfo.ENABLE_EXPANDED_MONEY_TASKBAR:
		def SetExpandedMoneyBar(self, wndBar):
			self.wndExpandedMoneyBar = wndBar
			if self.wndExpandedMoneyBar:
				self.wndMoneySlot = self.wndExpandedMoneyBar.GetMoneySlot()
				self.wndMoney = self.wndExpandedMoneyBar.GetMoney()
				if app.ENABLE_CHEQUE_SYSTEM:
					## 양 관련
					self.wndMoneyIcon = self.wndExpandedMoneyBar.GetMoneyIcon()
					if self.wndMoneyIcon:
						self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 0)
						self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 0)
					if self.wndMoneySlot:
						self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 0)
					## 2차화폐 관련
					self.wndChequeIcon = self.wndExpandedMoneyBar.GetChequeIcon()
					if self.wndChequeIcon:
						self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 1)
						self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 1)
					self.wndChequeSlot = self.wndExpandedMoneyBar.GetChequeSlot() 
					if self.wndChequeSlot:
						self.wndChequeSlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 1)
					self.wndCheque = self.wndExpandedMoneyBar.GetCheque()
					## 보석 관련
					self.wndGemIcon = self.wndExpandedMoneyBar.GetGemIcon()
					if self.wndGemIcon:
						self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 2)
						self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 2)
					self.wndGem = self.wndExpandedMoneyBar.GetGem()
					self.toolTip = uiToolTip.ToolTip()
					self.toolTip.ClearToolTip()
				else:
					if self.wndMoneySlot:
						self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog))


@IGNEEL

Link to comment
Share on other sites

9 minutes ago, xLoGaN said:

1206 16:50:13136 :: Traceback (most recent call last):

1206 16:50:13136 ::   File "networkModule.py", line 239, in SetGamePhase

1206 16:50:13136 ::   File "game.py", line 98, in __init__

1206 16:50:13136 ::   File "interfaceModule.py", line 323, in MakeInterface

1206 16:50:13136 ::   File "interfaceModule.py", line 162, in __MakeTaskBar

1206 16:50:13136 ::   File "uiInventory.py", line 546, in SetExpandedMoneyBar

1206 16:50:13136 :: AttributeError
1206 16:50:13136 :: : 
1206 16:50:13136 :: 'ExpandedMoneyTaskBar' object has no attribute 'GetMoneySlot'
1206 16:50:13136 :: 


 


	if constInfo.ENABLE_EXPANDED_MONEY_TASKBAR:
		def SetExpandedMoneyBar(self, wndBar):
			self.wndExpandedMoneyBar = wndBar
			if self.wndExpandedMoneyBar:
				self.wndMoneySlot = self.wndExpandedMoneyBar.GetMoneySlot()
				self.wndMoney = self.wndExpandedMoneyBar.GetMoney()
				if app.ENABLE_CHEQUE_SYSTEM:
					## 양 관련
					self.wndMoneyIcon = self.wndExpandedMoneyBar.GetMoneyIcon()
					if self.wndMoneyIcon:
						self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 0)
						self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 0)
					if self.wndMoneySlot:
						self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 0)
					## 2차화폐 관련
					self.wndChequeIcon = self.wndExpandedMoneyBar.GetChequeIcon()
					if self.wndChequeIcon:
						self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 1)
						self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 1)
					self.wndChequeSlot = self.wndExpandedMoneyBar.GetChequeSlot() 
					if self.wndChequeSlot:
						self.wndChequeSlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 1)
					self.wndCheque = self.wndExpandedMoneyBar.GetCheque()
					## 보석 관련
					self.wndGemIcon = self.wndExpandedMoneyBar.GetGemIcon()
					if self.wndGemIcon:
						self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 2)
						self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 2)
					self.wndGem = self.wndExpandedMoneyBar.GetGem()
					self.toolTip = uiToolTip.ToolTip()
					self.toolTip.ClearToolTip()
				else:
					if self.wndMoneySlot:
						self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog))


@IGNEEL

send uiInventory.py

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.