Advertisement
Guest User

Mohamed M Ahmed

a guest
Mar 24th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 27.90 KB | None | 0 0
  1. #region [ Epic Ninja Quest ]
  2.                     case 3849:
  3.                         {
  4.                             switch (client.ActiveNpc)
  5.                             {
  6.                                 #region DivineAnthony
  7.                                 case 10660:
  8.                                     {
  9.                                         switch (npcRequest.OptionID)
  10.                                         {
  11.                                             case 0:
  12.                                                 {
  13.                                                     dialog.Text("Perhaps, it`s the fate. The Life`s Eye throbbed after sinking in silence for years. If you`re able to complete the 3 trials,");
  14.                                                     dialog.Text("~you`ll win the Life`s Eye. With this mythical eye, you can transform your katana into an Epic weapon.");
  15.  
  16.                                                     dialog.Option("Take~Yin~Yang~Stele.~(1st)", 1);
  17.                                                     dialog.Option("Go~for~Elemental~Guard.~(2nd)", 2);
  18.                                                     dialog.Option("Go~for~Wheel~of~Life.~(3rd)", 3);
  19.                                                     dialog.Option("Tell~me~more.", 4);
  20.                                                     dialog.Option("Leave~the~Infinite~Abyss.", 5);
  21.                                                     dialog.Option("Close.", 255);
  22.                                                     dialog.Avatar(204);
  23.                                                     dialog.Send();
  24.                                                     break;
  25.                                                 }
  26.                                             case 1:
  27.                                                 {
  28.                                                     Data datapacket = new Data(true);
  29.                                                     datapacket.UID = client.Entity.UID;
  30.                                                     datapacket.ID = 162;
  31.                                                     datapacket.TimeStamp2 = 10657;
  32.                                                     datapacket.wParam1 = 36;
  33.                                                     datapacket.wParam2 = 36;
  34.                                                     client.Send(datapacket);
  35.                                                     break;
  36.                                                 }
  37.                                             case 2:
  38.                                                 {
  39.                                                     if (!client.Inventory.Contains(3004462, 1))
  40.                                                     {
  41.                                                         dialog.Text("To continue the 2nd trial and awaken the Elemental Guard, you should have a Yin Yang Seal. Go challenge the 1st trial, and fetch the seal from the Yin Yang Stele!");
  42.  
  43.                                                         dialog.Option("Okay.", 255);
  44.                                                         dialog.Avatar(204);
  45.                                                         dialog.Send();
  46.                                                     }
  47.                                                     else
  48.                                                     {
  49.                                                         client.Inventory.Remove(3004462, 1);
  50.                                                         if (Kernel.Rate(10))
  51.                                                         {
  52.                                                             client.Inventory.Add(3004463, 0, 1);
  53.                                                         }
  54.                                                         else
  55.                                                         {
  56.                                                             if (Kernel.Rate(100))
  57.                                                             {
  58.                                                                 ushort r = (ushort)Kernel.Random.Next(1, 10);
  59.                                                                 client.MessageBox("Try~Again!~But~You~Got~"+r+"~Stardust");
  60.                                                                 client.Inventory.Add(3004465, 0, r);
  61.                                                             }
  62.                                                             else
  63.                                                             {
  64.                                                                 client.MessageBox("Failed!~Try~Again!");
  65.                                                             }
  66.                                                         }
  67.                                                     }
  68.                                                     break;
  69.                                                 }
  70.                                             case 3:
  71.                                                 {
  72.                                                     if (!client.Inventory.Contains(3004463, 1))
  73.                                                     {
  74.                                                         dialog.Text("To continue the 3rd trial and activate the Wheel of Life, you should have the Elemental Jade. Go challenge the 2nd trial, and take the jade from the Elemental Guard!");
  75.  
  76.                                                         dialog.Option("Okay.", 255);
  77.                                                         dialog.Avatar(204);
  78.                                                         dialog.Send();
  79.                                                     }
  80.                                                     else
  81.                                                     {
  82.                                                         client.Inventory.Remove(3004463, 1);
  83.                                                         if (Kernel.Rate(10))
  84.                                                         {
  85.  
  86.                                                             client.Inventory.Add(3004464, 0, 1);
  87.                                                         }
  88.                                                         else
  89.                                                         {
  90.                                                             if (Kernel.Rate(100))
  91.                                                             {
  92.                                                                 client.MessageBox("Try~Again!~But~You~Got~1~Stardust");
  93.                                                                 client.Inventory.Add(3004465, 0, 10);
  94.                                                             }
  95.                                                             else
  96.                                                             {
  97.                                                                 client.MessageBox("Failed!~Try~Again!");
  98.                                                             }
  99.                                                         }
  100.                                                     }
  101.                                                     break;
  102.                                                 }
  103.                                             case 5:
  104.                                                 {
  105.                                                     client.Entity.Teleport(1004, 40, 43);
  106.                                                     break;
  107.                                                 }
  108.                                             case 4:
  109.                                                 {
  110.                                                     dialog.Text("There are 3 trials in the Infinite Abyss: Yin Yang Stele, Elemental Guard, and the Wheel of Life.\n");
  111.                                                     dialog.Text("1. Use 4 Red Flowers and 4 White Flowers to balance the energy, and fetch the Yin Yang Seal from the Yin Yang Stele.\n");
  112.                                                     dialog.Text("2. Awaken the Elemental Guard with the Yin Yang Seal, and follow the elements to get the Elemental Jade.\n");
  113.                                                     dialog.Text("3. Activate the Wheel of Life with the Elemental Jade. Get rid of the wheel to win the Life`s Eye.\n\n");
  114.                                                     dialog.Text("The Life`s Eye can be used to transform your katana into an Epic weapon.\n\n");
  115.  
  116.                                                     dialog.Option("I~see.", 255);
  117.                                                     dialog.Avatar(204);
  118.                                                     dialog.Send();
  119.                                                     break;
  120.                                                 }
  121.                                         }
  122.                                         break;
  123.                                     }
  124.                                 #endregion
  125.                                 #region YinYangStele
  126.                                 case 10657:
  127.                                     {
  128.                                         switch (npcRequest.OptionID)
  129.                                         {
  130.                                             case 0:
  131.                                                 {
  132.                                                     dialog.Text("There are two paths of unstable energy in this stele. You can challenge it with 4 Red Flowers and 4 White Flowers, everyday.");
  133.                                                     dialog.Text("~These flowers grow at the Evil Abyss (2nd Rebirth Quest).");
  134.  
  135.                                                     dialog.Option("Balance~the~energy.", 1);
  136.                                                     dialog.Option("Entrust~the~job.", 3);
  137.                                                     dialog.Option("Leave.", 255);
  138.                                                     dialog.Avatar(204);
  139.                                                     dialog.Send();
  140.                                                     break;
  141.                                                 }
  142.                                             case 1:
  143.                                                 {
  144.                                                     if (!client.Inventory.Contains(722732, 4) || !client.Inventory.Contains(722736, 4))
  145.                                                     {
  146.                                                         dialog.Text("You should have 4 Red Flowers and 4 White Flowers to balance the energy in the Stele. Make sure you have enough flowers with you!");
  147.  
  148.                                                         dialog.Option("Alright.", 255);
  149.                                                         dialog.Option("Use~the~power~of~CPs.~(27~CPs)", 2);
  150.                                                         dialog.Avatar(204);
  151.                                                         dialog.Send();
  152.                                                     }
  153.                                                     else
  154.                                                     {
  155.                                                         if (Kernel.Rate(10))
  156.                                                         {
  157.                                                             client.Inventory.Remove(722732, 4);
  158.                                                             client.Inventory.Remove(722736, 4);
  159.                                                             client.Inventory.Add(3004462, 0, 1);
  160.                                                         }
  161.                                                         else
  162.                                                         {
  163.                                                             client.Inventory.Remove(722732, 4);
  164.                                                             client.Inventory.Remove(722736, 4);
  165.                                                             if (Kernel.Rate(35))
  166.                                                             {
  167.                                                                 client.MessageBox("Try~Again!~But~You~Got~1~Stardust");
  168.                                                                 client.Inventory.Add(3004465, 0, 1);
  169.                                                             }
  170.                                                             else
  171.                                                             {
  172.                                                                 client.MessageBox("Failed!~Try~Again!");
  173.                                                             }
  174.                                                         }
  175.                                                     }
  176.                                                     break;
  177.                                                 }
  178.                                             case 2:
  179.                                                 {
  180.                                                     if (client.Entity.ConquerPoints >= 27)
  181.                                                     {
  182.                                                         client.Entity.ConquerPoints -= 27;
  183.                                                         if (Kernel.Rate(10))
  184.                                                         {
  185.                                                             client.Inventory.Add(3004462, 0, 1);
  186.                                                         }
  187.                                                         else
  188.                                                         {
  189.                                                             if (Kernel.Rate(35))
  190.                                                             {
  191.                                                                 client.MessageBox("Try~Again!~But~You~Got~1~Stardust");
  192.                                                                 client.Inventory.Add(3004465, 0, 1);
  193.                                                             }
  194.                                                             else
  195.                                                             {
  196.                                                                 client.MessageBox("Failed!~Try~Again!");
  197.                                                             }
  198.                                                         }
  199.                                                     }
  200.                                                     else
  201.                                                     {
  202.                                                         client.MessageBox("You~don`t~have~enough~CPs~to~balance~the~energy~in~the~Stele.");
  203.                                                     }
  204.                                                     break;
  205.                                                 }
  206.                                             case 3:
  207.                                                 {
  208.                                                     dialog.Text("It`ll cost you 27 CPs to entrust the whole balancing work. Have you decided?");
  209.  
  210.                                                     dialog.Option("Yeah,~here~are~27~CPs.", 2);
  211.                                                     dialog.Option("No,~I~changed~my~mind.", 255);
  212.                                                     dialog.Avatar(203);
  213.                                                     dialog.Send();
  214.                                                     break;
  215.                                                 }
  216.                                         }
  217.                                         break;
  218.                                     }
  219.                                 #endregion
  220.                                 #region Swapper
  221.                                 case 10663:
  222.                                     {
  223.                                         switch (npcRequest.OptionID)
  224.                                         {
  225.                                             case 0:
  226.                                                 {
  227.                                                     dialog.Text("If you  happen to collect some Stardust in the Infinite Abyss, you can swap them for treasures with me.");
  228.  
  229.                                                     dialog.Option("Skill~scroll~(for~skill~learning)", 1);
  230.                                                     dialog.Option("1200~Chi~Points.~(5~Stardust)", 2);
  231.                                                     dialog.Option("3~Protection~Pills.~(1~Stardust)", 3);
  232.                                                     dialog.Option("10~Free~Courses.~(2~Stardust)", 4);
  233.                                                     dialog.Option("Swap~scroll~for~Stardust.", 5);
  234.                                                     dialog.Option("I`ll~think~about~it.", 255);
  235.                                                     dialog.Avatar(206);
  236.                                                     dialog.Send();
  237.                                                     break;
  238.                                                 }
  239.                                             case 1:
  240.                                                 {
  241.                                                     dialog.Text("I have 3 kinds of Ninja skill scrolls: \nAnthony Scroll: Use it to learn Ninja`s class skill, [Anthony Clone].\nTwilight Scroll: ");
  242.                                                     dialog.Text("~Use it to learn an active skill for Ninja`s Epic Weapon, [Twilight Dance].\nFatal Scroll: Use it to learn a passive skill for");
  243.                                                     dialog.Text("~Ninja`s Epic Weapon, [Fatal Spin]\n\nMake your choice wisely.\n\n");
  244.  
  245.                                                     dialog.Option("Anthony~Scroll.~(1~Stardust)", 6);
  246.                                                     dialog.Option("Fatal~Scroll.~(10~Stardust)", 7);
  247.                                                     dialog.Option("Twilight~Scroll.~(20~Stardust)", 8);
  248.                                                     dialog.Option("Previous.", 3);
  249.                                                     dialog.Avatar(206);
  250.                                                     dialog.Send();
  251.                                                     break;
  252.                                                 }
  253.                                             case 6:
  254.                                                 {
  255.                                                     if (client.Inventory.Contains(3004465, 1))
  256.                                                     {
  257.                                                         client.Inventory.Remove(3004465, 1);
  258.                                                         client.Inventory.Add(3004459, 0, 1);
  259.                                                     }
  260.                                                     else
  261.                                                     {
  262.                                                         client.MessageBox("You~don`t~have~enough~Stardust~for~this~Ninja~skill~scroll.");
  263.                                                     }
  264.                                                     break;
  265.                                                 }
  266.                                             case 7:
  267.                                                 {
  268.                                                     if (client.Inventory.Contains(3004465, 10))
  269.                                                     {
  270.                                                         client.Inventory.Remove(3004465, 10);
  271.                                                         client.Inventory.Add(3004461, 0, 1);
  272.                                                     }
  273.                                                     else
  274.                                                     {
  275.                                                         client.MessageBox("You~don`t~have~enough~Stardust~for~this~Ninja~skill~scroll.");
  276.                                                     }
  277.                                                     break;
  278.                                                 }
  279.                                             case 8:
  280.                                                 {
  281.                                                     if (client.Inventory.Contains(3004465, 20))
  282.                                                     {
  283.                                                         client.Inventory.Remove(3004465, 20);
  284.                                                         client.Inventory.Add(3004460, 0, 1);
  285.                                                     }
  286.                                                     else
  287.                                                     {
  288.                                                         client.MessageBox("You~don`t~have~enough~Stardust~for~this~Ninja~skill~scroll.");
  289.                                                     }
  290.                                                     break;
  291.                                                 }
  292.                                             case 2:
  293.                                                 {
  294.                                                     if (client.Inventory.Contains(3004465, 5))
  295.                                                     {
  296.                                                         client.Inventory.Remove(3004465, 5);
  297.                                                         client.ChiPoints += 1200;
  298.                                                     }
  299.                                                     else
  300.                                                     {
  301.                                                         client.MessageBox("You~don`t~have~enough~Stardust~for~1,200~Chi~Points.");
  302.                                                     }
  303.                                                     break;
  304.                                                 }
  305.                                             case 3:
  306.                                                 {
  307.                                                     if (client.Inventory.Contains(3004465, 1))
  308.                                                     {
  309.                                                         client.Inventory.Remove(3004465, 1);
  310.                                                         client.Inventory.Add(3002029, 0, 3);
  311.                                                     }
  312.                                                     else
  313.                                                     {
  314.                                                         client.MessageBox("You~don`t~have~enough~Stardust~for~3~Protection~Pills.");
  315.                                                     }
  316.                                                     break;
  317.                                                 }
  318.                                             case 4:
  319.                                                 {
  320.                                                     if (client.Entity.MyJiang != null)
  321.                                                     {
  322.                                                         if (client.Inventory.Contains(3004465, 21))
  323.                                                         {
  324.                                                             client.Inventory.Remove(3004465, 2);
  325.                                                             client.Entity.MyJiang.FreeCourse += 100000;
  326.                                                             client.Entity.MyJiang.SendInfo(client, Network.GamePackets.JiangHu.UpdateTime, client.Entity.MyJiang.FreeCourse.ToString(), client.Entity.MyJiang.Time.ToString());
  327.                                                         }
  328.                                                         else
  329.                                                         {
  330.                                                             client.MessageBox("You~don`t~have~enough~Stardust~for~10~Free~Courses~of~Jiang~Hu.");
  331.                                                         }
  332.                                                     }
  333.                                                     break;
  334.                                                 }
  335.                                             case 5:
  336.                                                 {
  337.                                                     dialog.Text("Which Ninja skill scroll would you like to use to exchange for the Stardust?");
  338.  
  339.                                                     dialog.Option("Anthony~Scroll.~(1~Stardust)", 9);
  340.                                                     dialog.Option("Fatal~Scroll.~(10~Stardust)", 10);
  341.                                                     dialog.Option("Twilight~Scroll.~(20~Stardust)", 11);
  342.                                                     dialog.Option("Previous.", 0);
  343.                                                     dialog.Avatar(206);
  344.                                                     dialog.Send();
  345.                                                     break;
  346.                                                 }
  347.                                             case 9:
  348.                                                 {
  349.                                                     if (client.Inventory.Contains(3004459, 1))
  350.                                                     {
  351.                                                         client.Inventory.Remove(3004459, 1);
  352.                                                         client.Inventory.Add(3004465, 0, 1);
  353.                                                     }
  354.                                                     else
  355.                                                     {
  356.                                                         client.MessageBox("Failed~to~exchange.~You~don`t~have~that~Ninja~skill~scroll.");
  357.                                                     }
  358.                                                     break;
  359.                                                 }
  360.                                             case 10:
  361.                                                 {
  362.                                                     if (client.Inventory.Contains(3004461, 1))
  363.                                                     {
  364.                                                         client.Inventory.Remove(3004461, 1);
  365.                                                         client.Inventory.Add(3004465, 0, 10);
  366.                                                     }
  367.                                                     else
  368.                                                     {
  369.                                                         client.MessageBox("Failed~to~exchange.~You~don`t~have~that~Ninja~skill~scroll.");
  370.                                                     }
  371.                                                     break;
  372.                                                 }
  373.                                             case 11:
  374.                                                 {
  375.                                                     if (client.Inventory.Contains(3004460, 1))
  376.                                                     {
  377.                                                         client.Inventory.Remove(3004460, 1);
  378.                                                         client.Inventory.Add(3004465, 0, 20);
  379.                                                     }
  380.                                                     else
  381.                                                     {
  382.                                                         client.MessageBox("Failed~to~exchange.~You~don`t~have~that~Ninja~skill~scroll.");
  383.                                                     }
  384.                                                     break;
  385.                                                 }
  386.                                         }
  387.                                         break;
  388.                                     }
  389.                                 #endregion
  390.                             }
  391.                             break;
  392.                         }
  393.                     #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement