Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 04:05

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

Advertisement



Auto Pott Aktivierungseffekt

Discussion on Auto Pott Aktivierungseffekt within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 113
Received Thanks: 6
Auto Pott Aktivierungseffekt

hay,

ich hab den Autopott eingefügt, und der klappt soweit auch. Aber man sieht nicht das er gerade aktiv ist, also dieser Rand kommt nicht. Hab das in Patch2 etc eingefügt aus dem Thread .
timonick is offline  
Old 04/08/2015, 12:21   #2
 
Zaturix's Avatar
 
elite*gold: 0
Join Date: Oct 2014
Posts: 408
Received Thanks: 208
Hast du in der uiinventory.py auch folgendes drin?


PHP Code:
    def RefreshBagSlotWindow(self):
        
getItemVNum=player.GetItemIndex
        getItemCount
=player.GetItemCount
        setItemVNum
=self.wndItem.SetItemSlot
        
        
for i in xrange(player.INVENTORY_PAGE_SIZE):
            
slotNumber self.__InventoryLocalSlotPosToGlobalSlotPos(i)
            
itemCount getItemCount(slotNumber)
            if 
itemCount <= 1:
                
itemCount 0
                
            itemVnum 
getItemVNum(slotNumber)
            
setItemVNum(iitemVnumitemCount)
            
            
## ÀÚµ¿¹°¾à (HP: #72723 ~ #72726, SP: #72727 ~ #72730) Æ¯¼ö󸮠- ¾ÆÀÌÅÛÀε¥µµ ½½·Ô¿¡ È°¼ºÈ*/ºñÈ°¼ºÈ* Ç¥½Ã¸¦ À§ÇÑ ÀÛ¾÷ÀÓ - [hyo]
            
if constInfo.IS_AUTO_POTION(itemVnum):
                
# metinSocket - [0] : È°¼ºÈ* ¿©ºÎ, [1] : »ç¿ëÇÑ ¾ç, [2] : ÃÖ´ë ¿ë·®
                
metinSocket = [player.GetItemMetinSocket(slotNumberj) for j in xrange(player.METIN_SOCKET_MAX_NUM)]    
                
                if 
slotNumber >= player.INVENTORY_PAGE_SIZE:
                    
slotNumber -= player.INVENTORY_PAGE_SIZE
                    
                isActivated 
!= metinSocket[0]
                
                if 
isActivated:
                    
self.wndItem.ActivateSlot(slotNumber)
                    
potionType 0;
                    if 
constInfo.IS_AUTO_POTION_HP(itemVnum):
                        
potionType player.AUTO_POTION_TYPE_HP
                    elif constInfo
.IS_AUTO_POTION_SP(itemVnum):
                        
potionType player.AUTO_POTION_TYPE_SP                        
                    
                    usedAmount 
int(metinSocket[1])
                    
totalAmount int(metinSocket[2])                    
                    
player.SetAutoPotionInfo(potionTypeisActivated, (totalAmount usedAmount), totalAmountself.__InventoryLocalSlotPosToGlobalSlotPos(i))
                    
                else:
                    
self.wndItem.DeactivateSlot(slotNumber)            
                    
        
self.wndItem.RefreshSlot() 


Und das in deiner constinfo.py?

PHP Code:
## ÀÚµ¿¹°¾à (HP: #72723 ~ #72726, SP: #72727 ~ #72730)

# ÇØ´ç vnumÀÌ ÀÚµ¿¹°¾àÀΰ¡?
def IS_AUTO_POTION(itemVnum):
    return 
IS_AUTO_POTION_HP(itemVnum) or IS_AUTO_POTION_SP(itemVnum)
    
# ÇØ´ç vnumÀÌ HP ÀÚµ¿¹°¾àÀΰ¡?
def IS_AUTO_POTION_HP(itemVnum):
    if 
72723 <= itemVnum and 72726 >= itemVnum:
        return 
1
    elif itemVnum 
>= 76021 and itemVnum <= 76022:        ## »õ·Î µé¾î°£ ¼±¹°¿ë È*·æÀÇ Ãູ
        
return 1
    elif itemVnum 
== 79012:
        return 
1
        
    
return 0
    
# ÇØ´ç vnumÀÌ SP ÀÚµ¿¹°¾àÀΰ¡?
def IS_AUTO_POTION_SP(itemVnum):
    if 
