Jump to content
  • 0
OverLord

Dual Language

Question

<p>Someone could make a plugin that supports Linux (I use a server with CentOS6). To check the account db and load different translated NPC files ?</p>

Edited by OverLord

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Load different npc?

maybe you can add checks like if (LANG == 1) fetch all english texts, and save to variable, if (LANG==2) fetch other lamg texts.

and use those variables in mes.

Share this post


Link to post
Share on other sites
  • 0

Load different npc?

maybe you can add checks like if (LANG == 1) fetch all english texts, and save to variable, if (LANG==2) fetch other lamg texts.

and use those variables in mes.

 

But the variable LANG, where should I declare it? :que:  this is already declared when i create an account and choose my country ? :que:

Share this post


Link to post
Share on other sites
  • 0

Hey there, i see this is an Old Topic but i will explain my Solution for this :P

I wrote an NPC who asked the Player whish Language the player will use at his first Login (even if they are an old player and dont set an variable)

the player choose an option and got the var #langset,1. and #lang.

if the player hasnt set anything, he dont got the var #langset and OnPCLoginEvent detect this one so the Player will ask.

if the player choose one, the #lang var will set 0 or 1(Different Languages, 0 is the default one)

and the npc detect this while i use:

mes(!#lang)?"Hey there i am the Default Language!:Hey there i am the Second Language!";

Mes scriptcommand - (var)? "If the var is triggered:if the var isnt triggered";

this works fine for me :)

 

Sorry for my bad english :X

Share this post


Link to post
Share on other sites
  • 0
On 5/14/2019 at 9:41 PM, Ridley said:

or simply use HULD

 

This exist since 2015 and me didnt know. -.-

I did started in 2016 a project in my old server like Zarbony and other comments in this topic. My team did translater many NPCs... Y-Y

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.