Jump to content

Question

Posted

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

6 answers to this question

Recommended Posts

Posted

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

Posted

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?";
 }

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...