Jump to content

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)	

 

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.

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.

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.