cBaraN 109 Posted September 4, 2019 Share Posted September 4, 2019 (edited) game.py search def OnPickMoney(self, money): add oldGold = player.GetElk() - money self.interface.SetLastGold(oldGold) interfaceModule.py search def IsEditLineFocus(self): ... add def SetLastGold(self, amount): self.wndInventory.lastGold = amount uiInventory.py search tooltipItem = None add lastGold = None search self.tooltipItem = None add self.lastGold = None search def RefreshStatus(self): replace money parts (final https://metin2.download/picture/f0KwyTmdUGCaG1rqFgim3U5evZW8jE49/.png) iLastGold = self.GetLastGold() iGoldNow = player.GetElk() gIncrease = 1 if (not (iGoldNow - iLastGold) / 10000 > 0) else 10000 for goldLoop in range(iLastGold, iGoldNow + 1, gIncrease): goldLoop = goldLoop iGoldNow = iGoldNow self.wndMoney.SetText(localeInfo.NumberToMoneyString(goldLoop)) if (goldLoop == iGoldNow): break self.wndMoney.SetText(localeInfo.NumberToMoneyString(iGoldNow)) https://youtu.be/wpYPE6blQeY Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 6 1 2 1 5 Link to comment Share on other sites More sharing options...
avertuss 48 Posted September 14, 2019 Share Posted September 14, 2019 0914 10:41:19445 :: AttributeError 0914 10:41:19445 :: : 0914 10:41:19445 :: 'InventoryWindow' object has no attribute 'GetLastGold' 0914 10:41:19445 :: Idk why because i added all like in tutorial Link to comment Share on other sites More sharing options...
boloca 4 Posted December 8, 2019 Share Posted December 8, 2019 1208 18:02:19909 :: Traceback (most recent call last): 1208 18:02:19909 :: File "networkModule.py", line 239, in SetGamePhase 1208 18:02:19909 :: File "game.py", line 112, in __init__ 1208 18:02:19909 :: File "interfaceModule.py", line 343, in MakeInterface 1208 18:02:19909 :: File "interfaceModule.py", line 203, in __MakeWindows 1208 18:02:19909 :: File "uiInventory.py", line 418, in __init__ 1208 18:02:19909 :: File "uiInventory.py", line 678, in __LoadWindow 1208 18:02:19909 :: File "uiInventory.py", line 871, in RefreshStatus 1208 18:02:19910 :: AttributeError 1208 18:02:19910 :: : 1208 18:02:19910 :: 'InventoryWindow' object has no attribute 'GetLastGold' 1208 18:02:19910 :: Help!! Link to comment Share on other sites More sharing options...
Recommended Posts