Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 07:52

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

Advertisement



Problem mit Autopotts

Discussion on Problem mit Autopotts within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
.CHJonas's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 269
Received Thanks: 125
Problem mit Autopotts

Wie die Überschrift schon sagt habe ich ein Problem mit den Autopotts.
Sie funktionieren einwandfrei aber bei mir fehlt oben die Information das die Autopotts Aktiviert sind, damit meine ich den Statusicon.

Kann mir wer helfen oder sagen wo ich den Fehler beheben kann/wo sich die datei befindet?

Syserr Client:

Danke euch
.CHJonas is offline  
Old 09/26/2012, 22:17   #2
 
elite*gold: 0
Join Date: Mar 2012
Posts: 774
Received Thanks: 420
DAS: in die uiaffectshower eintragen im root ordner ( auf die TABS achten beim kopieren )

Code:
# AUTO_POTION
class AutoPotionImage(ui.ExpandedImageBox):

	FILE_PATH_HP = "d:/ymir work/ui/pattern/auto_hpgauge/"
	FILE_PATH_SP = "d:/ymir work/ui/pattern/auto_spgauge/"

	def __init__(self):
		ui.ExpandedImageBox.__init__(self)

		self.loverName = ""
		self.lovePoint = 0
		self.potionType = player.AUTO_POTION_TYPE_HP
		self.filePath = ""

		self.toolTip = uiToolTip.ToolTip(100)
		self.toolTip.HideToolTip()

	def __del__(self):
		ui.ExpandedImageBox.__del__(self)

	def SetPotionType(self, type):
		self.potionType = type
		
		if player.AUTO_POTION_TYPE_HP == type:
			self.filePath = self.FILE_PATH_HP
		elif player.AUTO_POTION_TYPE_SP == type:
			self.filePath = self.FILE_PATH_SP
			

	def OnUpdateAutoPotionImage(self):
		self.__Refresh()

	def __Refresh(self):
		print "__Refresh"
	
		isActivated, currentAmount, totalAmount, slotIndex = player.GetAutoPotionInfo(self.potionType)
		
		amountPercent = (float(currentAmount) / totalAmount) * 100.0
		grade = math.ceil(amountPercent / 20)
		
		if 5.0 > amountPercent:
			grade = 0
			
		if 80.0 < amountPercent:
			grade = 4
			if 90.0 < amountPercent:
				grade = 5			

		fmt = self.filePath + "%.2d.dds"
		fileName = fmt % grade
		
		print self.potionType, amountPercent, fileName

		try:
			self.LoadImage(fileName)
		except:
			import dbg
			dbg.TraceError("AutoPotionImage.__Refresh(potionType=%d) - LoadError %s" % (self.potionType, fileName))

		self.SetScale(0.7, 0.7)

		self.toolTip.ClearToolTip()
		
		if player.AUTO_POTION_TYPE_HP == type:
			self.toolTip.SetTitle(locale.TOOLTIP_AUTO_POTION_HP)
		else:
			self.toolTip.SetTitle(locale.TOOLTIP_AUTO_POTION_SP)
			
		self.toolTip.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST	% (amountPercent))
		self.toolTip.ResizeToolTip()

	def OnMouseOverIn(self):
		self.toolTip.ShowToolTip()

	def OnMouseOverOut(self):
		self.toolTip.HideToolTip()
# END_OF_AUTO_POTION
den Anhang " pattern " in
ymir work/ui/pattern
einfügen.. diese liegt im ETC ordner..

und hab die uiaffectshower nochmal als Anhang


mfg hoffe konnte helfen.
Attached Files
File Type: rar pattern.rar (6.5 KB, 20 views)
File Type: rar uiaffectshower.rar (4.5 KB, 16 views)
*.Creatic.* is offline  
Thanks
1 User
Old 09/27/2012, 16:56   #3
 
.CHJonas's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 269
Received Thanks: 125
Hab ich gemacht, Funktioniert leider nicht .

In der Syserr taucht auch kein neuer Fehler auf....
.CHJonas is offline  
Old 09/27/2012, 17:32   #4
 
elite*gold: 0
Join Date: Mar 2012
Posts: 774
Received Thanks: 420
normalerweise muss es damit gehen.. hast du auch die bilder vom anhang in den etc ordner getan?
*.Creatic.* is offline  
Old 09/27/2012, 17:58   #5
 
.CHJonas's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 269
Received Thanks: 125
Jop hab sie mal über pack2 eingefügt und jetzt funtzt es auch danke
.CHJonas is offline  
Reply


Similar Threads Similar Threads
[PROBLEM]AutoPotts funkt. nicht!
09/09/2012 - Metin2 Private Server - 0 Replies
Hallo Com.! Bin noch ziemlich neu in der "P-Server Branche" und habe ein kleines Problem beim Einbauen der Autopots. Ich benutze die Serverfiles von Daroo und den Clienten von Marco_A. Nun habe ich alles eingebaut(bzw. war sogar schon eingebaut), jedoch klappt das einfach nicht mit dem Effekt vom Elexier. In der playersettingmodule steht alles drin. Ich hab einfach alles befolgt, jedoch alles ohne Erfolg und nun bin ich am Ende meiner Nerven. Daher suche ich Hilfe und biete für die...
[HELP]Autopotts
08/31/2012 - Metin2 Private Server - 0 Replies
Hallu Com, Ich wollte fragen ob jmd. ein Theadra posten könnte wo ausführlich erklärt wird wie man die Auto Potts einfügt. Danke im voraus :'DD
[HELP] Autopotts
07/26/2012 - Metin2 Private Server - 0 Replies
Hi everybody. I have got a problem with autopotts. I dont know, what I get to metin2.bin. Client isn´t a problem, but metin2.bin is problem .. :( .. Please can you help me with it?
How do I add Autopotts?
06/16/2012 - Metin2 Private Server - 0 Replies
Hello! I'm new at epvp. Autopotts anybody tell how to add? Thanks in advance.
Autopotts frage
12/29/2011 - Metin2 Private Server - 1 Replies
Heyho com. Ich habe bei mir die Autopotts eingebaut,hat auch alles gut geklappt.Aber irgenwie gibts troßdem noch ein kleinen schönheitsfehler,und zwar beim potten ist ja normalerweise son art ring um dich der rot angezeigt wird. Vielleicht versteht ihr das nicht ganz,kann aber leider nur mit einem Screen dienen,hoffe aber das ein par von euch es erkennen,und mir sagen können an welchen datein das problem liegt. http://www.pictureupload.de/originals/pictures/20 1211161405_fehler.png ...



All times are GMT +1. The time now is 07:52.


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.