Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.19 KB | None | 0 0
  1.        #region Chi Npc Full stages By AboGamil
  2.                 case 11121992:
  3.                     {
  4.                         switch (npcRequest.OptionID)
  5.                         {
  6.                             case 0:
  7.                                 {
  8.                                     if (client.Entity.Reborn == 0 || (client.Entity.Reborn == 1 && client.Entity.Level < 110))
  9.                                     {
  10.                                         dialog.Text("Sorry But You Don't Have chi Yet.");
  11.                                         dialog.Option("I'll think about it! Level 140", 255);
  12.                                         dialog.Send();
  13.                                         return;
  14.                                     }
  15.                                     dialog.Text("Chi Powers");
  16.                                     dialog.Option("gemy", 1);
  17.                                     dialog.Send();
  18.                                     break;
  19.                                 }
  20.                             case 1:
  21.                                 {
  22.                                     if (client.ChiPowers.Count < 3)
  23.                                     {
  24.                                         Chi chi = new Chi(true);
  25.                                         for (byte i = 1; i < 5; i++)
  26.                                         {
  27.                                             foreach (var power in client.ChiPowers)
  28.                                                 if (power.Power == (Enums.ChiPowerType)i) return;
  29.  
  30.                                             chi.Mode = (Enums.ChiPowerType)i;
  31.                                             client.ChiPowers.Add(new Game.ConquerStructures.ChiPowerStructure(chi.Mode));
  32.                                             client.Send(new ChiPowers(true).Query(client));
  33.                                             ChiTable.Save(client);
  34.                                             Network.GamePackets.Chi.StudyChi(chi, client);
  35.                                         }
  36.                                     }
  37.                                     byte index = 1;
  38.                                     string num = "";
  39.                                     repeat:
  40.                                     for (byte i = 1; i < 5; i++)
  41.                                     {
  42.                                         if (i == 1) num = "1";
  43.                                         if (i == 2) num = "4";
  44.                                         if (i == 3) num = "6";
  45.                                         if (i == 4) num = "7";
  46.  
  47.                                         MsgChat.CheckCommand(string.Format("@matrixchi {0} {1} {2}", index, i, num), client);
  48.                                     }
  49.                                     while (index < 4)
  50.                                     {
  51.                                         index++;
  52.                                         goto repeat;
  53.                                     }
  54.                                     Database.ChiTable.Save(client);
  55.                                     break;
  56.                                 }
  57.                         }
  58.                         break;
  59.                     }
  60.  
  61.                 #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement