Jump to content

ITEM_RING type's REAL_TIME


Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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

  • 2 years later...
  • 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

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.