Autopott BUG

10/07/2012 10:21 Yiv#1
Hallo liebe Community,

ich habe einen Bug mit meinen Autopotts. Bei Elexier der Sonne (K) und (M), steht in grüner Schrift "Restmenge: 100%" oder halt weniger %. Bei (G) und (S), steht jedoch nichts mit Restmenge drunter. Wie kann ich das machen?

MfG
11/25/2012 00:52 .SliceR#2
würde mich auch interessieren.. Sorry das ich pushe
11/25/2012 01:06 Pedr0caz&Saddler#3
open uitooltip.py on root

and add that

PHP Code:
            elif 72723 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR)

            
elif 72724 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR)
                    
            
elif 72725 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR)
                    
            
elif 72726 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR)
                    
            
elif 72727 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR)
                    
            
elif 72728 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR)
                    
            
elif 72729 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR)
                    
            
elif 72730 == itemVnum == itemVnum:
                if 
!= metinSlot:
                    
## 0: È°¼ºÈ*, 1: »ç¿ë·®, 2: ÃÑ·®
                    
isActivated int(metinSlot[0])
                    
usedAmount float(metinSlot[1])
                    
totalAmount float(metinSlot[2])
                    
                    if 
== totalAmount:
                        
totalAmount 1
                    
                    self
.AppendSpace(5)

                    if 
!= isActivated:
                        
self.AppendTextLine("(%s)" % (locale.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                        
self.AppendSpace(5)
                        
                    
self.AppendTextLine(locale.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount totalAmount) * 100.0)), self.POSITIVE_COLOR

i have that problem and on uitooltip just have the 72723
just need to add other ID's.

Regards.
11/25/2012 02:46 .SliceR#4
Nice! Thank you, it works. :)