Jump to content

"[Sell price]" yellow message above item price


Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

 

Here is a small check:

		s_Color = [0xffFFC700, 0xffFFC700]
		if (12010 <= itemVnum and itemVnum <= 12019):				# 12010 | 12011 | 12012 | 12013 | 12014 | 12015 | 12016 | 12017 | 12018 | 12019
			self.AppendTextLine("Description for item 12019 <= 12019!", s_Color[0])
		if (1 <= itemVnum and itemVnum <= 20009):				# 1 | 2 | 3 | 4 | 5 etc  etc...max 20009
			self.AppendTextLine("Description for all items!", s_Color[1])

And if u want to add extented line simple:

			if itemVnum in (50011, 50012, 50013):
				pItem_list = {
					50011 : ["[i]", "Item description 1!", "ServerName: %s" % "|cFF6af200" + localeInfo.APP_TITLE],
					50012 : ["[i]", "Item description 2!", "ServerName: %s" % "|cFF6af200" + localeInfo.APP_TITLE],	
					50013 : ["[i]", "Item description 3!", "ServerName: %s" % "|cFF6af200" + localeInfo.APP_TITLE]}							
					
				self.AppendSpace(5)	
				for i in xrange(len(pItem_list[itemVnum])):
					self.AppendTextLine(pItem_list[itemVnum][i], self.SPECIAL_POSITIVE_COLOR)	

 

Link to comment
Share on other sites

45 minutes ago, VegaS said:

 


		s_Color = [0xffFFC700, 0xffFFC700]
		if (12010 <= itemVnum and itemVnum <= 12019):				# 12010 | 12011 | 12012 | 12013 | 12014 | 12015 | 12016 | 12017 | 12018 | 12019
			self.AppendTextLine("Description for item 12019 <= 12019!", s_Color[0])
		if (1 <= itemVnum and itemVnum <= 20009):				# 1 | 2 | 3 | 4 | 5 etc  etc...max 20009
			self.AppendTextLine("Description for all items!", s_Color[1])

 

		if (12010 <= itemVnum and itemVnum <= 12019):				# 12010 | 12011 | 12012 | 12013 | 12014 | 12015 | 12016 | 12017 | 12018 | 12019

		if (1 <= itemVnum and itemVnum <= 20009):				# 1 | 2 | 3 | 4 | 5 etc  etc...max 20009

Hmm... 12010 <= it checks values less than 12010 too. The same with the other conditional.

Link to comment
Share on other sites

48 minutes ago, Shang said:

		if (12010 <= itemVnum and itemVnum <= 12019):				# 12010 | 12011 | 12012 | 12013 | 12014 | 12015 | 12016 | 12017 | 12018 | 12019

		if (1 <= itemVnum and itemVnum <= 20009):				# 1 | 2 | 3 | 4 | 5 etc  etc...max 20009

Hmm... 12010 <= it checks values less than 12010 too. The same with the other conditional.

it check values starting from 12010 to 12019 for fu.ck sake.

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.