Jump to content
  • 0

how to add other languages ​​in the command @langtype


sony0108

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  9
  • Reputation:   0
  • Joined:  04/07/23
  • Last Seen:  

---- Available languages:
English (ENG)
@langtype failed.
Language is now set to English (ENG).

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  132
  • Reputation:   53
  • Joined:  06/02/12
  • Last Seen:  

Hi, open this file: /src/common/msg_conf.hpp and find this part:

enum lang_types {
	LANG_RUS = 0x01,
	LANG_SPN = 0x02,
	LANG_GRM = 0x04,
	LANG_CHN = 0x08,
	LANG_MAL = 0x10,
	LANG_IDN = 0x20,
	LANG_FRN = 0x40,
	LANG_POR = 0x80,
	LANG_THA = 0x100,
	LANG_MAX
};

#ifndef LANG_ENABLE
	// Multilanguage System.
	// Define which languages to enable (bitmask).
	// 0xFFF will enable all, while 0x000 will enable English only.
	#define LANG_ENABLE 0x000

 

Change 0x000 in the last line to the desired bitmask value (sum of numbers of the languages you want to use). Save and then compile your server. Examples:

 

Enable Russian and Spanish (0x01 + 0x02 = 0x03)

	#define LANG_ENABLE 0x03

Enable German and Chinese (0x04 + 0x08 = 0x12)

	#define LANG_ENABLE 0x12

Enable Spanish and French and Portuguese (0x02 + 0x40 + 0x80 = 0x122)

	#define LANG_ENABLE 0x122

EDIT: Do note that @langtype have no effect on client-side text. It's only for server messages.

Edited by Racaae
Addendum
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  9
  • Reputation:   0
  • Joined:  04/07/23
  • Last Seen:  

Posted (edited)
7 hours ago, Racaae said:

Oi, abra este arquivo: /src/common/msg_conf.hpp e encontre esta parte:

enum lang_types {
	LANG_RUS = 0x01,
	LANG_SPN = 0x02,
	LANG_GRM = 0x04,
	LANG_CHN = 0x08,
	LANG_MAL = 0x10,
	LANG_IDN = 0x20,
	LANG_FRN = 0x40,
	LANG_POR = 0x80,
	LANG_THA = 0x100,
	LANG_MAX
};

#ifndef LANG_ENABLE
	// Multilanguage System.
	// Define which languages to enable (bitmask).
	// 0xFFF will enable all, while 0x000 will enable English only.
	#define LANG_ENABLE 0x000

 

Altere 0x000 na última linha para o valor de máscara de bits desejado (soma dos números dos idiomas que você deseja usar). Salve e compile seu servidor. Exemplos:

 

Ativar russo e espanhol (0x01 + 0x02 = 0x03)

	#define LANG_ENABLE 0x03

Habilitar alemão e chinês (0x04 + 0x08 = 0x12)

	#define LANG_ENABLE 0x12

Habilitar espanhol e francês e português (0x02 + 0x40 + 0x80 = 0x122)

	#define LANG_ENABLE 0x122

EDIT: Observe que @langtype não têm efeito no texto do lado do cliente. É apenas para mensagens do servidor.

Thank you, it worked.
One question is there any client-side config about the language?

And language for NPCs is there any configuration in src?

Edited by sony0108
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...