72727 <= itemVnum and 72730 >= itemVnum:
        return 
1
    elif itemVnum 
>= 76004 and itemVnum <= 76005:        ## »õ·Î µé¾î°£ ¼±¹°¿ë ¼ö·æÀÇ Ãູ
        
return 1
    elif itemVnum 
== 79013:
        return 
1
                
    
return 


Mit freundlichen Grüßen
Zaturix is offline  
Old 04/08/2015, 16:32   #3
 
elite*gold: 0
Join Date: Feb 2012
Posts: 113
Received Thanks: 6
War nicht drin, habs jetzt einfach irgendwo da eingefügt. Jetzt schließt sich das wenn ich mich einloggen will und der fehler kommt:

Quote:
0408 16:31:05414 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=4) - Strange Skill Attribute(TOGGLEWEAPON_LIMITATION)
0408 16:31:05628 ::
networkModule.py(line:194) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:28) ?
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:14) ?
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - exceptions.SyntaxError:invalid syntax (line 1)

0408 16:31:05628 :: ================================================== ================================================== ========
0408 16:31:05628 :: Abort!!!!

timonick is offline  
Old 04/08/2015, 17:36   #4
 
Zaturix's Avatar
 
elite*gold: 0
Join Date: Oct 2014
Posts: 408
Received Thanks: 208
Du hast in deiner Game einen import fehler.

Musst du mal nach schauen.
Kenne mich nicht so gut mit Python aus :P
Zaturix is offline  
Old 04/08/2015, 18:36   #5




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,823
Received Thanks: 3,368
Bitte verwende die foreneigene Anhangfunktion, um uns einen Einblick in die betroffenden Dateien (uiToolTip.py, constInfo.py) zu gewähren.

lg
Nick is offline  
Old 04/08/2015, 18:43   #6
 
elite*gold: 0
Join Date: Feb 2012
Posts: 113
Received Thanks: 6
Hier ist es
Attached Files
File Type: rar sachen.rar (17.0 KB, 7 views)
timonick is offline  
Old 04/08/2015, 19:06   #7




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,823
Received Thanks: 3,368
Im Anhang. In der uiToolTip.py stehen allerdings noch ebenfalls Änderungen aus.

lg
Attached Files
File Type: rar auto_potions.rar (7.5 KB, 21 views)
Nick is offline  
Thanks
2 Users
Old 04/08/2015, 19:15   #8
 
elite*gold: 0
Join Date: Feb 2012
Posts: 113
Received Thanks: 6
Korrekt. das geht schon mal. Aber eine Frage, in der Taskleiste wird es nicht aktiviert angezeigt, geht das auch irgendwie?
timonick is offline  
Old 04/08/2015, 19:42   #9
 
.Despero™'s Avatar
 
elite*gold: 75
Join Date: Mar 2012
Posts: 2,655
Received Thanks: 742
Uploade mal deine uiaffectshower.py oder add mich mal in Skype ich füg es dir ein
.Despero™ is offline  
Reply


Similar Threads Similar Threads
Auto pott effect fehler mit shining
09/28/2013 - Metin2 Private Server - 0 Replies
Hallo ich habe eine problem und zwar habe ich die auto potts eingebaut und jetzt kommt bei jeden potten der pots ein gelbes shining das stärker wird ich bitte um hilfe mfg wieso antwortet und hilft keiner hammer sache
Metin2 Auto Pott [Elixier der Sonne usw. Problem]
06/01/2012 - Metin2 Private Server - 3 Replies
Hey, Ich habe seid kurzem in meinen Server die Auto Potts eingefügt, die auch in Metin2 DE sind (Elixier der Sonne usw.). Aber wenn ich auf das Item raufklicke passiert nichts. Es ist normalerweise so, dass es sich drum herum ein Rand bilder und bisschen leuchtet. Bei mir ist es aber nicht so aber die Funktion (Potten usw.) geht, bloß es ist nicht Umrandet. Wie kann man es einfügen, dass es drum herum ein randet ergibt, der sich immer dreht, wie auf Metin2 DE.
Auto Pott & Schlag Bot
03/18/2012 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 4 Replies
Wegen Flame #Delete



All times are GMT +1. The time now is 04:05.


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.