Register for your free account! | Forgot your password?

You last visited: Today at 14:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Frisuren fehler.

Discussion on Frisuren fehler. within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 64
Received Thanks: 23
Frisuren fehler.

Hi community,
By adding korea hairstyles I got a trouble viewing the icon that uses the .sub file:



As you can see my problem is this, it doesn't show the icon like the old ones:



I already tried to change the icon used on the .sub file and use an old one (I used 75001.dds instead of 74013.dds), but the problem is the same, it doesn't view the big icon showing up,in this case, the warrior (74013.dds and 75001.dds).
Any solutions?

EDIT: I solved by modifying uitooltip.py file, changing:

Code:
	## Çì¾îÀΰ¡?
	def __IsHair(self, itemVnum):
		return (self.__IsOldHair(itemVnum) or 
			self.__IsNewHair(itemVnum) or
			self.__IsNewHair2(itemVnum))	

	def __IsOldHair(self, itemVnum):
		return itemVnum > 73000 and itemVnum < 74000	

	def __IsNewHair(self, itemVnum):
		return itemVnum > 74000 and itemVnum < 75000	

	def __IsNewHair2(self, itemVnum):
		return itemVnum > 75000 and itemVnum < 77000	

	def __AppendHairIcon(self, itemVnum):
		itemImage = ui.ImageBox()
		itemImage.SetParent(self)
		itemImage.Show()			

		if self.__IsOldHair(itemVnum):
			itemImage.LoadImage("d:/ymir work/item/quest/"+str(itemVnum)+".tga")
		elif self.__IsNewHair(itemVnum): # ±âÁ¸ Çì¾î ¹øÈ£¸¦ ¿¬°á½ÃÄѼ* »ç¿ëÇÑ´Ù. »õ·Î¿î ¾ÆÀÌÅÛÀº 1000¸¸Å* ¹øÈ£°¡ ´Ã¾ú´Ù.
			itemImage.LoadImage("d:/ymir work/item/quest/"+str(itemVnum-1000)+".tga")
		elif self.__IsNewHair2(itemVnum): # ±âÁ¸ Çì¾î ¹øÈ£¸¦ ¿¬°á½ÃÄѼ* »ç¿ëÇÑ´Ù. »õ·Î¿î ¾ÆÀÌÅÛÀº 1000¸¸Å* ¹øÈ£°¡ ´Ã¾ú´Ù.
			itemImage.LoadImage("icon/hair/%d.sub" % (itemVnum))


		itemImage.SetPosition(itemImage.GetWidth()/2, self.toolTipHeight)
		self.toolTipHeight += itemImage.GetHeight()
		#self.toolTipWidth += itemImage.GetWidth()/2
		self.childrenList.append(itemImage)
		self.ResizeToolTip()
with:

