Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Language
- case 1281998:
- {
- switch (npcRequest.OptionID)
- {
- //Mahmoud Mohamed
- //www.facebook.com/T3Alo41
- //01021775529
- case 0:
- {
- dialog.Text("Hello " + client.Player.Name + " Im Changer Language Npc ." ,AccountTable.LanG.en);
- dialog.Text("أهلا وسهلآ يا " + client.Player.Name + " انا المسؤال عن تغير اللغه لك .", AccountTable.LanG.ar);
- dialog.Text("Choose Your Language.",AccountTable.LanG.en);
- dialog.Text("اختار اللغه التى تريد تغيرها", AccountTable.LanG.ar);
- dialog.Option("English", 1,AccountTable.LanG.en);
- dialog.Option("انجليزى", 1, AccountTable.LanG.ar);
- dialog.Option("Arabic", 2, AccountTable.LanG.en);
- dialog.Option("عربى", 2, AccountTable.LanG.ar);
- dialog.Avatar(218);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (client.Player.LanG == AccountTable.LanG.ar)//عربى
- {
- client.Player.LanG = AccountTable.LanG.en;//English
- }
- else
- {
- dialog.Text("آسف لغتك بالفعل العربية.",AccountTable.LanG.ar);
- dialog.Option("انجليزي", 1,AccountTable.LanG.ar);
- dialog.Option("شكرا", 255,AccountTable.LanG.ar);
- }
- }
- break;
- case 2:
- {
- if (client.Player.LanG == AccountTable.LanG.en)//English
- {
- client.Player.LanG = AccountTable.LanG.ar;//عربى
- }
- else
- {
- dialog.Text("Sorry your Language already English.");
- dialog.Option("Arabic", 2,AccountTable.LanG.en);
- dialog.Option("Thanks", 255,AccountTable.LanG.en);
- }
- }
- break;
- }
- break;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement