Jump to content
  • 0

Change language


smmurey

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  07/03/12
  • Last Seen:  

hello guys /whisp

how r u ?

In fact, I need a npc to change the language of the npc's

I talk with npc , You have two options :

english

Spanish

--

If you choose English, Change npc's to the English language

If you choose Spanish, Change npc's to the Spanish language

--

I hope I have explained to you

thx

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

There is no other translation of all NPCs. So you have to translate them by yourself.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  07/03/12
  • Last Seen:  

I'm working on the translation , but i want a npc works to change the language to the translation of my or The original translation

For illustration only :

134141118261.png

I want to such it

thx

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

I'm solving this like this on my server (in my case english and german):

prontera,146,174,4 script Translator#tr01::Translator 727,{
mes "[Translator]";
mes " * Please choose a language";
mes " * Bitte wähle eine Sprache";
next;
menu "English",-,"German",L_Ger;
 set #language,0;
 next;
 mes "[Translator]";
 mes "Thank you.";
 mes "Have fun on " + $server_Name$ + ".";
 close;
L_Ger:
 set #language,1;
 next;
 mes "[Translator]";
 mes "Danke.";
 mes "Viel Spaß auf " + $server_Name$ + ".";
 close;
}

And then make my NPC's multilanguage like this:

 if (#language == 1) {
  mes "Wo möchten sie hin?";
 } else {
  mes "Where do you want to go?";
 }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  07/03/12
  • Last Seen:  

thank you /no1

And then make my NPC's multilanguage like this (mes):

if (#language == 1) {
  mes "Wo möchten sie hin?";
 } else {
  mes "Where do you want to go?";
 }

I want an example of (select) :

if (#language == 1) {
switch(select("ja:Ausgang"))
} else {
switch(select("Yes:Quit"))
}

Tried this method but it did not work ==

What I do?

Edited by smmurey
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

set .@i, ((#language==1)?select("ja:Ausgang"):select("Yes:Quit"));
switch(.@i){
   case 1: // language 1
   case 2: // language 2
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  07/03/12
  • Last Seen:  

Unfortunately

when I talk with the npc , give me the options English and then German

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