Jump to content

Recommended Posts

client side try smt like this:

root->uiinventory.py and search for "RefreshStatus" function and change it to:

	def RefreshStatus(self):
		money = player.GetElk()
		if money <= 1000000:
			self.wndMoney.SetFontColor(122, 231, 93)
		elif money >= 1000001 and money <= 10000000:
			self.wndMoney.SetFontColor(255, 215, 76)
		elif money >= 10000001 and money <= 100000000:
			self.wndMoney.SetFontColor(128, 192, 255)
		self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))

and you cand add more values/colors...

 

PS: i didn't tested, but is should work

  • Love 3
Link to comment
Share on other sites

client side try smt like this:

root->uiinventory.py and search for "RefreshStatus" function and change it to:

	def RefreshStatus(self):
		money = player.GetElk()
		if money <= 1000000:
			self.wndMoney.SetFontColor(122, 231, 93)
		elif money >= 1000001 and money <= 10000000:
			self.wndMoney.SetFontColor(255, 215, 76)
		elif money >= 10000001 and money <= 100000000:
			self.wndMoney.SetFontColor(128, 192, 255)
		self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))

and you cand add more values/colors...

 

PS: i didn't tested, but is should work

SetFontColor(128, 192, 255)

what the color this?? "128, 192,255) this color? what the code?

Link to comment
Share on other sites

  • Former Staff

client side try smt like this:

root->uiinventory.py and search for "RefreshStatus" function and change it to:

	def RefreshStatus(self):
		money = player.GetElk()
		if money <= 1000000:
			self.wndMoney.SetFontColor(122, 231, 93)
		elif money >= 1000001 and money <= 10000000:
			self.wndMoney.SetFontColor(255, 215, 76)
		elif money >= 10000001 and money <= 100000000:
			self.wndMoney.SetFontColor(128, 192, 255)
		self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))

and you cand add more values/colors...

 

PS: i didn't tested, but is should work

if money  > 100000000 the color will return to normal :P

 

make it like this

def RefreshStatus(self):

    money = player.GetElk()
    if money <= 1000000:
        self.wndMoney.SetFontColor(122, 231, 93)
    elif money >= 1000001 and money <= 10000000:
        self.wndMoney.SetFontColor(255, 215, 76)
    elif money >= 10000001:
        self.wndMoney.SetFontColor(128, 192, 255)
    self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))
  • Love 2
Link to comment
Share on other sites

  • 3 weeks later...

 

client side try smt like this:

root->uiinventory.py and search for "RefreshStatus" function and change it to:

	def RefreshStatus(self):
		money = player.GetElk()
		if money <= 1000000:
			self.wndMoney.SetFontColor(122, 231, 93)
		elif money >= 1000001 and money <= 10000000:
			self.wndMoney.SetFontColor(255, 215, 76)
		elif money >= 10000001 and money <= 100000000:
			self.wndMoney.SetFontColor(128, 192, 255)
		self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))

and you cand add more values/colors...

 

PS: i didn't tested, but is should work

if money  > 100000000 the color will return to normal :P

 

make it like this

def RefreshStatus(self):

    money = player.GetElk()
    if money <= 1000000:
        self.wndMoney.SetFontColor(122, 231, 93)
    elif money >= 1000001 and money <= 10000000:
        self.wndMoney.SetFontColor(255, 215, 76)
    elif money >= 10000001:
        self.wndMoney.SetFontColor(128, 192, 255)
    self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))

 

not work 

0222 19:48:05972 :: 
networkModule.py(line:200) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:28) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:14) <module>
system.py(line:130) __pack_import
 
networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiInventory.py, line 600)
 
0222 19:48:05972 :: ============================================================================================================
0222 19:48:05972 :: Abort!!!!
 
 
0222 19:48:05972 :: filename=exception.py, name=Abort
0222 19:48:05972 :: filename=networkModule.py, name=SetSelectCharacterPhase
0222 19:48:05972 :: filename=prototype.py, name=RunApp
0222 19:48:05972 :: filename=prototype.py, name=<module>
0222 19:48:05973 :: filename=system.py, name=Run
0222 19:48:05973 :: filename=system.py, name=execfile
0222 19:48:05973 :: filename=system.py, name=RunMainScript
0222 19:48:05973 :: filename=system.py, name=<module>
0222 19:48:05973 :: filename=<string>, name=<module>
Link to comment
Share on other sites

yw, those colors are in RGB you can enter here http://www.rapidtables.com/web/color/RGB_Color.htm, choose your color and copy values from RGB textboxes

this not work perfect i /set gold 1 and see 0 

 

 

bug when you lost yang color not change 

 

blue is 10kk-99kk

red is 100kk

now see you have 99kk and now you set 1kk now you have color red now set -1kk and you color not changed still is red 

Link to comment
Share on other sites

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.