Jump to content

Reset countdown skills


Go to solution Solved by Mali,

Recommended Posts

  • Premium

Hello, i search an script or tutorial for follow for the next proposal: when an player is dead after she will come back to alive the timeout/cowntdown whatever... will continue!

I need to reset that "timeout/cowntdown" to 0 when the player will come back to alive.

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Honorable Member
  • Solution

This is the hidden content, please
 use this and change onupdate like this:

Spoiler

		def OnUpdate(self):
			for x in xrange(player.REVIVE_TYPE_MAX): 
				endtime = self.reviveTimeStamp[x] - app.GetTime()
				if endtime <= .1:
					self.reviveTimeTexts[x].Hide()
					if x == player.REVIVE_TYPE_HERE:
						self.RestartHere()
					if x == player.REVIVE_TYPE_TOWN:
						self.restartTownButton.Enable()

				if x == player.REVIVE_TYPE_AUTO_TOWN:
					self.reviveTimeTexts[x].SetText(localeInfo.REVIVE_AUTO_TOWN_MESSAGE.format(localeInfo.SecondToMS(endtime)))
				else:
					self.reviveTimeTexts[x].SetText("{0:.1f}".format(endtime))

 

 

Edited by Mali61
  • Metin2 Dev 2
  • Love 1

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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