Register for your free account! | Forgot your password?

You last visited: Today at 16:49

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

Advertisement



Rel [TW]Horse GUI - Owner code

Discussion on Rel [TW]Horse GUI - Owner code within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
STREL's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 44
Received Thanks: 100
Talking Rel [TW]Horse GUI - Owner code

Hi, well as I am tired of the incompetence and f*** people come to share my horse interface code, I have created myself to as it was my old team, TW and now I share with you for letting me in things that life and be a good person, probably later share the total interface free distribution (I was a clone who LOM interface)

This is a horse gui:

the class in uiaffectShower.* (root..):
Code:
class HorseImage(ui.ExpandedImageBox):

			FILE_PATH = "d:/ymir work/ui/pattern/HorseState/"
			PORCIENTO_BARRA = {
				00 : 0,
				01 : 0,
				02 : 0,
				03 : 0,
				10 : 10,
				11 : 15,
				12 : 20,
				13 : 30,
				20 : 35,
				21 : 40,
				22 : 45,
				23 : 50,
				30 : 55,
				31 : 60,
				32 : 70,
				33 : 100,
			}	
			BARRA_BARRA = {
				00 : "negrogauge",
				01 : "negrogauge",
				02 : "negrogauge",
				03 : "negrogauge",
				10 : "rojogauge",
				11 : "rojogauge",
				12 : "rojogauge",
				13 : "rojogauge",
				20 : "amarillogauge",
				21 : "amarillogauge",
				22 : "amarillogauge",
				23 : "amarillogauge",
				30 : "greengauge",
				31 : "greengauge",
				32 : "greengauge",
				33 : "greengauge",
			}
			FILE_DICT = {
				00 : FILE_PATH+"00.dds",
				01 : FILE_PATH+"00.dds",
				02 : FILE_PATH+"00.dds",
				03 : FILE_PATH+"00.dds",
				10 : FILE_PATH+"10.dds",
				11 : FILE_PATH+"11.dds",
				12 : FILE_PATH+"12.dds",
				13 : FILE_PATH+"13.dds",
				20 : FILE_PATH+"20.dds",
				21 : FILE_PATH+"21.dds",
				22 : FILE_PATH+"22.dds",
				23 : FILE_PATH+"23.dds",
				30 : FILE_PATH+"30.dds",
				31 : FILE_PATH+"31.dds",
				32 : FILE_PATH+"32.dds",
				33 : FILE_PATH+"33.dds",
			}

			def __init__(self):
				ui.ExpandedImageBox.__init__(self)
				
				#self.textLineList = []
				self.toolTip = uiToolTip.ToolTip(100)
				self.toolTip.HideToolTip()
				self.CB= ui.ImageBox()
				self.CB.LoadImage("d:/global/horse/viewer.dds")
				self.CB.SetPosition(255, 5)
				self.CB.Show()
				self.CB.AddFlag("movable")
				self.CB.AddFlag("attach")
				self.CAB= ui.ImageBox()
				self.CAB.SetParent(self.CB)
				self.CAB.SetPosition(16, 17)		
				self.CAB.Show()
				self.Gauge3 = ui.AniImageBox()		
				self.Gauge3.SetDelay(5)
				self.Gauge3.Show()		
				self.Gauge3.SetParent(self.CAB)		
				self.Gauge3.SetPercentage(100, 100)
				self.NivelC = ui.TextLine()
				self.NivelC.SetFeather()
				self.NivelC.SetOutline()
				self.NivelC.SetPackedFontColor(0xffFFFBF6)
				self.NivelC.Show()		
				self.NivelC.SetParent(self.CB)
				self.NivelC.SetPosition(22, 2)
				self.Hambre = ui.TextLine()
				self.Hambre.SetFeather()
				self.Hambre.SetOutline()
				self.Hambre.SetPackedFontColor(0xffFFFBF6)
				self.Hambre.Show()			
				self.Hambre.SetParent(self.CB)
				self.Hambre.SetPosition(60, 26)		
				self.Descansar = ui.TextLine()
				self.Descansar.SetFeather()
				self.Descansar.SetOutline()
				self.Descansar.SetPackedFontColor(0xffFF8C00)
				self.Descansar.Show()					
				self.Descansar.SetParent(self.CB)
				self.Descansar.SetPosition(60, 36)
				
			def __GetHorseGrade(self, level):
				if 0 == level:
					return 0

				return (level-1)/10 + 1

			def SetState(self, level, health, battery):
				#self.textLineList=[]
				self.toolTip.ClearToolTip()
				
				if level>0:

					try:
						grade = self.__GetHorseGrade(level)
						self.__AppendText(locale.LEVEL_LIST[grade])
						self.NivelC.SetText(locale.LEVEL_LIST[grade])
						LEVEL_IMAGE=["", "d:/global/horse/horse_1.dds", "d:/global/horse/horse_2.dds", "d:/global/horse/horse_3.dds"]
						self.CAB.LoadImage(LEVEL_IMAGE[grade])
					except IndexError:
						print "HorseImage.SetState(level=%d, health=%d, battery=%d) - Unknown Index" % (level, health, battery)
						return

					try:
						healthName=locale.HEALTH_LIST[health]
						if len(healthName)>0:
							self.__AppendText(healthName)
							
						self.Hambre.SetText(healthName)	
					except IndexError:
						print "HorseImage.SetState(level=%d, health=%d, battery=%d) - Unknown Index" % (level, health, battery)
						return

					if health>0:
						if battery==0:
							self.__AppendText(locale.NEEFD_REST)
							self.Descansar.SetText("Cansado")

					try:
						fileName=self.FILE_DICT[health*10+battery]
						pogresoactual=self.PORCIENTO_BARRA[health*10+battery]
						BarraActual=self.BARRA_BARRA[health*10+battery]
					except KeyError:
						print "HorseImage.SetState(level=%d, health=%d, battery=%d) - KeyError" % (level, health, battery)

					try:
						
						for x in range(int(1),int(7)):
							self.Gauge3.AppendImage("d:/global/"+BarraActual+"/0"+str(x)+".tga")
						self.Gauge3.SetPosition(44, 3)
						self.Gauge3.SetPercentage(pogresoactual, 100)
					except:
						print "HorseImage.SetState(level=%d, health=%d, battery=%d) - LoadError %s" % (level, health, battery, fileName, pogresoactual)
				
				self.SetScale(0.7, 0.7)

			def __AppendText(self, text):

				self.toolTip.AppendTextLine(text)
				self.toolTip.ResizeToolTip()

				#x=self.GetWidth()/2
				#textLine = ui.TextLine()
				#textLine.SetParent(self)
				#textLine.SetSize(0, 0)
				#textLine.SetOutline()
				#textLine.Hide()
				#textLine.SetPosition(x, 40+len(self.textLineList)*16)
				#textLine.SetText(text)
				#self.textLineList.append(textLine)

			def OnMouseOverIn(self):
				#for textLine in self.textLineList:
				#	textLine.Show()

				self.toolTip.ShowToolTip()

			def OnMouseOverOut(self):
				#for textLine in self.textLineList:
				#	textLine.Hide()

				self.toolTip.HideToolTip()
