Jump to content
  • 0

COSTUME TIME PROBLEM


blaxis

Question

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 by blaxis
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  • Distinguished Member

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 by TMP4
  • Metin2 Dev 1
Link to comment
Share on other sites

  • 0
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 by blaxis
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


!-->
×
×
  • 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.