smmurey Posted July 4, 2012 Posted July 4, 2012 hello guys 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 Quote
Bahmut Posted July 4, 2012 Posted July 4, 2012 There is no other translation of all NPCs. So you have to translate them by yourself. Quote
smmurey Posted July 4, 2012 Author Posted July 4, 2012 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 : I want to such it thx Quote
Bahmut Posted July 4, 2012 Posted July 4, 2012 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?"; } Quote
smmurey Posted July 5, 2012 Author Posted July 5, 2012 (edited) thank you 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 July 4, 2012 by smmurey Quote
Euphy Posted July 5, 2012 Posted July 5, 2012 set .@i, ((#language==1)?select("ja:Ausgang"):select("Yes:Quit")); switch(.@i){ case 1: // language 1 case 2: // language 2 } Quote
smmurey Posted July 5, 2012 Author Posted July 5, 2012 Unfortunately when I talk with the npc , give me the options English and then German Quote
Question
smmurey
hello guys
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.