Jump to content
  • 0

Question about language


FrogiiKon

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/31/21
  • Last Seen:  

//=========
//english
//=========
 

Good day, I have a question about languages in scripts.
I have a language NPC that gives the player the choice to select a language.

set language0 for English and set language1 for German.


Example Npc:

alberta,97,51,0 script Fabian 84,{
switch (language) {

case 0: // English
     mes "[Fabian]";
     mes "Man... When you travel all around the world, you'll hear of some crazy things.";
     close;
case 1: // Deutsch
    mes "[Fabian]";
    mes "Wenn du um die ganze Welt reist, wirst du von einigen verrückten Dingen hören.";
    close;
}
}

Now my question is:
How does this work with mapannounce and OnTimer?
A great example would be the airship. I would really appreciate any answers.

Edited by Mael
Use codebox & only english
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   11
  • Joined:  12/16/11
  • Last Seen:  

In official europe server, they announced the same message in different languages, but npcs was personal language. 

The solution would be to use something like:

get all online players
for and attachrid
now charVar works
if english .@message$ in english
if german .@message$ in german
announce .@message$, bc_self;

That should work because I did something like that for announce to all guild members from guild leaders but I tested something with OnTimer but it didn't attach player rids, but you can try your way. 

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