¡Warning! Tabs...
Or in attachment exist one py
and the filesin attachment)
Screen cap:

I fyou have any error, reply this post :P
Attached Files
File Type: rar original.rar (38.2 KB, 244 views)
STREL is offline  
Thanks
9 Users
Old 07/04/2013, 07:27   #2
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 2
Share troll works
gizemligenc is offline  
Old 07/04/2013, 08:00   #3
 
sneidder's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 189
Received Thanks: 47
se me hace familiar esta inferface
sneidder is offline  
Thanks
1 User
Old 07/04/2013, 10:11   #4
 
[Patrick]'s Avatar
 
elite*gold: 50
Join Date: May 2012
Posts: 1,136
Received Thanks: 401
I love your IG Design..

----------------------
Thanks..
[Patrick] is offline  
Old 07/04/2013, 10:43   #5
 
-TÜRK-'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 435
Hey can you give us gui design?
-TÜRK- is offline  
Old 07/04/2013, 11:55   #6
 
elite*gold: 0
Join Date: Nov 2010
Posts: 2,997
Received Thanks: 3,390
It looks very crappy and ugly
now I mean your complete design and Gui
CrystalPrime is offline  
Thanks
1 User
Old 07/08/2013, 12:09   #7
 
DEMONKING.'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
Nice work

your IG gui is pub now ^^
i have it
DEMONKING. is offline  
Old 10/13/2013, 18:12   #8
 
elite*gold: 0
Join Date: Jan 2012
Posts: 17
Received Thanks: 1
It doesn't work i don't get it help plzzzz ...

can somewhone show the : etc_xml plzz...
abassaziz is offline  
Old 10/13/2013, 19:19   #9

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,258
Quote:
Originally Posted by DEMONKING. View Post
Nice work

your IG gui is pub now ^^
i have it
where i can find this gui design?
.yorliK is offline  
Old 10/13/2013, 20:02   #10

 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,471
Received Thanks: 5,622
Loong Online?
.Alpha. is offline  
Old 10/13/2013, 20:25   #11
 
miguelmig's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
Quote:
Originally Posted by .Nova. View Post
Loong Online?
Still better than Metin2's GUI
miguelmig is offline  
Old 10/15/2013, 00:06   #12
 
elite*gold: 0
Join Date: Jan 2012
Posts: 17
Received Thanks: 1
Look what it does by me help plz !

abassaziz is offline  
Reply

Tags
gui, horse, suricat, troll, works


Similar Threads Similar Threads
[DIF] Unlimited Horse Name Time | Unbegrenzt Horse Name Zeit
05/12/2013 - Metin2 PServer Guides & Strategies - 4 Replies
When we using horse.set_name(%s) command, there we have a default limit for this command. 2592000 Seconds = 30 Days. Those difs helps to remove OR change this limit. Source: If you wanna remove this time infinitely:
winged horse. The new look of horse soldiers/medyakadir
03/27/2012 - Metin2 PServer Guides & Strategies - 18 Replies
winged horse. The new look of horse soldiers Follow the video :) İmage : http://img818.imageshack.us/img818/137/drachenpfe rd.jpg Video : Drachenpferd by PhanToMLorD - YouTube Virustotal:https://www.virustotal.com/file/ff9b24 d8727c38d016f7a00cf6a22579749e7b2d2aed6a1505ed7560 611b72d0/analysis/1332785946/
Longjuyt2 horse level /ski xxx code
04/10/2010 - Metin2 Private Server - 51 Replies
Pls longjuyt2 /ski xxx code :)



All times are GMT +2. The time now is 16:49.


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.