Code:
	## Çì¾îÀΰ¡?
	def __IsHair(self, itemVnum):
		return (self.__IsOldHair(itemVnum) or 
			self.__IsNewHair(itemVnum) or
			self.__IsNewHair2(itemVnum) or
			self.__IsNewHair3(itemVnum))

	def __IsOldHair(self, itemVnum):
		return itemVnum > 73000 and itemVnum < 74000	

	def __IsNewHair(self, itemVnum):
		return itemVnum > 74000 and itemVnum < 75000	

	def __IsNewHair2(self, itemVnum):
		return itemVnum > 75000 and itemVnum < 77000	

	def __IsNewHair3(self, itemVnum):
		return ((74012 < itemVnum and itemVnum < 74017) or
			(74262 < itemVnum and itemVnum < 74267) or
			(74512 < itemVnum and itemVnum < 74517) or
			(74762 < itemVnum and itemVnum < 74767))

	def __AppendHairIcon(self, itemVnum):
		itemImage = ui.ImageBox()
		itemImage.SetParent(self)
		itemImage.Show()			

		if self.__IsOldHair(itemVnum):
			itemImage.LoadImage("d:/ymir work/item/quest/"+str(itemVnum)+".tga")
		elif self.__IsNewHair3(itemVnum):
			itemImage.LoadImage("icon/hair/%d.sub" % (itemVnum))
		elif self.__IsNewHair(itemVnum): # ±âÁ¸ Çì¾î ¹øÈ£¸¦ ¿¬°á½ÃÄѼ* »ç¿ëÇÑ´Ù. »õ·Î¿î ¾ÆÀÌÅÛÀº 1000¸¸Å* ¹øÈ£°¡ ´Ã¾ú´Ù.
			itemImage.LoadImage("d:/ymir work/item/quest/"+str(itemVnum-1000)+".tga")
		elif self.__IsNewHair2(itemVnum):
			itemImage.LoadImage("icon/hair/%d.sub" % (itemVnum))

		itemImage.SetPosition(itemImage.GetWidth()/2, self.toolTipHeight)
		self.toolTipHeight += itemImage.GetHeight()
		#self.toolTipWidth += itemImage.GetWidth()/2
		self.childrenList.append(itemImage)
		self.ResizeToolTip()
Ps: I changed another thing, but I don't know if this solved my problem or it was solved by typing what I wrote before:
Code:
					if xPos!=0 and yPos!=0:
						(mapName, xBase, yBase)=background.GlobalPositionToMapInfo(xPos, yPos)
in:
Code:
					if xPos != 0 and yPos != 0:
						(mapName, xBase, yBase) = background.GlobalPositionToMapInfo(xPos, yPos)
And that would be the result:


PPS: And thanks for the replies... LOL.
agadan is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
FRISUREN
07/12/2011 - Metin2 Private Server - 0 Replies
Sers hätte gerne die Codes für die Frisuren PS: kommt jetzt nicht mit dem Link wo "alle" commands und nums drinn sind... ich suche NICHT die Frisuren des Schutzes sondern die normalen ohne Boni drauf ... danke falls einer nen link oder die codes hat =)
Frisuren
07/06/2011 - Metin2 Private Server - 7 Replies
Hi Leute wollte fragen wie man mit Frisuren handeln kann??? ich kann sie irgendwie nicht in den laden reintun könnt ihr mir vllt helfen?:mofo: PS:könnt ihr bitte noch die /ski codes reinposten danke:D
Frisuren Bug
09/04/2010 - Metin2 Private Server - 3 Replies
Ja hab das so ein Problem mit den Computerkrank Files v2. Weisst nicht ob das von Anfang an so war, jedenfalls ist mir das erst gestern aufgefallen. Es gibt ja diese Lehrer mit den Frisuren. Wenn ich da Frisuren kaufe und sie benutze passiert nichts. Also mein Char hatte vorher schon eine, wenn ich dann eine neue kaufe und sie anziehe wackelt der Char kurz, als ob er eine neue anzieht, aber sie ändert sich nicht... Wenn ich nen Char nehme der die Standartfrisur hat, und eine anziehe dann...
Frisuren
01/25/2010 - Metin2 Private Server - 10 Replies
hab die frisuren mal ein wenig geordnet, da ich nach etlichen suchen nix vernünftiges gefunden hab dachte ich mir ich stell euch die liste au ma zur verfügung... Frisuren: Krieger (m): 74001;Modische Frisur (rot);Eine Frisur, die dir ein unverwechselbares Äußeres verleiht (+10% Verteidigung gegen Krieger) 74002;Modische Frisur (hell);Eine Frisur, die dir ein markantes Äußeres verleiht (+10% Verteidigung gegen Ninja) 74003;Modische Frisur (blau);Eine Frisur, die dir ein markantes Äußeres...
Frisuren!!!
11/28/2008 - Metin2 Private Server - 2 Replies
wo bekomtm man frisuren her???



All times are GMT +1. The time now is 14:31.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.