Jump to content
  • 0

Language System


blast1he

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  11/20/13
  • Last Seen:  

Hello

 

I was wondering if someone could make a system that has 2 npc folders

 

one for english and the other for german, and the players can choose the language from an npc

 

like when player choose english, the server read's english folder and the same with german

 

Edited by blast1he
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

actually there was staff discussion about multi-language support for scripting stuff, that it seems just marked as "started" with goes nowhere. xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

new_zone02,98,30,1	script	Language Changer	 412,{
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 ??? Ro.";
  close;
L_Ger:
  set #language,1;
  next;
  mes "[Translator]";
  mes "Danke.";
  mes "Viel Spaß auf ??? Ro.";
  close;
}

and use in the npc Script

if (#language == 1) {
Germany Text
} else {
Englisch Text
}

z.b

Map_Name,137,174,6	script	PvP Warper	447,{


//PvP Warper
if (#language == 1) {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Möchtest du die PvP Arena betreten ?";
} else {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Do you want to enter the PvP Arena ?";
}
next;
switch(select("Normal PvP [^000088"+getmapusers("n_pvp")+"^000000]","Hardcore PvP [^000088"+getmapusers("artz_pvp")+"^000000]","Test PvP [^000088"+getmapusers("norm_pvp")+"^000000]","^ff0000Close^000000")) {
case 1:
if (countitem(22011)<1) goto NOPASS;
if (#language == 1) {
announce ""+strcharinfo(0)+" ist in die PvP Arena eingetreten !", bc_map;
} else {
announce ""+strcharinfo(0)+" has occurred in the PvP Arena !", bc_map;
}
warp "n_pvp",0,0;
close;
case 2:
if (#language == 1) {
announce ""+strcharinfo(0)+" ist in die Hardcore PvP Arena eingetreten!", bc_map;
} else {
announce ""+strcharinfo(0)+" has occurred in the Hardcore PvP Aren !", bc_map;
}
warp "artz_pvp",0,0;
close;
case 3:
if (countitem(22011)<1) goto NOPASS;
warp "norm_pvp",0,0;
close;
case 4:
if (#language == 1) {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Dann eben nicht.";
} else {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Then just not.";
}
close; }

NOPASS:
if (#language == 1) {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Du benötigst einen PvP Pass um in die PvP Arena zu gelangen.";
} else {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "You need a PvP pass to enter the PvP Arena.";
}
next;
if (#language == 1) {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Sprich mit dem PvP Pass Master.";
} else {
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Talk to the PvP Pass Master.";
}
close;
OnInit:
waitingroom "PvP Arena",0;
end;
}

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