Jump to content
×
×
  • Create New...
  • 0

ITEM_RING type's REAL_TIME


Veneno

Question

Hello guys I just "activated" ring slots and ITEM_RING in my server and everything goes on smoothly except one thing: when my "ring" items had "UNIQUE" type their remaining time was visible. Once I turned them into rings the remaining time was gone. My REAL_TIME and it's value in item_proto is correct. So are there any suggestions to this problem?

Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

Thanks for the tip :) Can you give me an example of what needs to be edited?

I made it thanks anyway :) For those who see this and have the same problem search for "ITEM_TYPE_UNIQUE" and copy all that function. Paste it in "ITEM_TYPE_RING" and you are done :). Here is the function for those who have a little eye problem:

Spoiler

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)

 

Link to comment
Share on other sites

  • 0
  • Premium
Le 30/11/2015 à 01:23, Veneno a dit :

Thanks for the tip :) Can you give me an example of what needs to be edited?

I made it thanks anyway :) For those who see this and have the same problem search for "ITEM_TYPE_UNIQUE" and copy all that function. Paste it in "ITEM_TYPE_RING" and you are done :). Here is the function for those who have a little eye problem:

  Révéler le contenu masqué

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)

 

Why  bother copy/pasting the function when you can just add one condition:

Révélation

Replace:

elif itemType == item.ITEM_TYPE_UNIQUE:

By:

elif itemType == item.ITEM_TYPE_UNIQUE or itemType == item.ITEM_TYPE_RING:

Done. As simple as that.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 14

      CRK - Cronikal [Play now][Official start on April 24, 2022 at 16:00][11 languages available]

    2. 57

      Forever Metin2

    3. 1

      NPC direct item enchant

    4. 37

      Official Mailbox

    5. 0

      [Request] Underground-MT2 Serverfiles, Database , Homepage & Client

    6. 0

      3 countries 3 phrases

    7. 1

      NPC direct item enchant

    8. 0

      Origins2 Global | International | A new concept - 10.06.2022

  • Recently Browsing

    • No registered users viewing this page.

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.