Active+ Member blaxis 285 Posted October 9, 2021 Active+ Member Share Posted October 9, 2021 (edited) Hello. I'm having a time issue with all elements of the costume type. Hair, mount, costume weapon, etc. For all time: It shows "Time left: 18910 days 14 hours 7 minutes". How can I fix this? I set the hours correctly in the item_proto file, but the problem persists. And for those sold in NPC; "You Can't Use It." It has a reminder. This warning comes: def AppendTimerBasedOnWearLastTime(self, metinSlot): if 0 == metinSlot[0]: self.AppendSpace(5) self.AppendTextLine(localeInfo.CANNOT_USE, self.DISABLE_COLOR) else: endTime = app.GetGlobalTimeStamp() + metinSlot[0] self.AppendMallItemLastTime(endTime) No syserr. Edited October 9, 2021 by blaxis Link to comment Share on other sites More sharing options...
Contributor TMP4 11115 Posted October 9, 2021 Contributor Share Posted October 9, 2021 (edited) Ymir did not program it because they did not needed it, however it's not that hard: def AppendTimerBasedOnWearLastTime(self, metinSlot): if 0 == metinSlot[0]: if item.COSTUME_TYPE_BODY == item.GetItemSubType() or item.COSTUME_TYPE_HAIR == item.GetItemSubType(): defaultValue = 0 for i in xrange(item.LIMIT_MAX_NUM): (limitType, defaultValue) = item.GetLimit(i) defaultValue += app.GetGlobalTimeStamp() if item.LIMIT_TIMER_BASED_ON_WEAR == limitType: break self.AppendMallItemLastTime(defaultValue) else: self.AppendSpace(5) self.AppendTextLine(localeInfo.CANNOT_USE, self.DISABLE_COLOR) else: endTime = app.GetGlobalTimeStamp() + metinSlot[0] self.AppendMallItemLastTime(endTime) Edited October 9, 2021 by TMP4 1 Link to comment Share on other sites More sharing options...
Active+ Member blaxis 285 Posted October 9, 2021 Author Active+ Member Share Posted October 9, 2021 (edited) 2 hours ago, TMP4 said: Ymir did not program it because they did not needed it, however it's not that hard: def AppendTimerBasedOnWearLastTime(self, metinSlot): if 0 == metinSlot[0]: if item.COSTUME_TYPE_BODY == item.GetItemSubType() or item.COSTUME_TYPE_HAIR == item.GetItemSubType(): defaultValue = 0 for i in xrange(item.LIMIT_MAX_NUM): (limitType, defaultValue) = item.GetLimit(i) defaultValue += app.GetGlobalTimeStamp() if item.LIMIT_TIMER_BASED_ON_WEAR == limitType: break self.AppendMallItemLastTime(defaultValue) else: self.AppendSpace(5) self.AppendTextLine(localeInfo.CANNOT_USE, self.DISABLE_COLOR) else: endTime = app.GetGlobalTimeStamp() + metinSlot[0] self.AppendMallItemLastTime(endTime) Thanks. I try this but didn't work.. It was solid before. But I don't remember what I did afterwards. I guess it's because of the source code "And for those sold in NPC; "You Can't Use It." It has a reminder." this solved but "Time left" issue persists. Hair problem solved, costume body and weapon is not solved. I added or item.COSTUME_TYPE_WEAPON == item.GetItemSubType() but didn't work. Edit2: Hair's rigth click after same problem Edited October 9, 2021 by blaxis Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now