Advertisement
Jh0n-K3v1n

Auto Skill TQ

Sep 17th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 32.69 KB | None | 0 0
  1. using COServer.Interfaces;  
  2. using COServer.Network.GamePackets;  
  3.  
  4. namespace COServer.Game  
  5. {  
  6.     public unsafe class MsgAutoGiveMagic  
  7.     {  
  8.         public static bool effx = false;  
  9.         public static ISkill LearnableMagic(ushort MagicID)  
  10.         {  
  11.             ISkill Magic = new MsgMagicInfo(true);  
  12.             Magic.ID = MagicID;  
  13.             return Magic;  
  14.         }  
  15.         public static void Check(Client.GameState c)
  16.         {
  17.  
  18.             #region Trojan Promotion
  19.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class==10))
  20.                 {
  21.                     c.Player.Class = 11;
  22.                 }
  23.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class==11))
  24.             {
  25.                 c.Player.Class = 12;
  26.             }
  27.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 12))
  28.             {
  29.                 c.Player.Class = 13;
  30.             }
  31.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 13))
  32.             {
  33.                 c.Player.Class = 15;
  34.             }
  35.  
  36.             #endregion
  37.             #region Trojan
  38.             if (c.Player.Class >= 10 && c.Player.Class <= 15)  
  39.             {  
  40.                 if (c.Player.Level >= 40)  
  41.                 {
  42.  
  43.                     if (c.Player.Class >= 11)
  44.                     if (!c.Spells.ContainsKey(1110)) { c.AddSpell(LearnableMagic(1110)); effx = true; }  
  45.                     if (!c.Spells.ContainsKey(1015)) { c.AddSpell(LearnableMagic(1015)); effx = true; }  
  46.                     if (!c.Spells.ContainsKey(11970)) { c.AddSpell(LearnableMagic(11970)); effx = true; }  
  47.                     if (!c.Spells.ContainsKey(11990)) { c.AddSpell(LearnableMagic(11990)); effx = true; }  
  48.                     if (!c.Spells.ContainsKey(11980)) { c.AddSpell(LearnableMagic(11980)); effx = true; }  
  49.                     if (!c.Spells.ContainsKey(1115)) { c.AddSpell(LearnableMagic(1115)); effx = true; }  
  50.                     if (!c.Spells.ContainsKey(1270)) { c.AddSpell(LearnableMagic(1270)); effx = true; }  
  51.                     if (!c.Spells.ContainsKey(1190)) { c.AddSpell(LearnableMagic(1190)); effx = true; }  
  52.                 }  
  53.                 if (c.Player.Level >= 90)  
  54.                 {  
  55.                     if (!c.Spells.ContainsKey(11960)) { c.AddSpell(LearnableMagic(11960)); effx = true; }  
  56.                 }  
  57.             }  
  58.             #endregion  
  59.             #region Warrior Promotion
  60.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 20))
  61.             {
  62.                 c.Player.Class = 21;
  63.             }
  64.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class == 21))
  65.             {
  66.                 c.Player.Class = 22;
  67.             }
  68.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 22))
  69.             {
  70.                 c.Player.Class = 23;
  71.             }
  72.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 23))
  73.             {
  74.                 c.Player.Class = 25;
  75.             }
  76.  
  77.             #endregion
  78.             #region Warrior
  79.             if (c.Player.Class >= 20 && c.Player.Class <= 25)  
  80.             {  
  81.                 if (c.Player.Level >= 40)  
  82.                 {  
  83.                     if (!c.Spells.ContainsKey(11200)) { c.AddSpell(LearnableMagic(11200)); effx = true; }  
  84.                     if (!c.Spells.ContainsKey(10470)) { c.AddSpell(LearnableMagic(10470)); effx = true; }  
  85.                     if (!c.Spells.ContainsKey(1025)) { c.AddSpell(LearnableMagic(1025)); effx = true; }  
  86.                     if (!c.Spells.ContainsKey(1020)) { c.AddSpell(LearnableMagic(1020)); effx = true; }  
  87.                     if (!c.Spells.ContainsKey(1015)) { c.AddSpell(LearnableMagic(1015)); effx = true; }
  88.                     if (!c.Spells.ContainsKey(12770)) { c.AddSpell(LearnableMagic(12770)); effx = true; }
  89.                     if (!c.Spells.ContainsKey(12670)) { c.AddSpell(LearnableMagic(12670)); effx = true; }
  90.                     if (!c.Spells.ContainsKey(12700)) { c.AddSpell(LearnableMagic(12700)); effx = true; }
  91.                     if (!c.Spells.ContainsKey(10311)) { c.AddSpell(LearnableMagic(10311)); effx = true; }
  92.                     if (!c.Spells.ContainsKey(1045)) { c.AddSpell(LearnableMagic(1045)); effx = true; }
  93.                     if (!c.Spells.ContainsKey(1046)) { c.AddSpell(LearnableMagic(1046)); effx = true; }
  94.                 }  
  95.                 if (c.Player.Level >= 61)  
  96.                 {
  97.                     if (!c.Spells.ContainsKey(12680)) { c.AddSpell(LearnableMagic(12680)); effx = true; }
  98.                     if (!c.Spells.ContainsKey(1051)) { c.AddSpell(LearnableMagic(1051)); effx = true; }  
  99.                 }  
  100.                 if (c.Player.Level >= 70)  
  101.                 {
  102.                     if (!c.Spells.ContainsKey(12660)) { c.AddSpell(LearnableMagic(12660)); effx = true; }
  103.                     if (!c.Spells.ContainsKey(12690)) { c.AddSpell(LearnableMagic(12690)); effx = true; }
  104.                     if (!c.Spells.ContainsKey(11160)) { c.AddSpell(LearnableMagic(11160)); effx = true; }  
  105.                 }  
  106.             }  
  107.             #endregion  
  108.             #region Archer Promotion
  109.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 40))
  110.             {
  111.                 c.Player.Class = 41;
  112.             }
  113.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class == 41))
  114.             {
  115.                 c.Player.Class = 42;
  116.             }
  117.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 42))
  118.             {
  119.                 c.Player.Class = 43;
  120.             }
  121.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 43))
  122.             {
  123.                 c.Player.Class = 45;
  124.             }
  125.  
  126.             #endregion
  127.             #region Archer
  128.             if (c.Player.Class >= 40 && c.Player.Class <= 45)  
  129.             {  
  130.                 if (c.Player.Level >= 1)  
  131.                 {  
  132.                     if (!c.Spells.ContainsKey(8002)) { c.AddSpell(LearnableMagic(8002)); effx = true; }  
  133.                 }  
  134.                 if (c.Player.Level >= 23)  
  135.                 {  
  136.                     if (!c.Spells.ContainsKey(8001)) { c.AddSpell(LearnableMagic(8001)); effx = true; }  
  137.                 }  
  138.                 if (c.Player.Level >= 40)  
  139.                 {  
  140.                     if (!c.Spells.ContainsKey(8000)) { c.AddSpell(LearnableMagic(8000)); effx = true; }  
  141.                 }  
  142.                 if (c.Player.Level >= 70)  
  143.                 {  
  144.                     if (!c.Spells.ContainsKey(8003)) { c.AddSpell(LearnableMagic(8003)); effx = true; }  
  145.                     if (!c.Spells.ContainsKey(9000)) { c.AddSpell(LearnableMagic(9000)); effx = true; }  
  146.                     if (!c.Spells.ContainsKey(8030)) { c.AddSpell(LearnableMagic(8030)); effx = true; }  
  147.                 }  
  148.                 if (c.Player.Level >= 100)  
  149.                 {  
  150.  
  151.                     if (c.Spells[8003].Level < 1)  
  152.                     {  
  153.                         ISkill spell = new MsgMagicInfo(true);  
  154.                         spell.ID = 8003;  
  155.                         spell.Level = 1;  
  156.                         c.AddSpell(spell);  
  157.                         effx = true;  
  158.                     }  
  159.  
  160.                 }  
  161.             }  
  162.             if (c.Player.Class >= 41 && c.Player.Class <= 45)  
  163.             {  
  164.                 if (c.Player.Level >= 40)  
  165.                 {  
  166.                     if (!c.Spells.ContainsKey(11620)) { c.Send(new MsgTalk("Congratulations! You now hold the knowledge of this path!.", MsgTalk.System)); c.AddSpell(LearnableMagic(11620)); effx = true; }  
  167.                     if (!c.Spells.ContainsKey(11610)) { c.AddSpell(LearnableMagic(11610)); effx = true; }  
  168.                     if (!c.Spells.ContainsKey(11660)) { c.AddSpell(LearnableMagic(11660)); effx = true; }  
  169.                 }  
  170.                 if (c.Player.Level >= 50)  
  171.                 {  
  172.                     if (!c.Spells.ContainsKey(11590)) { c.AddSpell(LearnableMagic(11590)); effx = true; }  
  173.                 }  
  174.                 if (c.Player.Level >= 70)  
  175.                 {  
  176.                     if (!c.Spells.ContainsKey(11650)) { c.AddSpell(LearnableMagic(11650)); effx = true; }  
  177.                 }  
  178.                 if (c.Player.Level >= 90)  
  179.                 {  
  180.                     if (!c.Spells.ContainsKey(11670)) { c.AddSpell(LearnableMagic(11670)); effx = true; }  
  181.                 }  
  182.                 if (c.Player.Level >= 100)  
  183.                 {  
  184.                     if (!c.Spells.ContainsKey(11600)) { c.AddSpell(LearnableMagic(11600)); effx = true; }  
  185.                 }  
  186.             }  
  187.             #endregion  
  188.             #region Ninja Promotion
  189.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 50))
  190.             {
  191.                 c.Player.Class = 51;
  192.             }
  193.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class == 51))
  194.             {
  195.                 c.Player.Class = 52;
  196.             }
  197.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 52))
  198.             {
  199.                 c.Player.Class = 53;
  200.             }
  201.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 53))
  202.             {
  203.                 c.Player.Class = 55;
  204.             }
  205.  
  206.             #endregion
  207.             #region Ninja
  208.             if (c.Player.Class >= 50 && c.Player.Class <= 55)  
  209.             {  
  210.                 if (c.Player.Level >= 15)  
  211.                 {  
  212.                     if (!c.Spells.ContainsKey(6011)) { c.AddSpell(LearnableMagic(6011)); effx = true; }  
  213.                     if (!c.Spells.ContainsKey(12070)) { c.AddSpell(LearnableMagic(12070)); effx = true; }  
  214.                     if (!c.Spells.ContainsKey(12110)) { c.AddSpell(LearnableMagic(12110)); effx = true; }  
  215.                 }  
  216.                 if (c.Player.Level >= 20)  
  217.                 {  
  218.                     if (!c.Spells.ContainsKey(11170)) { c.AddSpell(LearnableMagic(11170)); effx = true; }  
  219.                     if (!c.Spells.ContainsKey(11180)) { c.AddSpell(LearnableMagic(11180)); effx = true; }  
  220.                 }  
  221.                 if (c.Player.Level >= 40)
  222.                 {    
  223.                     if (!c.Spells.ContainsKey(6011)) { c.AddSpell(LearnableMagic(6011)); effx = true; }
  224.                     if (!c.Spells.ContainsKey(6000)) { c.AddSpell(LearnableMagic(6000)); effx = true; }  
  225.                     if (!c.Spells.ContainsKey(12090)) { c.AddSpell(LearnableMagic(12090)); effx = true; }  
  226.                     if (!c.Spells.ContainsKey(12080)) { c.AddSpell(LearnableMagic(12080)); effx = true; }  
  227.                     if (!c.Spells.ContainsKey(11230)) { c.AddSpell(LearnableMagic(11230)); effx = true; }  
  228.                 }  
  229.                 if (c.Player.Level >= 70)  
  230.                 {    
  231.                     if (!c.Spells.ContainsKey(6001)) { c.AddSpell(LearnableMagic(6001)); effx = true; }
  232.                     if (!c.Spells.ContainsKey(6002)) { c.AddSpell(LearnableMagic(6002)); effx = true; }
  233.                     if (!c.Spells.ContainsKey(6003)) { c.AddSpell(LearnableMagic(6003)); effx = true; }  
  234.                     if (!c.Spells.ContainsKey(6010)) { c.AddSpell(LearnableMagic(6010)); effx = true; }  
  235.                 }  
  236.                 if (c.Player.Level >= 110)  
  237.                 {  
  238.                     if (!c.Spells.ContainsKey(6004)) { c.AddSpell(LearnableMagic(6004)); effx = true; }  
  239.                     if (c.Player.Reborn == 2 && c.Player.Class == 55 && c.Player.SecondRebornClass == 55 && c.Player.FirstRebornClass == 55)  
  240.                     {  
  241.                         if (!c.Spells.ContainsKey(12090)) { c.AddSpell(LearnableMagic(12090)); effx = true; }  
  242.                     }  
  243.                 }  
  244.             }  
  245.             #endregion  
  246.             #region Monk Promotion
  247.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 60))
  248.             {
  249.                 c.Player.Class = 61;
  250.             }
  251.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class == 61))
  252.             {
  253.                 c.Player.Class = 62;
  254.             }
  255.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 62))
  256.             {
  257.                 c.Player.Class = 63;
  258.             }
  259.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 63))
  260.             {
  261.                 c.Player.Class = 65;
  262.             }
  263.  
  264.             #endregion
  265.             #region Monk
  266.             if (c.Player.Class >= 60 && c.Player.Class <= 65)  
  267.             {  
  268.                 if (c.Player.Level >= 5)  
  269.                 {  
  270.                     if (!c.Spells.ContainsKey(10490)) { c.AddSpell(LearnableMagic(10490)); effx = true; }  
  271.                 }  
  272.                 if (c.Player.Level >= 15)  
  273.                 {  
  274.                     if (!c.Spells.ContainsKey(10390)) { c.AddSpell(LearnableMagic(10390)); effx = true; }  
  275.                     if (!c.Spells.ContainsKey(10415)) { c.AddSpell(LearnableMagic(10415)); effx = true; }  
  276.                 }  
  277.                 if (c.Player.Level >= 20)  
  278.                 {  
  279.                     if (!c.Spells.ContainsKey(10395)) { c.AddSpell(LearnableMagic(10395)); effx = true; }  
  280.                     if (!c.Spells.ContainsKey(10410)) { c.AddSpell(LearnableMagic(10410)); effx = true; }  
  281.                 }  
  282.                 if (c.Player.Level >= 40)  
  283.                 {  
  284.                     if (!c.Spells.ContainsKey(10381)) { c.AddSpell(LearnableMagic(10381)); effx = true; }  
  285.                     if (!c.Spells.ContainsKey(10400)) { c.AddSpell(LearnableMagic(10400)); effx = true; }  
  286.                 }  
  287.                 if (c.Player.Level >= 70)  
  288.                 {  
  289.                     if (!c.Spells.ContainsKey(10425)) { c.AddSpell(LearnableMagic(10425)); effx = true; }  
  290.                 }  
  291.                 if (c.Player.Level >= 100)  
  292.                 {  
  293.                     if (!c.Spells.ContainsKey(10420)) { c.AddSpell(LearnableMagic(10420)); effx = true; }  
  294.                     if (!c.Spells.ContainsKey(10421)) { c.AddSpell(LearnableMagic(10421)); effx = true; }  
  295.                     if (!c.Spells.ContainsKey(10422)) { c.AddSpell(LearnableMagic(10422)); effx = true; }  
  296.                     if (!c.Spells.ContainsKey(10423)) { c.AddSpell(LearnableMagic(10423)); effx = true; }  
  297.                     if (!c.Spells.ContainsKey(10424)) { c.AddSpell(LearnableMagic(10424)); effx = true; }  
  298.                     if (!c.Spells.ContainsKey(10430)) { c.AddSpell(LearnableMagic(10430)); effx = true; }
  299.                 }
  300.                 if (c.Player.Level >= 140)
  301.                 {
  302.                     if (!c.Spells.ContainsKey(12570)) { c.AddSpell(LearnableMagic(12570)); effx = true; }
  303.                     if (!c.Spells.ContainsKey(12550)) { c.AddSpell(LearnableMagic(12550)); effx = true; }
  304.                     if (!c.Spells.ContainsKey(12560)) { c.AddSpell(LearnableMagic(12560)); effx = true; }  
  305.                 }  
  306.             }  
  307.             #endregion  
  308.             #region Pirate Promotion
  309.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 70))
  310.             {
  311.                 c.Player.Class = 71;
  312.             }
  313.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class == 71))
  314.             {
  315.                 c.Player.Class = 72;
  316.             }
  317.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 72))
  318.             {
  319.                 c.Player.Class = 73;
  320.             }
  321.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 73))
  322.             {
  323.                 c.Player.Class = 75;
  324.             }
  325.  
  326.             #endregion
  327.             #region Pirate
  328.             if (c.Player.Class >= 70 && c.Player.Class <= 75)  
  329.             {
  330.                 if (c.Player.Level >= 1)
  331.                 {
  332.                     if (!c.Spells.ContainsKey(11030)) { c.AddSpell(LearnableMagic(11030)); effx = true; }
  333.                     if (!c.Spells.ContainsKey(11050)) { c.AddSpell(LearnableMagic(11050)); effx = true; }
  334.                 }
  335.                 if (c.Player.Level >= 15)  
  336.                 {  
  337.                     if (!c.Spells.ContainsKey(11140)) { c.AddSpell(LearnableMagic(11140)); effx = true; }  
  338.                 }  
  339.                 if (c.Player.Level >= 40)  
  340.                 {  
  341.                     if (!c.Spells.ContainsKey(11060)) { c.AddSpell(LearnableMagic(11060)); effx = true; }  
  342.                     if (!c.Spells.ContainsKey(11110)) { c.AddSpell(LearnableMagic(11110)); effx = true; }  
  343.                     if (!c.Spells.ContainsKey(11130)) { c.AddSpell(LearnableMagic(11130)); effx = true; }  
  344.                     if (!c.Spells.ContainsKey(11070)) { c.AddSpell(LearnableMagic(11070)); effx = true; }  
  345.                     if (!c.Spells.ContainsKey(11120)) { c.AddSpell(LearnableMagic(11120)); effx = true; }  
  346.                 }  
  347.                 if (c.Player.Level >= 70)  
  348.                 {  
  349.                     if (c.Player.Reborn >= 1 && c.Player.FirstRebornClass == 75)  
  350.                     {  
  351.                         if (!c.Spells.ContainsKey(11100)) { c.AddSpell(LearnableMagic(11100)); effx = true; }  
  352.                     }
  353.                 }
  354.                 if (c.Player.Level >= 70)
  355.                 {
  356.                     if (c.Player.Class >= 70 && c.Player.FirstRebornClass >= 72 && c.Player.FirstRebornClass <= 75 && c.Player.SecondRebornClass >= 72 && c.Player.SecondRebornClass <= 75)
  357.                     {
  358.                         if (!c.Spells.ContainsKey(11040)) { c.AddSpell(LearnableMagic(11040)); effx = true; }
  359.                     }  
  360.                 }  
  361.             }  
  362.             #endregion  
  363.             #region Water And Fire Promotion
  364.             #region Water
  365.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 100))
  366.             {
  367.                 c.Player.Class = 101;
  368.             }
  369.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 132))
  370.             {
  371.                 c.Player.Class = 133;
  372.             }
  373.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 133))
  374.             {
  375.                 c.Player.Class = 135;
  376.             }
  377.             #endregion
  378.             #region Fire
  379.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 100))
  380.             {
  381.                 c.Player.Class = 101;
  382.             }
  383.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 142))
  384.             {
  385.                 c.Player.Class = 143;
  386.             }
  387.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 143))
  388.             {
  389.                 c.Player.Class = 145;
  390.             }
  391.             #endregion
  392.             #endregion
  393.             #region Taoist
  394.             if (c.Player.Class >= 100 && c.Player.Class <= 101)  
  395.             {  
  396.                 if (!c.Spells.ContainsKey(1000)) { c.AddSpell(LearnableMagic(1000)); effx = true; }  
  397.                 if (!c.Spells.ContainsKey(1005)) { c.AddSpell(LearnableMagic(1005)); effx = true; }  
  398.                 if (c.Player.Level >= 40)  
  399.                 {  
  400.                     if (!c.Spells.ContainsKey(1195)) { c.AddSpell(LearnableMagic(1195)); effx = true; }  
  401.                 }  
  402.             }  
  403.             #region Water
  404.             if (c.Player.Class >= 132 && c.Player.Class <= 135)  
  405.             {  
  406.                 if (!c.Spells.ContainsKey(1000)) { c.AddSpell(LearnableMagic(1000)); effx = true; }  
  407.                 if (!c.Spells.ContainsKey(1005)) { c.AddSpell(LearnableMagic(1005)); effx = true; }  
  408.                 if (!c.Spells.ContainsKey(12390)) { c.AddSpell(LearnableMagic(12390)); c.Send(new MsgTalk("Congratulations! You have learned BlessingTouch Epic Skill For Water.", MsgTalk.System)); effx = true; }  
  409.                 if (!c.Spells.ContainsKey(12370)) { c.AddSpell(LearnableMagic(12370)); c.Send(new MsgTalk("Congratulations! You have learned AuroraLotus Epic Skill For Water.", MsgTalk.System)); effx = true; }  
  410.                 if (c.Player.Class >= 132 && c.Player.FirstRebornClass >= 132 && c.Player.SecondRebornClass >= 132)  
  411.                 {  
  412.                     if (!c.Spells.ContainsKey(30000)) { c.AddSpell(LearnableMagic(30000)); effx = true; }  
  413.                 }  
  414.                 if (c.Player.Level >= 40)  
  415.                 {  
  416.                     if (!c.Spells.ContainsKey(10309)) { c.AddSpell(LearnableMagic(10309)); effx = true; }  
  417.                     if (!c.Spells.ContainsKey(1195)) { c.AddSpell(LearnableMagic(1195)); effx = true; }  
  418.                     if (!c.Spells.ContainsKey(1055)) { c.AddSpell(LearnableMagic(1055)); effx = true; }  
  419.                     if (!c.Spells.ContainsKey(1085)) { c.AddSpell(LearnableMagic(1085)); effx = true; }  
  420.                     if (!c.Spells.ContainsKey(1090)) { c.AddSpell(LearnableMagic(1090)); effx = true; }  
  421.                     if (!c.Spells.ContainsKey(1095)) { c.AddSpell(LearnableMagic(1095)); effx = true; }  
  422.                     if (!c.Spells.ContainsKey(1125)) { c.AddSpell(LearnableMagic(1125)); effx = true; }  
  423.                     if (!c.Spells.ContainsKey(1010)) { c.AddSpell(LearnableMagic(1010)); effx = true; }  
  424.                     if (!c.Spells.ContainsKey(1050)) { c.AddSpell(LearnableMagic(1050)); effx = true; }  
  425.                 }  
  426.                 if (c.Player.Level >= 70)  
  427.                 {  
  428.                     if (!c.Spells.ContainsKey(1075)) { c.AddSpell(LearnableMagic(1075)); effx = true; }  
  429.                     if (!c.Spells.ContainsKey(1100)) { c.AddSpell(LearnableMagic(1100)); effx = true; }  
  430.                 }  
  431.                 if (c.Player.Level >= 80)  
  432.                 {  
  433.                     if (!c.Spells.ContainsKey(1175)) { c.AddSpell(LearnableMagic(1175)); effx = true; }  
  434.                     if (!c.Spells.ContainsKey(10309)) { c.AddSpell(LearnableMagic(10309)); effx = true; }  
  435.                 }  
  436.                 if (c.Player.Level >= 94)  
  437.                 {  
  438.                     if (!c.Spells.ContainsKey(1170)) { c.AddSpell(LearnableMagic(1170)); effx = true; }  
  439.                 }  
  440.             }  
  441.             else  
  442.             {  
  443.                 if (c.Spells.ContainsKey(12390)) { c.RemoveSpell(LearnableMagic(12390)); }  
  444.                 if (c.Spells.ContainsKey(12370)) { c.RemoveSpell(LearnableMagic(12370)); }  
  445.             }  
  446.             #endregion  
  447.             #region Fire
  448.             if (c.Player.Class >= 142 && c.Player.Class <= 145)  
  449.             {  
  450.                 if (!c.Spells.ContainsKey(1125)) { c.AddSpell(LearnableMagic(1125)); effx = true; }  
  451.                 if (!c.Spells.ContainsKey(1010)) { c.AddSpell(LearnableMagic(1010)); effx = true; }  
  452.                 if (!c.Spells.ContainsKey(5001)) { c.AddSpell(LearnableMagic(5001)); effx = true; }  
  453.                 if (!c.Spells.ContainsKey(1005)) { c.AddSpell(LearnableMagic(1005)); effx = true; }  
  454.                 if (!c.Spells.ContainsKey(10310)) { c.AddSpell(LearnableMagic(10310)); effx = true; }  
  455.                 if (!c.Spells.ContainsKey(12380)) { c.AddSpell(LearnableMagic(12380)); c.Send(new MsgTalk("Congratulations! You have learned FlameLotus Epic Skill For Fire.", MsgTalk.System)); effx = true; }  
  456.                 if (!c.Spells.ContainsKey(12400)) { c.AddSpell(LearnableMagic(12400)); c.Send(new MsgTalk("Congratulations! You have learned BreakingTouch Epic Skill For Fire.", MsgTalk.System)); effx = true; }  
  457.                 if (c.Player.Class >= 142 && c.Player.FirstRebornClass >= 142 && c.Player.SecondRebornClass >= 142)  
  458.                 {  
  459.                     if (!c.Spells.ContainsKey(10310)) { c.AddSpell(LearnableMagic(10310)); effx = true; }  
  460.                 }  
  461.                 if (c.Player.Level >= 40)  
  462.                 {  
  463.                     if (!c.Spells.ContainsKey(1195)) { c.AddSpell(LearnableMagic(1195)); effx = true; }  
  464.                     if (!c.Spells.ContainsKey(10309)) { c.AddSpell(LearnableMagic(10309)); effx = true; }  
  465.                 }  
  466.                 if (c.Player.Level >= 52)  
  467.                 {  
  468.                     if (!c.Spells.ContainsKey(1150)) { c.AddSpell(LearnableMagic(1150)); effx = true; }  
  469.                 }  
  470.                 if (c.Player.Level >= 55)  
  471.                 {  
  472.                     if (!c.Spells.ContainsKey(1180)) { c.AddSpell(LearnableMagic(1180)); effx = true; }  
  473.                 }  
  474.                 if (c.Player.Level >= 48)  
  475.                 {  
  476.                     if (!c.Spells.ContainsKey(1120)) { c.AddSpell(LearnableMagic(1120)); effx = true; }  
  477.                     if (!c.Spells.ContainsKey(1165)) { c.AddSpell(LearnableMagic(1165)); effx = true; }  
  478.                 }  
  479.                 if (c.Player.Level >= 43)  
  480.                 {  
  481.                     if (!c.Spells.ContainsKey(1160)) { c.AddSpell(LearnableMagic(1160)); effx = true; }  
  482.                 }  
  483.                 if (c.Player.Level >= 81)  
  484.                 {  
  485.                     if (c.Spells.ContainsKey(1001) && c.Spells[1001] != null && c.Spells[1001].Level == 3)  
  486.                     {  
  487.                         if (!c.Spells.ContainsKey(1002)) { c.AddSpell(LearnableMagic(1002)); effx = true; }  
  488.                     }  
  489.                 }  
  490.             }  
  491.             else  
  492.             {  
  493.                 if (c.Spells.ContainsKey(12380)) { c.RemoveSpell(LearnableMagic(12380)); }  
  494.                 if (c.Spells.ContainsKey(12400)) { c.RemoveSpell(LearnableMagic(12400)); }  
  495.             }  
  496.             #endregion  
  497.             #endregion  
  498.             #region Dragon-Warrior Promotion
  499.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 80))
  500.             {
  501.                 c.Player.Class = 81;
  502.             }
  503.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class == 81))
  504.             {
  505.                 c.Player.Class = 82;
  506.             }
  507.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 82))
  508.             {
  509.                 c.Player.Class = 83;
  510.             }
  511.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 83))
  512.             {
  513.                 c.Player.Class = 85;
  514.             }
  515.  
  516.             #endregion
  517.             #region Dragon-Warrior  
  518.             if (c.Player.Class >= 80 && c.Player.Class <= 85)  
  519.             {  
  520.                 if (c.Player.Class >= 80 && c.Player.FirstRebornClass >= 85 && c.Player.SecondRebornClass >= 85)  
  521.                 {  
  522.                     if (!c.Spells.ContainsKey(12300)) { c.AddSpell(LearnableMagic(12300)); effx = true; }  
  523.                 }  
  524.                 if (c.Player.Level >= 3)  
  525.                 {  
  526.                     if (!c.Spells.ContainsKey(12290)) { c.AddSpell(LearnableMagic(12290)); effx = true; }
  527.                 }
  528.                 if (c.Player.Level >= 15)
  529.                 {
  530.                     if (!c.Spells.ContainsKey(12320)) { c.AddSpell(LearnableMagic(12320)); effx = true; }
  531.                     if (!c.Spells.ContainsKey(12330)) { c.AddSpell(LearnableMagic(12330)); effx = true; }
  532.                     if (!c.Spells.ContainsKey(12340)) { c.AddSpell(LearnableMagic(12340)); effx = true; }
  533.                     if (!c.Spells.ContainsKey(12270)) { c.AddSpell(LearnableMagic(12270)); effx = true; }  
  534.                 }  
  535.                 if (c.Player.Level >= 40)
  536.                 {//  12280   12200  
  537.                     if (!c.Spells.ContainsKey(12240)) { c.AddSpell(LearnableMagic(12240)); effx = true; }
  538.                     if (!c.Spells.ContainsKey(12220)) { c.AddSpell(LearnableMagic(12220)); effx = true; }
  539.                     if (!c.Spells.ContainsKey(12210)) { c.AddSpell(LearnableMagic(12210)); effx = true; }
  540.                     if (!c.Spells.ContainsKey(12290)) { c.AddSpell(LearnableMagic(12290)); effx = true; }
  541.                     if (!c.Spells.ContainsKey(12120)) { c.AddSpell(LearnableMagic(12240)); effx = true; }
  542.                     if (!c.Spells.ContainsKey(12130)) { c.AddSpell(LearnableMagic(12220)); effx = true; }
  543.                     if (!c.Spells.ContainsKey(12140)) { c.AddSpell(LearnableMagic(12210)); effx = true; }
  544.                 }
  545.                 if (c.Player.Level >= 70)
  546.                 {
  547.                     if (!c.Spells.ContainsKey(12160)) { c.AddSpell(LearnableMagic(12160)); effx = true; }
  548.                     if (!c.Spells.ContainsKey(12280)) { c.AddSpell(LearnableMagic(12280)); effx = true; }
  549.                     if (!c.Spells.ContainsKey(12200)) { c.AddSpell(LearnableMagic(12200)); effx = true; }
  550.                 }
  551.                 if (c.Player.Level >= 100)
  552.                 {
  553.                     if (!c.Spells.ContainsKey(12170)) { c.AddSpell(LearnableMagic(12170)); effx = true; }
  554.                     if (!c.Spells.ContainsKey(12350)) { c.AddSpell(LearnableMagic(12350)); effx = true; }  
  555.                
  556.                 }  
  557.             }  
  558.             #endregion  
  559.             #region WindwalkerLord Promotion
  560.             if ((c.Player.Level >= 40 && c.Player.Level <= 70) && (c.Player.Class == 160))
  561.             {
  562.                 c.Player.Class = 161;
  563.             }
  564.             if ((c.Player.Level >= 70 && c.Player.Level <= 100) && (c.Player.Class == 161))
  565.             {
  566.                 c.Player.Class = 162;
  567.             }
  568.             if ((c.Player.Level >= 100 && c.Player.Level <= 110) && (c.Player.Class == 162))
  569.             {
  570.                 c.Player.Class = 163;
  571.             }
  572.             if ((c.Player.Level >= 110 && c.Player.Level <= 120) && (c.Player.Class == 163))
  573.             {
  574.                 c.Player.Class = 165;
  575.             }
  576.  
  577.             #endregion
  578.             #region WindwalkerLord
  579.             if (c.Player.Class >= 160 && c.Player.Class <= 165)
  580.             {
  581.                 if (c.Player.Level >= 1)
  582.                 {
  583.                     if (!c.Spells.ContainsKey(12980)) { c.AddSpell(LearnableMagic(12980)); effx = true; }
  584.                 }
  585.                 if (c.Player.Level >= 3)
  586.                 {
  587.                     if (!c.Spells.ContainsKey(12860)) { c.AddSpell(LearnableMagic(12860)); effx = true; }
  588.                     if (!c.Spells.ContainsKey(12870)) { c.AddSpell(LearnableMagic(12870)); effx = true; }
  589.                 }
  590.                 if (c.Player.Level >= 15)
  591.                 {
  592.                     if (!c.Spells.ContainsKey(12940)) { c.AddSpell(LearnableMagic(12940)); effx = true; }
  593.                     if (!c.Spells.ContainsKey(12950)) { c.AddSpell(LearnableMagic(12950)); effx = true; }
  594.                     if (!c.Spells.ContainsKey(12890)) { c.AddSpell(LearnableMagic(12890)); effx = true; }
  595.                     if (!c.Spells.ContainsKey(13090)) { c.AddSpell(LearnableMagic(13090)); effx = true; }
  596.                 }
  597.                 if (c.Player.Level >= 40)
  598.                 {
  599.                     if (!c.Spells.ContainsKey(12930)) { c.AddSpell(LearnableMagic(12930)); effx = true; }
  600.                     if (!c.Spells.ContainsKey(12990)) { c.AddSpell(LearnableMagic(12990)); effx = true; }
  601.                     if (!c.Spells.ContainsKey(12850)) { c.AddSpell(LearnableMagic(12850)); effx = true; }
  602.                 }
  603.                 if (c.Player.Level >= 70)
  604.                 {
  605.                     if (!c.Spells.ContainsKey(12960)) { c.AddSpell(LearnableMagic(12960)); effx = true; }
  606.                     if (!c.Spells.ContainsKey(13000)) { c.AddSpell(LearnableMagic(13000)); effx = true; }
  607.                     if (!c.Spells.ContainsKey(12840)) { c.AddSpell(LearnableMagic(12840)); effx = true; }
  608.                 }
  609.                 if (c.Player.Level >= 100)
  610.                 {
  611.                     if (!c.Spells.ContainsKey(13030)) { c.AddSpell(LearnableMagic(13030)); effx = true; }
  612.                     if (!c.Spells.ContainsKey(13020)) { c.AddSpell(LearnableMagic(13020)); effx = true; }
  613.                     if (!c.Spells.ContainsKey(12970)) { c.AddSpell(LearnableMagic(12970)); effx = true; }
  614.                 }
  615.             }
  616.             #endregion  
  617.             if (effx)  
  618.             {  
  619.                 MsgName str = new MsgName(true);  
  620.                 str.UID = c.Player.UID;  
  621.                 str.TextsCount = 1;  
  622.                 str.Action = MsgName.Mode.Effect;  
  623.                 str.Texts.Add("end_task");  
  624.                 c.SendScreen(str, true);  
  625.                 effx = false;  
  626.             }  
  627.         }  
  628.     }  
  629. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement