Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Kolor yang według ilości.


dzekon

Rekomendowane odpowiedzi

Opublikowano

tak to wygląda u mnie, po włączeniu clienta mam pokazane "123456789" yang na kolor nieb. :f ktoś wie w czym problem?
 

def RefreshStatus(self):

money = player.GetElk()
if money <=  100000000:
self.wndMoney.SetFontColor(255, 0, 0)
elif money >=  100000001  and money <=  1000000000:
self.wndMoney.SetFontColor(255, 133, 10)
elif money >=  1000000001  and money <=  1500000000:
self.wndMoney.SetFontColor(255, 255, 0)
elif money >=  1500000001:
self.wndMoney.SetFontColor( 0, 255, 0)
self.wndMoney.SetText(locale.NumberToMoneyString(money))
Opublikowano

 

tak to wygląda u mnie, po włączeniu clienta mam pokazane "123456789" yang na kolor nieb. :f ktoś wie w czym problem?

 

def RefreshStatus(self):

money = player.GetElk()

if money <= 100000000:

self.wndMoney.SetFontColor(255, 0, 0)

elif money >= 100000001 and money <= 1000000000:

self.wndMoney.SetFontColor(255, 133, 10)

elif money >= 1000000001 and money <= 1500000000:

self.wndMoney.SetFontColor(255, 255, 0)

elif money >= 1500000001:

self.wndMoney.SetFontColor( 0, 255, 0)

self.wndMoney.SetText(locale.NumberToMoneyString(money))

Zmień w tym defie locale na localeInfo
Opublikowano
0405 13:06:08185 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\item\weapon\00190.gr2 

0405 13:06:08185 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\item\weapon\00190.gr2 

0405 13:06:09479 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error

0405 13:06:09479 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error

0405 13:06:09479 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage2.mse) Error

0405 13:06:09479 :: CInstanceBase::RegisterEffect(eEftType=265, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage2.mse, isCache=1) - Error

0405 13:06:09479 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage3.mse) Error

0405 13:06:09479 :: CInstanceBase::RegisterEffect(eEftType=266, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage3.mse, isCache=1) - Error

0405 13:06:10054 :: CGuildMarkImage: mark/120_0.tga width must be 512

0405 13:06:10054 :: CGuildMarkImage: mark/120_1.tga width must be 512

0405 13:06:16221 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.

0405 13:06:21994 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/enter_the_east.mp3

0405 13:06:21995 :: Failed to load race data : qentinios/rain/rain_by_qentinios.msm

 

0405 13:08:37673 :: skillGetAffect - Strange Formula [Krycie Się]

0405 13:08:38795 :: skillGetAffect - Strange Formula [Krycie Się]

0405 13:08:47082 :: skillGetAffect - Strange Formula [Krycie Się]

 

Opublikowano

Uiinventory.py w rootach edytujesz tak?

Musisz mieć coś takiego:

	def RefreshItemSlot(self):
		self.RefreshBagSlotWindow()
		self.RefreshEquipSlotWindow()

	def  RefreshStatus ( self ): 
		money = player . GetElk () 
		if money <=  100000000 : 
			self . wndMoney . SetFontColor ( 1.0 ,  0.2 ,  0.2 ) 
		elif money >=  100000001  and money <=  1000000000 : 
			self . wndMoney . SetFontColor ( 1.0 ,  0.6 ,  0.2 ) 
		elif money >=  1000000001  and money <=  1500000000 : 
			self . wndMoney . SetFontColor ( 1.0 ,  1.0 ,  0.2 ) 
		elif money >=  1500000001 : 
			self . wndMoney . SetFontColor ( 0.6 ,  1.0 ,  0.2 ) 
		self . wndMoney . SetText ( localeInfo . NumberToMoneyString ( money ))

	def SetItemToolTip(self, tooltipItem):
		self.tooltipItem = tooltipItem

	def SellItem(self):
		if self.sellingSlotitemIndex == player.GetItemIndex(self.sellingSlotNumber):
			if self.sellingSlotitemCount == player.GetItemCount(self.sellingSlotNumber):
				## żëČĄĽ®µµ Ćȸ®°Ô ÇĎ´Â ±â´É Ăß°ˇÇϸ鼭 ŔÎŔÚ type Ăß°ˇ
				net.SendShopSellPacketNew(self.sellingSlotNumber, self.questionDialog.count, player.INVENTORY)
				snd.PlaySound("sound/ui/money.wav")
		self.OnCloseQuestionDialog()
Opublikowano

A spróbuj 

	def  RefreshStatus ( self ): 
		money = player . GetElk () 
		if money <=  100000000 : 
			self . wndMoney . SetFontColor ( 1.0 ,  0.2 ,  0.2 ) 
		elif money >=  100000001  and money <=  1000000000 : 
			self . wndMoney . SetFontColor ( 1.0 ,  0.6 ,  0.2 ) 
		elif money >=  1000000001  and money <=  1500000000 : 
			self . wndMoney . SetFontColor ( 1.0 ,  1.0 ,  0.2 ) 
		elif money >=  1500000001 : 
			self . wndMoney . SetFontColor ( 0.6 ,  1.0 ,  0.2 ) 
		self . wndMoney . SetText ( locale . NumberToMoneyString ( money ))

Tamto zastąp tym.

  • 6 miesięcy temu...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...