Jump to content
metin2dev
  • 0
Sign in to follow this  
Human

[Problem]Enter Key not working at Select char

Question

Hello,
I added new login interface and when i added successfully without error at Character selection window when i select i cant use Enter key nor any arrow keys to rotate
what is that problem? 
any one solve it ?

Thanks in advance

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

That's because the login input or the password input from the login interface is still focused. You need to kill their focus before going to the char select.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

The Character selection section is introselect.py

You can use this extension. It contains Enter Key, Arrow Keys, ESC, Arrow Keys

Add to to the end of introselect.py

Spoiler

	## KEYFUNCTIONS
	def OnKeyDown(self, key):
		if 1 == key:
			self.ExitSelect()
		if 2 == key:
			self.SelectSlot(0)
		if 3 == key:
			self.SelectSlot(1)
		if 4 == key:
			self.SelectSlot(2)
		if 5 == key:
			self.SelectSlot(3)
			
		if 28 == key:

			id = net.GetAccountCharacterSlotDataInteger(self.slot, net.ACCOUNT_CHARACTER_SLOT_ID)
			if 0 == id:
				self.CreateCharacter()

			else:
				self.StartGame()

		if 203 == key:
			self.slot = (self.GetSlotIndex() - 1 + self.SLOT_COUNT) % self.SLOT_COUNT
			self.SelectSlot(self.slot)
		if 205 == key:
			self.slot = (self.GetSlotIndex() + 1) % self.SLOT_COUNT
			self.SelectSlot(self.slot)
		return TRUE	
	## KEYFUNCTIONS END	

 

kind regards

LISA

  • Thanks 1

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×