private uint _Language;
public uint Language
{
get
{
return _Language;
}
set
{
_Language = value;
if (Player != null)
if (Player.FullyLoaded)
Player.UpdateDatabase("Language", value);
}
}
client.Language = reader.ReadUInt32("Language");
.Set("Language", c.Language)
#region Language
case 12819981:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Language == 1)//English
{
dialog.Text("Hello " + client.Player.Name + " Im Changer Language Npc .");
dialog.Text("Choose Your Language.");
dialog.Option("English", 1);
dialog.Option("Arabic", 2);
dialog.Option("Thanks", 255);
}
if (client.Language == 2)//عربى
{
dialog.Text("اهلا " + client.Player.Name + " انا الذي اغير لك لغه العبة");
dialog.Text("اختار اللغه الخاصه بك");
dialog.Option("انجليزي", 1);
dialog.Option("عربي", 2);
dialog.Option("شكرا", 255);
}
dialog.Avatar(218);
dialog.Send();
break;
}
case 1:
{
if (client.Language != 1)//English
{
client.Language = 1;//English
}
else
{
dialog.Text("Sorry your Language already English.");
dialog.Option("Arabic", 2);
dialog.Option("Thanks", 255);
}
}
break;
case 2:
{
if (client.Language != 2)//عربى
{
client.Language = 2;//عربى
}
else
{
dialog.Text("آسف لغتك بالفعل العربية.");
dialog.Option("انجليزي", 1);
dialog.Option("شكرا", 255);
}
}
break;
}
break;
}
#endregion