Advertisement
Guest User

Npc Change Language By T3Alo

a guest
Apr 10th, 2019
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.36 KB | None | 0 0
  1. #region Language
  2.                     case 1281998:
  3.                         {
  4.                             switch (npcRequest.OptionID)
  5.                             {
  6.                                 //Mahmoud Mohamed
  7.                                 //www.facebook.com/T3Alo41
  8.                                 //01021775529
  9.                                 case 0:
  10.                                     {
  11.                                         dialog.Text("Hello " + client.Player.Name + " Im Changer Language Npc ." ,AccountTable.LanG.en);
  12.                                         dialog.Text("أهلا وسهلآ يا " + client.Player.Name + " انا المسؤال عن تغير اللغه لك .", AccountTable.LanG.ar);
  13.                                         dialog.Text("Choose Your Language.",AccountTable.LanG.en);
  14.                                         dialog.Text("اختار اللغه التى تريد تغيرها", AccountTable.LanG.ar);
  15.                                         dialog.Option("English", 1,AccountTable.LanG.en);
  16.                                         dialog.Option("انجليزى", 1, AccountTable.LanG.ar);
  17.                                         dialog.Option("Arabic", 2, AccountTable.LanG.en);
  18.                                         dialog.Option("عربى", 2, AccountTable.LanG.ar);
  19.                                         dialog.Avatar(218);
  20.                                         dialog.Send();
  21.                                         break;
  22.                                     }
  23.                                 case 1:
  24.                                     {
  25.                                         if (client.Player.LanG == AccountTable.LanG.ar)//عربى
  26.                                         {
  27.                                             client.Player.LanG = AccountTable.LanG.en;//English
  28.                                         }
  29.                                         else
  30.                                         {
  31.                                             dialog.Text("آسف لغتك بالفعل العربية.",AccountTable.LanG.ar);
  32.                                             dialog.Option("انجليزي", 1,AccountTable.LanG.ar);
  33.                                             dialog.Option("شكرا", 255,AccountTable.LanG.ar);
  34.                                         }
  35.  
  36.                                     }
  37.                                     break;
  38.                                 case 2:
  39.                                     {
  40.                                         if (client.Player.LanG == AccountTable.LanG.en)//English
  41.                                         {
  42.                                             client.Player.LanG = AccountTable.LanG.ar;//عربى
  43.                                         }
  44.                                         else
  45.                                         {
  46.                                             dialog.Text("Sorry your Language already English.");
  47.                                             dialog.Option("Arabic", 2,AccountTable.LanG.en);
  48.                                             dialog.Option("Thanks", 255,AccountTable.LanG.en);
  49.                                         }
  50.  
  51.                                     }
  52.                                     break;
  53.                             }
  54.                             break;
  55.                         }
  56.                     #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement