Dual Language

OverLord

New member
Messages
168
Points
0
Age
36
Location
Brazil
Emulator
<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>

 
Last edited by a moderator:
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.

 
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?
default_que.gif
  this is already declared when i create an account and choose my country ?
default_que.gif


 
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

 
or simply use HULD




 
Back
Top