Register for your free account! | Forgot your password?

You last visited: Today at 15:55

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

Advertisement



Metin2 Horse GUI FIXED

Discussion on Metin2 Horse GUI FIXED within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
AutozasxD's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 15
Received Thanks: 0
Metin2 Horse GUI FIXED

ORIGINAL POST:

Original Horse GUI's UIAffectShower.py
Quote:
#Horse_GUI by DasNipples
class HorseImage(ui.ExpandedImageBox):

FILE_PATH = "d:/ymir work/ui/pattern/HorseState/"

SZAZALEK = {
0: 0,
1: 0,
2: 0,
3: 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
}

BAR_B = {
0: "blackgauge",
1: "blackgauge",
2: "blackgauge",
3: "blackgauge",
10: "redgauge",
11: "redgauge",
12: "redgauge",
13: "redgauge",
20: "yellowgauge",
21: "yellowgauge",
22: "yellowgauge",
23: "yellowgauge",
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.Gui = ui.ImageBox()
self.Gui.LoadImage("dnproducts/horsegui/gui.tga")
self.Gui.SetPosition(255, 5)
self.Gui.Show()
self.Gui.AddFlag("movable")
self.Gui.AddFlag("attach")
self.Fej = ui.ImageBox()
self.Fej.SetParent(self.Gui)
self.Fej.SetPosition(4, 9)
self.Fej.Show()
self.Gauge3 = ui.AniImageBox()
self.Gauge3.SetDelay(5)
self.Gauge3.Show()
self.Gauge3.SetParent(self.Fej)
self.Gauge3.SetPercentage(100, 100)
self.Szint = ui.TextLine()
self.Szint.SetFeather()
self.Szint.SetOutline()
self.Szint.SetPackedFontColor(-1034)
self.Szint.Show()
self.Szint.SetParent(self.Gui)
self.Szint.SetPosition(55, 4)
self.Ehseg = ui.TextLine()
self.Ehseg.SetFeather()
self.Ehseg.SetOutline()
self.Ehseg.SetPackedFontColor(-1034)
self.Ehseg.Show()
self.Ehseg.SetParent(self.Gui)
self.Ehseg.SetPosition(60, 26)
self.Faradtsag = ui.TextLine()
self.Faradtsag.SetFeather()
self.Faradtsag.SetOutline()
self.Faradtsag.SetPackedFontColor(-29696)
self.Faradtsag.Show()
self.Faradtsag.SetParent(self.Gui)
self.Faradtsag.SetPosition(40, 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._HorseImage__GetHorseGrade(level)
self._HorseImage__AppendText(locale.LEVEL_LIST[grade])
self.Szint.SetText(locale.LEVEL_LIST[grade])
LEVEL_IMAGE = [
"",
"dnproducts/horsegui/face_1.tga",
"dnproducts/horsegui/face_2.tga",
"dnproducts/horsegui/face_3.tga"
]
self.Fej.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._HorseImage__AppendText(healthName)
self.Ehseg.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.Faradtsag.SetText(elements.RENDIDO)
try:
fileName = self.FILE_DICT[((health * 10) + battery)]
folyamat = self.SZAZALEK[((health * 10) + battery)]
ActualBar = self.BAR_B[((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((((("dnproducts/" + ActualBar) + "/0") + str(x)) + ".tga"))

self.Gauge3.SetPosition(55, 12)
self.Gauge3.SetPercentage(folyamat, 57)
except:
print "HorseImage.SetState(level=%d, health=%d, battery=%d) - LoadError %s" % (level, health, battery, fileName, folyamat)

self.SetScale(0.69999999999999996, 0.69999999999999996)
#End of Horse_GUI
FIXED:


Won't appear in game

In Screen:
AutozasxD is offline  
Old 02/10/2017, 22:59   #2
 
xP3NG3Rx's Avatar
 
elite*gold: 50
Join Date: May 2011
Posts: 270
Received Thanks: 991
Oh dear mother of ***.
xP3NG3Rx is offline  
Thanks
7 Users
Old 02/12/2017, 11:13   #3
 
elite*gold: 0
Join Date: Sep 2010
Posts: 73
Received Thanks: 31
Am I the only one to notice 13:37:21 under the minimap ?

That's it for me
galetlefrancais is offline  
Reply

Tags
metin


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/



All times are GMT +1. The time now is 15:56.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.