Jump to content

Recommended Posts

Hello,

i tries today to implement the new item ring_slots but i have some bugs.

04d3336751.jpgWhen i use the first "ring" than it will show me the icon 2x

The other bug was that the Ring has time "0"

 

 

These data I have modifie:

 

Char_item.cpp

i searched : if (item->GetWearFlag() & WEARABLE_UNIQUE)

and under this i have paste

Spoiler

    if (item->GetWearFlag() & WEARABLE_UNIQUE)
    {        
        if ((GetWear(WEAR_RING1) && GetWear(WEAR_RING1)->IsSameSpecialGroup(item)) ||
            (GetWear(WEAR_RING2) && GetWear(WEAR_RING2)->IsSameSpecialGroup(item)))
        {
            ChatPacket(CHAT_TYPE_INFO, "Du kannst diesen Gegenstand nicht zweimal ausrüsten.");
            return false;
        }

        if (marriage::CManager::instance().IsMarriageUniqueItem(item->GetVnum()) && 
            !marriage::CManager::instance().IsMarried(GetPlayerID()))
        {
            ChatPacket(CHAT_TYPE_INFO, "Du kannst diesen Gegenstand nicht zweimal ausrüsten.");
            return false;
        }
    }

 

uitooltip.py

searched :         elif item.ITEM_TYPE_UNIQUE == itemType:

copy this elif

Spoiler

        elif item.ITEM_TYPE_RING == itemType:
            if 0 != metinSlot:
                bHasRealtimeFlag = 0
                
                for i in xrange(item.LIMIT_MAX_NUM):
                    (limitType, limitValue) = item.GetLimit(i)

                    if item.LIMIT_REAL_TIME == limitType:
                        bHasRealtimeFlag = 1
                
                if 1 == bHasRealtimeFlag:
                    self.AppendMallItemLastTime(metinSlot[0])        
                else:
                    time = metinSlot[player.METIN_SOCKET_MAX_NUM-1]

                    if 1 == item.GetValue(2): ## 실시간 이용 Flag / 장착 안해도 준다
                        self.AppendMallItemLastTime(time)
                    else:
                        self.AppendUniqueItemLastTime(time)

I hope you can help me

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/13338-new-ring_slot-bug-item_type_ring/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.