Advertisement
Guest User

Untitled

a guest
Jun 29th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 83.72 KB | None | 0 0
  1.         private void ParseData(string mMode, string mLine, Boolean Button)
  2.         {
  3.             Parsed = false;
  4.  
  5.             ChatMode = mMode;
  6.             RawLine = Line = mLine;
  7.  
  8.             lType = "";
  9.             tCaused = "";
  10.             tAffected = "";
  11.             tDefeats = "";
  12.             tDefeated = "";
  13.             tAbility = "";
  14.             tMonster = "";
  15.             tDirection = "";
  16.             bodyPart = "";
  17.             tDamage = "";
  18.             damageType = "";
  19.             food = "";
  20.             gaveItem = "";
  21.             tDrop = "";
  22.             expType = "";
  23.             expValue = "";
  24.             expJob = "";
  25.             rlaValue = "";
  26.             rlaType = "";
  27.             tRegimen = "";
  28.             tStatus = "";
  29.             tSRGainLose = "";
  30.  
  31.             switch (ChatMode)
  32.             {
  33.                 #region " 0020 "
  34.                 case "0020":
  35.                     if (Line.IndexOf("You throw away") != -1)
  36.                     {
  37.                         lType = "Throw Away";
  38.                         break;
  39.                     }
  40.                     else if (Line.IndexOf("engaged") != -1 && Line.IndexOf("battle") == -1)
  41.                     {
  42.                         //mobx is engaged.
  43.                         //mobx has been engaged.
  44.                         lType = "Mob Engaged";
  45.                         if (Line.IndexOf(" has been engaged") != -1)
  46.                         {
  47.                             tMonster = Line.Substring(0, Line.IndexOf(" has"));
  48.                         }
  49.                         else if (Line.IndexOf(" is engaged") != -1)
  50.                         {
  51.                             tMonster = Line.Substring(0, Line.IndexOf(" is eng"));
  52.                         }
  53.                         else
  54.                         {
  55.                             break;
  56.                         }
  57.                         tMonster = tMonster.Replace("The ", "");
  58.                     }
  59.                     else if (Line.IndexOf("eats") != -1)
  60.                     {
  61.                         //playerx eats a foodx(,).
  62.                         lType = "You Eats";
  63.                         if (Line.Substring(0, 4) == "You ")
  64.                         {
  65.                             tCaused = You;
  66.                             Line = Line.Replace("You eat a ", "");
  67.  
  68.                             if (Line.Contains(", "))
  69.                             {
  70.                                 Line = Line.Substring(0, Line.IndexOf(", "));
  71.                             }
  72.                             else
  73.                             {
  74.                                 Line = Line.Substring(0, Line.IndexOf("."));
  75.                             }
  76.  
  77.                             food = Line;
  78.                         }
  79.                         else
  80.                         {
  81.                             lType = "Player Eats";
  82.                             tCaused = Line.Substring(0, Line.IndexOf(" eats"));
  83.  
  84.                             Line = Regex.Replace(Line, "\\w+\\s\\w+\\seats\\sa\\s", "");
  85.                             if (Line.Contains(", "))
  86.                             {
  87.                                 Line = Line.Substring(0, Line.IndexOf(", "));
  88.                             }
  89.                             else
  90.                             {
  91.                                 Line = Line.Substring(0, Line.IndexOf("."));
  92.                             }
  93.  
  94.                             food = Line;
  95.                         }
  96.                     }
  97.                     else if (Line.IndexOf("obtain") != -1)
  98.                     {
  99.                         if (Line.Contains("(")) { break; }
  100.                         //all party members obtain an x.
  101.                         //all party members obtain a x.
  102.                         //all party members obtain # x.
  103.                         //all party members obtain # gil.
  104.                         //you obtain an x.
  105.                         //you obtain x gil.
  106.                         //you obtain the x.
  107.  
  108.                         if (Line.Substring(0, 4) == "You ")
  109.                         {
  110.                             lType = "You Obtain";
  111.                             tCaused = You;
  112.                             Line = Regex.Replace(Line, ".+obtain\\s[a-z]+\\s.+of\\s", "");
  113.                             Line = Regex.Replace(Line,".+obtain\\s[a-z]+\\s","");
  114.                             Line = Regex.Replace(Line, ".+obtain\\s", "");
  115.                             Line = Line.Replace(".", "");
  116.                            
  117.                             tDrop = Line;
  118.                         }
  119.                         else if (Line.Substring(0, 3) == "All")
  120.                         {
  121.                             lType = "Party Obtains";
  122.                             tCaused = "All";
  123.                             Line = Regex.Replace(Line, ".+obtain\\s[a-z]+\\s", "");
  124.                             Line = Regex.Replace(Line, ".+obtain\\s", "");
  125.                             Line = Line.Replace(".", "");
  126.                            
  127.                             tDrop = Line;
  128.                         }
  129.                     }
  130.                     else if (Line.IndexOf("loot list") != -1)
  131.                     {
  132.                         //playerx's loot list now contains a x.
  133.                         //playerx's loot list now contains an x.
  134.                         //your loot list now contains a x.
  135.                         //your loot list now contains an x.
  136.  
  137.                         if (Line.IndexOf("Your ") != -1)
  138.                         {
  139.                             lType = "Your Loot";
  140.                             tCaused = You;
  141.                             Line = Regex.Replace(Line, ".+contains\\s[a-z]+\\s.+of\\s", "");
  142.                             Line = Regex.Replace(Line, ".+contains\\s[a-z]+\\s", "");
  143.                             Line = Regex.Replace(Line, ".+contains\\s", "");
  144.                             Line = Line.Replace(".", "");
  145.                            
  146.                             tDrop = Line;
  147.                         }
  148.                         else
  149.                         {
  150.                             lType = "Player Loot";
  151.                             tCaused = Line.Substring(0, Line.IndexOf("'s loot list"));
  152.                             Line = Regex.Replace(Line, ".+contains\\s[a-z]+\\s.+of\\s", "");
  153.                             Line = Regex.Replace(Line, ".+contains\\s[a-z]+\\s", "");
  154.                             Line = Regex.Replace(Line, ".+contains\\s", "");
  155.                             Line = Line.Replace(".", "");
  156.  
  157.                             tDrop = Line;
  158.                         }
  159.                     }
  160.                     else if (Line.IndexOf("gives") != -1)
  161.                     {
  162.                         lType = "Player Gives";
  163.                         //playerx gives x to playery
  164.                         //playerx gives x to you.
  165.                         tCaused = Line.Substring(0, Line.IndexOf(" gives"));
  166.                         tAffected = Line.Substring(Line.IndexOf(" to ") + 4).Replace(".", "");
  167.  
  168.                         gaveItem = Line.Substring(Line.IndexOf("gives ") + 6);
  169.                         gaveItem = gaveItem.Substring(0, gaveItem.IndexOf(" to "));
  170.                         gaveItem = gaveItem.Replace("the ", "");
  171.                     }
  172.                     else
  173.                     {
  174.                         break;
  175.                     }
  176.                     //outParse();
  177.                     Parsed = true;
  178.                     break;
  179.                 #endregion
  180.  
  181.                 #region " 0043 "
  182.                 case "0043":
  183.                     //you gain x experience points.
  184.                     //you gain x jobx skill points.
  185.  
  186.                     if (Line.IndexOf("gain") != -1)
  187.                     {
  188.                         lType = "You Gain";
  189.                         tCaused = You;
  190.  
  191.                         Line = Line.Replace("You gain ", "");
  192.                         Line = Line.Replace(" points.", "");
  193.  
  194.                         if (Line.IndexOf("skill") != -1)
  195.                         {
  196.                             Line = Line.Replace(" skill", "");
  197.                             string[] split = Line.Split(' ');
  198.                             expType = "Skill";
  199.                             expValue = split[0];
  200.                             expJob = split[1];
  201.                         }
  202.                         else if (Line.IndexOf("experience") != -1)
  203.                         {
  204.                             Line = Line.Replace(" experience", "");
  205.                             expType = "Physical";
  206.                             expValue = Line;
  207.                         }
  208.                     }
  209.                     else
  210.                     {
  211.                         break;
  212.                     }
  213.                     //outParse();
  214.                     Parsed = true;
  215.                     break;
  216.                 #endregion
  217.  
  218.                 #region " 0045 "
  219.                 case "0045":
  220.                     //mobx defeats playerx.
  221.                     //mobx defeats you.
  222.                     //mobx is defeated.
  223.                     //mobx party is defeated.
  224.                     //playerx defeats mobx.
  225.  
  226.                     if (Line.IndexOf("defeats you") != -1)
  227.                     {
  228.                         lType = "Defeat You";
  229.  
  230.                         Line = Line.Replace(" defeats you.", "");
  231.                         Line = Line.Replace("The ", "");
  232.  
  233.                         tDefeats = Line;
  234.                         tDefeated = You;
  235.                     }
  236.                     else if (Line.IndexOf("is defeated") != -1)
  237.                     {
  238.                         lType = "Mob Defeated";
  239.                         lType = "Defeated";
  240.                         Line = Line.Replace(" is defeated.", "");
  241.                         Line = Line.Replace("The ", "");
  242.  
  243.                         tDefeated = Line;
  244.                     }
  245.                     else if (Line.IndexOf(" defeats ") != -1)
  246.                     {
  247.                         lType = "X Defeats X";
  248.                         Line = Line.Replace(" defeats ", "|");
  249.                         Line = Line.Replace("The ", "");
  250.                         Line = Line.Replace(".", "");
  251.  
  252.                         split = Line.Split('|');
  253.                         tDefeats = split[0];
  254.                         tDefeated = split[1];
  255.                     }
  256.                     else
  257.                     {
  258.                         break;
  259.                     }
  260.                     //outParse();
  261.                     Parsed = true;
  262.                     break;
  263.                 #endregion
  264.  
  265.                 #region " 0050 "
  266.                 case "0050":
  267.                     tCaused = You;
  268.  
  269.                     if (Line.Contains("Critical!"))
  270.                     {
  271.                         //Critical! Your abilityx hits mobx from the dirx(rear, right, left) for x points of damage.
  272.                         //Critical! Your abilityx hits mobx for x points of damage.
  273.                         //Critical! Your abilityx hits mobx's partx for x points of damage.
  274.                         lType = "Critical Attack";
  275.                         Line = Line.Substring(10);
  276.                         damageType = "Critical";
  277.                     }
  278.  
  279.                     if (Line.ToLower().Substring(0, 4) == "your")
  280.                     {
  281.                         if (damageType == "") { damageType = "Normal"; lType = "Normal Attack"; }
  282.                         //your spellx hits mobx for x points of damage.
  283.                         //your spellx hits mobx's partx for x points of damage.
  284.                         //your abilityx hits mobx from the dirx(rear,right,left) for x points of damage.
  285.                         //your abilityx hits mobx for x points of damage.
  286.                         //your abilityx hits mobx's partx for x points of damage.
  287.  
  288.                         Line = Line.Replace("Your ", "");
  289.                         Line = Line.Replace(" hits ", "|");
  290.                         Line = Line.Replace(" from the ", "|");
  291.                         Line = Line.Replace(" for ", "|");
  292.                         Line = Line.Replace(" points of damage.", "");
  293.  
  294.                         index = Line.IndexOf("'s ");
  295.                         if (index != Line.LastIndexOf("'s "))
  296.                         {
  297.                             index = Line.LastIndexOf("'s ");
  298.                             Line = Line.Remove(index, 3).Insert(index, "|");
  299.                         }
  300.                         else
  301.                         {
  302.                             Line = Line.Replace("'s ", "|");
  303.                         }
  304.  
  305.                         split = Line.Split('|');
  306.  
  307.                         if (split.Length == 4)
  308.                         {
  309.                             tAbility = split[0];
  310.                             tMonster = split[1];
  311.                             tDirection = split[2];
  312.                             tDamage = split[3];
  313.                         }
  314.                         else if (split.Length == 3)
  315.                         {
  316.                             tAbility = split[0];
  317.                             tMonster = split[1];
  318.                             tDamage = split[2];
  319.                         }
  320.                         else
  321.                         {
  322.                             break;
  323.                         }
  324.  
  325.                         if (!defDirection.Contains(tDirection))
  326.                         {
  327.                             bodyPart = tDirection;
  328.                             tDirection = "";
  329.                         }
  330.                     }
  331.                     else if (Line.ToLower().Substring(0, 7) == "you use" && Line.Contains(" on "))
  332.                     {
  333.                         if (!Line.Contains("loses")) { break; }
  334.                         lType = "You Use. Mob Loses X";
  335.                         tCaused = You;
  336.                         //you use spellx on mobx. mobx loses x MP.
  337.                         //you use spellx on mobx. mobx loses x TP.
  338.                         //you use spellx on mobx. mobx loses x HP.
  339.  
  340.                         Line = Line.Replace("You use ", "");
  341.  
  342.                         tAbility = Line.Substring(0, Line.IndexOf(" on "));
  343.                         Line = Line.Substring(Line.IndexOf(" on ") + 4);
  344.  
  345.                         tMonster = Line.Substring(0, Line.IndexOf("."));
  346.                         Line = Line.Substring(Line.IndexOf(" loses ") + 7);
  347.                         Line = Line.Replace(".", "");
  348.  
  349.                         split = Line.Split(' ');
  350.  
  351.                         rlaValue = split[0];
  352.                         rlaType = "Loses " + split[1];
  353.                     }
  354.                     else if (Line.Contains("resists"))
  355.                     {
  356.                         lType = "Mob Resists Your X";
  357.                         //mobx partially resists your spellx, taking x points of damage.
  358.                         //mobx resists your spellx.
  359.  
  360.                         if (Line.Contains("partially"))
  361.                         {
  362.                             lType = "Partial Resist";
  363.                             tMonster = Line.Substring(0, Line.IndexOf(" partially"));
  364.                             Line = Line.Substring(Line.IndexOf(" your ") + 5);
  365.  
  366.                             tAbility = Line.Substring(0, Line.IndexOf(","));
  367.                             Line = Line.Substring(Line.IndexOf(", ") + 2);
  368.  
  369.                             Line = Line.Replace("taking ", "");
  370.                             Line = Line.Replace(" points of damage.", "");
  371.                             tDamage = Line;
  372.                         }
  373.                         else
  374.                         {
  375.                             tMonster = Line.Substring(0, Line.IndexOf(" resists"));
  376.                             Line = Line.Substring(Line.IndexOf(" your ") + 5);
  377.  
  378.                             tAbility = Line.Replace(".", "");
  379.                             tDamage = "0";
  380.                         }
  381.                     }
  382.                     else
  383.                     {
  384.                         break;
  385.                     }
  386.                     //outParse();
  387.                     Parsed = true;
  388.                     break;
  389.                 #endregion
  390.  
  391.                 #region " 0051 "
  392.                 case "0051":
  393.                     tCaused = You;
  394.  
  395.                     if (Line.Contains("Critical!"))
  396.                     {
  397.                         //Critical! mobx's ability/spellx hits you for x points of damage.
  398.                         //Critical! mobx's ability/spellx hits you from the dirx(rear,right,left) for x points of damage.
  399.                         lType = "Mob Critical Attack";
  400.                         Line = Line.Substring(10);
  401.                         damageType = "Critical";
  402.                     }
  403.  
  404.                     if (Line.Contains("Counter!"))
  405.                     {
  406.                         //Counter! you hit mobx for x points of damage.
  407.                         lType = "You Counter Mob";
  408.                         Line = Line.Substring(9);
  409.                         damageType = "Counter";
  410.  
  411.                         Line = Line.Replace("You hit ", "");
  412.                         tMonster = Line.Substring(0, Line.IndexOf(" for "));
  413.  
  414.                         Line = Line.Substring(Line.IndexOf(" for ") + 5);
  415.                         Line = Line.Replace(" points of damage.", "");
  416.                         tDamage = Line;
  417.                     }
  418.                     else if (Line.Contains(" hits you ") && Line.Contains("points of damage"))
  419.                     {
  420.                         //mobx's ability/spellx hits you for x points of damage.
  421.                         //mobx's ability/spellx hits you from the dirx(rear,right,left) for x points of damage.
  422.                         if (damageType == "") { damageType = "Normal"; lType = "Mob Normal Attack"; }
  423.  
  424.                         Line = Line.Replace(" hits you for ", "|");
  425.                         Line = Line.Replace(" hits you from the ", "|");
  426.                         Line = Line.Replace(" for ", "|");
  427.                         Line = Line.Replace(" points of damage.", "");
  428.  
  429.                         index = Line.IndexOf("'s ");
  430.                         if (index != Line.LastIndexOf("'s "))
  431.                         {
  432.                             index = Line.LastIndexOf("'s ");
  433.                             Line = Line.Remove(index, 3).Insert(index, "|");
  434.                         }
  435.                         else
  436.                         {
  437.                             Line = Line.Replace("'s ", "|");
  438.                         }
  439.  
  440.                         split = Line.Split('|');
  441.  
  442.                         if (split.Length == 4)
  443.                         {
  444.                             tMonster = split[0];
  445.                             tAbility = split[1];
  446.                             tDirection = split[2];
  447.                             tDamage = split[3];
  448.                         }
  449.                         else if (split.Length == 3)
  450.                         {
  451.                             tMonster = split[0];
  452.                             tAbility = split[1];
  453.                             tDamage = split[2];
  454.                         }
  455.                         else
  456.                         {
  457.                             break;
  458.                         }
  459.  
  460.                         if (!defDirection.Contains(tDirection))
  461.                         {
  462.                             bodyPart = tDirection;
  463.                             tDirection = "";
  464.                         }
  465.                     }
  466.                     else if (Line.Contains("resist"))
  467.                     {
  468.                         //you partially resist mobx's spellx, taking x points of damage.
  469.                         lType = "You Resist X";
  470.  
  471.                         if (Line.Contains("partially"))
  472.                         {
  473.                             lType = "Partial Resist";
  474.                             Line = Line.Replace(" points of damage.", "");
  475.                             Line = Line.Replace("You partially resist ", "");
  476.  
  477.                             tDamage = Line.Substring(Line.IndexOf("taking ") + 7);
  478.                             Line = Line.Substring(0, Line.IndexOf(","));
  479.  
  480.                             index = Line.IndexOf("'s ");
  481.                             if (index != Line.LastIndexOf("'s "))
  482.                             {
  483.                                 index = Line.LastIndexOf("'s ");
  484.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  485.                             }
  486.                             else
  487.                             {
  488.                                 Line = Line.Replace("'s ", "|");
  489.                             }
  490.  
  491.                             split = Line.Split('|');
  492.  
  493.                             tMonster = split[0];
  494.                             tAbility = split[1];
  495.                         }
  496.                         else
  497.                         {
  498.                             //you resist mobx's spellx.
  499.                             Line = Line.Replace("You resist ", "");
  500.  
  501.                             index = Line.IndexOf("'s ");
  502.                             if (index != Line.LastIndexOf("'s "))
  503.                             {
  504.                                 index = Line.LastIndexOf("'s ");
  505.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  506.                             }
  507.                             else
  508.                             {
  509.                                 Line = Line.Replace("'s ", "|");
  510.                             }
  511.  
  512.                             Line = Line.Replace(".", "");
  513.  
  514.                             split = Line.Split('|');
  515.  
  516.                             tMonster = split[0];
  517.                             tAbility = split[1];
  518.  
  519.                             tDamage = "0";
  520.                         }
  521.                     }
  522.                     else if (Line.Contains("parry") && Line.Contains("points of damage"))
  523.                     {
  524.                         lType = "You Parry X";
  525.                         if (Line.IndexOf("partially") != -1)
  526.                         {
  527.                             lType = "Partial Parry";
  528.                             //you partially parry mobx ability/spellx, taking x points of damage.
  529.                             //you partially parry mobx ability/spellx from the dirx(rear, right, left), taking x points of damage.
  530.  
  531.                             Line = Line.Replace(" points of damage.", "");
  532.                             Line = Line.Replace("You partially parry ", "");
  533.                             Line = Line.Replace(" from the ", "|");
  534.  
  535.                             tDamage = Line.Substring(Line.IndexOf("taking ") + 7);
  536.  
  537.                             Line = Line.Substring(0, Line.IndexOf(","));
  538.  
  539.                             index = Line.IndexOf("'s ");
  540.                             if (index != Line.LastIndexOf("'s "))
  541.                             {
  542.                                 index = Line.LastIndexOf("'s ");
  543.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  544.                             }
  545.                             else
  546.                             {
  547.                                 Line = Line.Replace("'s ", "|");
  548.                             }
  549.  
  550.                             split = Line.Split('|');
  551.  
  552.                             if (split.Length == 3)
  553.                             {
  554.                                 tMonster = split[0];
  555.                                 tAbility = split[1];
  556.                                 tDirection = split[2];
  557.                             }
  558.                             else if (split.Length == 2)
  559.                             {
  560.                                 tMonster = split[0];
  561.                                 tAbility = split[1];
  562.                             }
  563.                             else
  564.                             {
  565.                                 break;
  566.                             }
  567.  
  568.                             if (!defDirection.Contains(tDirection))
  569.                             {
  570.                                 bodyPart = tDirection;
  571.                                 tDirection = "";
  572.                             }
  573.                         }
  574.                         else
  575.                         {
  576.                             //you parry mobx's ability/spellx, taking x points of damage.
  577.  
  578.                             Line = Line.Replace(" points of damage.", "");
  579.                             Line = Line.Replace("You parry ", "");
  580.                             Line = Line.Replace(" from the ", "|");
  581.  
  582.                             tDamage = Line.Substring(Line.IndexOf("taking ") + 7);
  583.  
  584.                             Line = Line.Substring(0, Line.IndexOf(","));
  585.  
  586.                             index = Line.IndexOf("'s ");
  587.                             if (index != Line.LastIndexOf("'s "))
  588.                             {
  589.                                 index = Line.LastIndexOf("'s ");
  590.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  591.                             }
  592.                             else
  593.                             {
  594.                                 Line = Line.Replace("'s ", "|");
  595.                             }
  596.  
  597.                             split = Line.Split('|');
  598.  
  599.                             if (split.Length == 3)
  600.                             {
  601.                                 tMonster = split[0];
  602.                                 tAbility = split[1];
  603.                                 tDirection = split[2];
  604.                             }
  605.                             else if (split.Length == 2)
  606.                             {
  607.                                 tMonster = split[0];
  608.                                 tAbility = split[1];
  609.                             }
  610.                             else
  611.                             {
  612.                                 break;
  613.                             }
  614.  
  615.                             if (!defDirection.Contains(tDirection))
  616.                             {
  617.                                 bodyPart = tDirection;
  618.                                 tDirection = "";
  619.                             }
  620.                         }
  621.                     }
  622.                     else if (Line.Contains("block") && Line.Contains("points of damage"))
  623.                     {
  624.                         lType = "You Block X";
  625.                         if (Line.IndexOf("partially") != -1)
  626.                         {
  627.                             lType = "Partial Block";
  628.                             //you partially block mobx's ability/spellx, taking x points of damage.
  629.                             //you partially block mobx's ability/spellx from the dirx(rear, right, left), taking x points of damage.
  630.                             Line = Line.Replace(" points of damage.", "");
  631.                             Line = Line.Replace("You partially block ", "");
  632.                             Line = Line.Replace(" from the ", "|");
  633.  
  634.                             tDamage = Line.Substring(Line.IndexOf("taking ") + 7);
  635.  
  636.                             Line = Line.Substring(0, Line.IndexOf(","));
  637.  
  638.                             index = Line.IndexOf("'s ");
  639.                             if (index != Line.LastIndexOf("'s "))
  640.                             {
  641.                                 index = Line.LastIndexOf("'s ");
  642.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  643.                             }
  644.                             else
  645.                             {
  646.                                 Line = Line.Replace("'s ", "|");
  647.                             }
  648.  
  649.                             split = Line.Split('|');
  650.  
  651.                             if (split.Length == 3)
  652.                             {
  653.                                 tMonster = split[0];
  654.                                 tAbility = split[1];
  655.                                 tDirection = split[2];
  656.                             }
  657.                             else if (split.Length == 2)
  658.                             {
  659.                                 tMonster = split[0];
  660.                                 tAbility = split[1];
  661.                             }
  662.                             else
  663.                             {
  664.                                 break;
  665.                             }
  666.  
  667.                             if (!defDirection.Contains(tDirection))
  668.                             {
  669.                                 bodyPart = tDirection;
  670.                                 tDirection = "";
  671.                             }
  672.                         }
  673.                         else
  674.                         {
  675.                             //you block mobx's ability/spellx, taking x points of damage.
  676.                             //you block mobx's ability/spellx from the dirx(rear, right, left), taking x points of damage.
  677.  
  678.                             Line = Line.Replace(" points of damage.", "");
  679.                             Line = Line.Replace("You block ", "");
  680.                             Line = Line.Replace(" from the ", "|");
  681.  
  682.                             tDamage = Line.Substring(Line.IndexOf("taking ") + 7);
  683.  
  684.                             Line = Line.Substring(0, Line.IndexOf(","));
  685.  
  686.                             index = Line.IndexOf("'s ");
  687.                             if (index != Line.LastIndexOf("'s "))
  688.                             {
  689.                                 index = Line.LastIndexOf("'s ");
  690.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  691.                             }
  692.                             else
  693.                             {
  694.                                 Line = Line.Replace("'s ", "|");
  695.                             }
  696.  
  697.                             split = Line.Split('|');
  698.  
  699.                             if (split.Length == 3)
  700.                             {
  701.                                 tMonster = split[0];
  702.                                 tAbility = split[1];
  703.                                 tDirection = split[2];
  704.                             }
  705.                             else if (split.Length == 2)
  706.                             {
  707.                                 tMonster = split[0];
  708.                                 tAbility = split[1];
  709.                             }
  710.                             else
  711.                             {
  712.                                 break;
  713.                             }
  714.  
  715.                             if (!defDirection.Contains(tDirection))
  716.                             {
  717.                                 bodyPart = tDirection;
  718.                                 tDirection = "";
  719.                             }
  720.                         }
  721.                     }
  722.                     else
  723.                     {
  724.                         break;
  725.                     }
  726.  
  727.                     Parsed = true;
  728.                     break;
  729.                 #endregion
  730.  
  731.                 #region " 0052 "
  732.                 case "0052":
  733.                     //playerx stacks ability/spellx against mobx.
  734.  
  735.                     //mobx's partx is incapacitated.
  736.                     //playerx nocks an arrow.
  737.  
  738.                     if (Line.Contains("Critical!"))
  739.                     {
  740.                         //Critical! playerx's ability/spellx hits mobx from the dirx(rear,right,left) for x points of damage.
  741.                         //Critical! playerx's ability/spellx hits mobx for x points of damage.
  742.                         //Critical! playerx's ability/spellx hits mobx's partx for x points of damage.
  743.                         lType = "Player Critical Attack";
  744.                         Line = Line.Substring(10);
  745.                         damageType = "Critical";
  746.                     }
  747.  
  748.                     if (Line.Contains(" hits ") && Line.Contains(" for ") && Line.Contains(" points of damage."))
  749.                     {
  750.                         if (damageType == "") { damageType = "Normal"; lType = "Player Normal Attack"; }
  751.                         //playerx's ability/spellx hits mobx from the dirx(rear,right,left) for x points of damage.
  752.                         //playerx's ability/spellx hits mobx for x points of damage.
  753.                         //playerx's ability/spellx hits mobx's partx for x points of damage.
  754.  
  755.                         tCaused = Line.Substring(0, Line.IndexOf("'s "));
  756.  
  757.                         Line = Line.Substring(Line.IndexOf("'s ") + 3);
  758.                         Line = Line.Replace(" hits ", "|");
  759.                         Line = Line.Replace(" from the ", "|");
  760.                         Line = Line.Replace(" for ", "|");
  761.                         Line = Line.Replace(" points of damage.", "");
  762.  
  763.                         index = Line.IndexOf("'s ");
  764.                         if (index != Line.LastIndexOf("'s "))
  765.                         {
  766.                             index = Line.LastIndexOf("'s ");
  767.                             Line = Line.Remove(index, 3).Insert(index, "|");
  768.                         }
  769.                         else
  770.                         {
  771.                             Line = Line.Replace("'s ", "|");
  772.                         }
  773.  
  774.                         split = Line.Split('|');
  775.  
  776.                         if (split.Length == 4)
  777.                         {
  778.                             tAbility = split[0];
  779.                             tMonster = split[1];
  780.                             tDirection = split[2];
  781.                             tDamage = split[3];
  782.                         }
  783.                         else if (split.Length == 3)
  784.                         {
  785.                             tAbility = split[0];
  786.                             tMonster = split[1];
  787.                             tDamage = split[2];
  788.                         }
  789.                         else
  790.                         {
  791.                             break;
  792.                         }
  793.  
  794.                         if (!defDirection.Contains(tDirection))
  795.                         {
  796.                             bodyPart = tDirection;
  797.                             tDirection = "";
  798.                         }
  799.                     }
  800.                     else if (Line.Contains(" uses ") && Line.Contains(" on "))
  801.                     {
  802.                         if (!Line.Contains("loses")) { break; }
  803.                         lType = "Player Use. Mob Loses X";
  804.                         //playerx uses spellx on mobx. mobx loses x MP.
  805.                         //playerx uses spellx on mobx. mobx loses x TP.
  806.                         //playerx uses spellx on mobx. mobx loses x HP.
  807.  
  808.                         tCaused = Line.Substring(0, Line.IndexOf(" uses"));
  809.                         Line = Line.Substring(Line.IndexOf(" uses ") + 6);
  810.  
  811.                         tAbility = Line.Substring(0, Line.IndexOf(" on "));
  812.                         Line = Line.Substring(Line.IndexOf(" on ") + 4);
  813.  
  814.                         tMonster = Line.Substring(0, Line.IndexOf("."));
  815.                         Line = Line.Substring(Line.IndexOf(" loses ") + 7);
  816.                         Line = Line.Replace(".", "");
  817.  
  818.                         split = Line.Split(' ');
  819.  
  820.                         rlaValue = split[0];
  821.                         rlaType = "Loses " + split[1];
  822.                     }
  823.                     else if (Line.Contains("resists"))
  824.                     {
  825.                         lType = "Mob Resist X";
  826.                         //mobx partially resists playerx's spellx, taking x points of damage.
  827.                         //mobx resists playerx's spellx, taking x points of damage.
  828.  
  829.                         if (Line.Contains("points of damage"))
  830.                         {
  831.                             if (Line.Contains("partially")) { lType = "Partial Resist"; }
  832.                             Line = Line.Replace("partially ", "");
  833.  
  834.                             tMonster = Line.Substring(0, Line.IndexOf(" resists"));
  835.                             Line = Line.Substring(Line.IndexOf(" resists ") + 9);
  836.  
  837.                             tCaused = Line.Substring(0, Line.IndexOf("'s "));
  838.                             Line = Line.Substring(Line.IndexOf("'s ") + 3);
  839.  
  840.                             tAbility = Line.Substring(0, Line.IndexOf(","));
  841.                             Line = Line.Substring(Line.IndexOf(", ") + 2);
  842.  
  843.                             Line = Line.Replace("taking ", "");
  844.                             Line = Line.Replace(" points of damage.", "");
  845.                             tDamage = Line;
  846.                         }
  847.                         else
  848.                         {
  849.  
  850.                             //mobx resists playerx's spellx.
  851.  
  852.                             tMonster = Line.Substring(0, Line.IndexOf(" resists"));
  853.                             Line = Line.Substring(Line.IndexOf("resists ") + 8);
  854.  
  855.                             Line = Line.Replace("'s ", "|");
  856.                             Line = Line.Replace(".", "");
  857.  
  858.                             split = Line.Split('|');
  859.  
  860.                             tCaused = split[0];
  861.                             tAbility = split[1];
  862.  
  863.                             tDamage = "0";
  864.                         }
  865.                     }
  866.                     else
  867.                     {
  868.                         break;
  869.                     }
  870.  
  871.                     Parsed = true;
  872.                     break;
  873.                 #endregion
  874.  
  875.                 #region " 0053 "
  876.                 case "0053":
  877.                     if (Line.Contains("Critical!"))
  878.                     {
  879.                         //Critical! mobx's ability/spellx hits playerx for x points of damage.
  880.                         //Critical! mobx's ability/spellx hits playerx from the dirx(rear,right,left) for x points of damage.
  881.                         lType = "Mob Critical Attack";
  882.                         Line = Line.Substring(10);
  883.                         damageType = "Critical";
  884.                     }
  885.  
  886.                     if (Line.Contains("Counter!"))
  887.                     {
  888.                         //Counter! playerx hits mobx for x points of damage.
  889.                         lType = "Player Counter";
  890.                         Line = Line.Substring(9);
  891.                         damageType = "Counter";
  892.  
  893.                         tCaused = Line.Substring(0, Line.IndexOf(" hits"));
  894.                         Line = Line.Substring(Line.IndexOf(" hits ") + 6);
  895.  
  896.                         tMonster = Line.Substring(0, Line.IndexOf(" for "));
  897.  
  898.                         Line = Line.Substring(Line.IndexOf(" for ") + 5);
  899.                         Line = Line.Replace(" points of damage.", "");
  900.                         tDamage = Line;
  901.                     }
  902.                     else if (Line.Contains(" hits ") && Line.Contains("points of damage"))
  903.                     {
  904.                         //mobx's ability/spellx hits playerx for x points of damage.
  905.                         //mobx's ability/spellx hits playerx from the dirx(rear,right,left) for x points of damage.
  906.                         if (damageType == "") { damageType = "Normal"; lType = "Mob Normal Attack"; }
  907.  
  908.                         Line = Line.Replace(" for ", "|");
  909.                         Line = Line.Replace(" hits ", "|");
  910.                         Line = Line.Replace(" from the ", "|");
  911.                         Line = Line.Replace(" points of damage.", "");
  912.  
  913.                         index = Line.IndexOf("'s ");
  914.                         if (index != Line.LastIndexOf("'s "))
  915.                         {
  916.                             index = Line.LastIndexOf("'s ");
  917.                             Line = Line.Remove(index, 3).Insert(index, "|");
  918.                         }
  919.                         else
  920.                         {
  921.                             Line = Line.Replace("'s ", "|");
  922.                         }
  923.  
  924.                         split = Line.Split('|');
  925.  
  926.                         if (split.Length == 5)
  927.                         {
  928.                             tMonster = split[0];
  929.                             tAbility = split[1];
  930.                             tAffected = split[2];
  931.                             tDirection = split[3];
  932.                             tDamage = split[4];
  933.                         }
  934.                         else if (split.Length == 4)
  935.                         {
  936.                             tMonster = split[0];
  937.                             tAbility = split[1];
  938.                             tAffected = split[2];
  939.                             tDamage = split[3];
  940.                         }
  941.                         else
  942.                         {
  943.                             break;
  944.                         }
  945.  
  946.                         if (!defDirection.Contains(tDirection))
  947.                         {
  948.                             bodyPart = tDirection;
  949.                             tDirection = "";
  950.                         }
  951.                     }
  952.                     else if (Line.Contains("resist"))
  953.                     {
  954.                         //playerx partially resists mobx spellx, taking x points of damage.
  955.                         lType = "Player Resist X";
  956.  
  957.                         if (Line.Contains("points of damage"))
  958.                         {
  959.                             if (Line.Contains("partially")) { lType = "Partial Resist"; }
  960.                             Line = Line.Replace("partially ", "");
  961.  
  962.                             tAffected = Line.Substring(0, Line.IndexOf(" resists"));
  963.                             Line = Line.Substring(Line.IndexOf(" resists ") + 9);
  964.  
  965.                             tMonster = Line.Substring(0, Line.LastIndexOf("'s "));
  966.                             Line = Line.Substring(Line.LastIndexOf("'s ") + 3);
  967.  
  968.                             tAbility = Line.Substring(0, Line.IndexOf(","));
  969.                             Line = Line.Substring(Line.IndexOf(", ") + 2);
  970.  
  971.                             Line = Line.Replace("taking ", "");
  972.                             Line = Line.Replace(" points of damage.", "");
  973.  
  974.                             tDamage = Line;
  975.                         }
  976.                         else
  977.                         {
  978.  
  979.                             //playerx resists mobx spellx.
  980.  
  981.                             tAffected = Line.Substring(0, Line.IndexOf(" resists"));
  982.                             Line = Line.Substring(Line.IndexOf("resists ") + 8);
  983.  
  984.                             index = Line.IndexOf("'s ");
  985.                             if (index != Line.LastIndexOf("'s "))
  986.                             {
  987.                                 index = Line.LastIndexOf("'s ");
  988.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  989.                             }
  990.                             else
  991.                             {
  992.                                 Line = Line.Replace("'s ", "|");
  993.                             }
  994.  
  995.                             split = Line.Split('|');
  996.  
  997.                             tMonster = split[0];
  998.                             tAbility = split[1];
  999.  
  1000.                             tDamage = "0";
  1001.                         }
  1002.                     }
  1003.                     else if (Line.Contains("parries"))
  1004.                     {
  1005.                         lType = "Player Parries X";
  1006.                         //playerx partially parries mobx ability/spellx, taking x points of damage.
  1007.                         //playerx partially parries mobx ability/spellx from the dirx(rear, right, left), taking x points of damage.
  1008.                         //playerx parries mobx's ability/spellx, taking x points of damage.
  1009.  
  1010.                         if (Line.Contains("points of damage"))
  1011.                         {
  1012.                             if (Line.Contains("partially")) { lType = "Partial Parry"; }
  1013.                             Line = Line.Replace("partially ", "");
  1014.  
  1015.                             Line = Line.Replace(" points of damage.", "");
  1016.                             Line = Line.Replace(" parries ", "|");
  1017.                             Line = Line.Replace(" from the ", "|");
  1018.  
  1019.                             tDamage = Line.Substring(Line.IndexOf("taking ") + 7);
  1020.  
  1021.                             Line = Line.Substring(0, Line.IndexOf(","));
  1022.  
  1023.                             index = Line.IndexOf("'s ");
  1024.                             if (index != Line.LastIndexOf("'s "))
  1025.                             {
  1026.                                 index = Line.LastIndexOf("'s ");
  1027.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  1028.                             }
  1029.                             else
  1030.                             {
  1031.                                 Line = Line.Replace("'s ", "|");
  1032.                             }
  1033.  
  1034.                             split = Line.Split('|');
  1035.  
  1036.                             if (split.Length == 4)
  1037.                             {
  1038.                                 tAffected = split[0];
  1039.                                 tMonster = split[1];
  1040.                                 tAbility = split[2];
  1041.                                 tDirection = split[3];
  1042.                             }
  1043.                             else if (split.Length == 3)
  1044.                             {
  1045.                                 tAffected = split[0];
  1046.                                 tMonster = split[1];
  1047.                                 tAbility = split[2];
  1048.                             }
  1049.                             else
  1050.                             {
  1051.                                 break;
  1052.                             }
  1053.  
  1054.                             if (!defDirection.Contains(tDirection))
  1055.                             {
  1056.                                 bodyPart = tDirection;
  1057.                                 tDirection = "";
  1058.                             }
  1059.  
  1060.                         }
  1061.                         else
  1062.                         {
  1063.                             //playerx parries mobx's ability/spellx.
  1064.  
  1065.                             Line = Line.Replace(" parries ", "|");
  1066.  
  1067.                             index = Line.IndexOf("'s ");
  1068.                             if (index != Line.LastIndexOf("'s "))
  1069.                             {
  1070.                                 index = Line.LastIndexOf("'s ");
  1071.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  1072.                             }
  1073.                             else
  1074.                             {
  1075.                                 Line = Line.Replace("'s ", "|");
  1076.                             }
  1077.  
  1078.                             Line = Line.Replace(".", "");
  1079.  
  1080.                             split = Line.Split('|');
  1081.  
  1082.                             tAffected = split[0];
  1083.                             tMonster = split[1];
  1084.                             tAbility = split[2];
  1085.  
  1086.                             tDamage = "0";
  1087.                         }
  1088.                     }
  1089.                     else if (Line.Contains("blocks") && Line.Contains("points of damage"))
  1090.                     {
  1091.                         lType = "Player Blocks X";
  1092.                         //playerx blocks mobx's ability/spellx, taking x points of damage.
  1093.                         //playerx blocks mobx's ability/spellx from the dirx(rear, right, left), taking x points of damage.
  1094.                         //playerx partially blocks mobx's ability/spellx, taking x points of damage.
  1095.                         //playerx partially blocks mobx's ability/spellx from the dirx(rear, right, left), taking x points of damage.
  1096.                         if (Line.Contains("points of damage"))
  1097.                         {
  1098.                             if (Line.Contains("partially")) { lType = "Partial Block"; }
  1099.                             Line = Line.Replace("partially ", "");
  1100.  
  1101.                             Line = Line.Replace(" points of damage.", "");
  1102.                             Line = Line.Replace(" blocks ", "|");
  1103.                             Line = Line.Replace(" from the ", "|");
  1104.  
  1105.                             tDamage = Line.Substring(Line.IndexOf("taking ") + 7);
  1106.  
  1107.                             Line = Line.Substring(0, Line.IndexOf(","));
  1108.  
  1109.                             index = Line.IndexOf("'s ");
  1110.                             if (index != Line.LastIndexOf("'s "))
  1111.                             {
  1112.                                 index = Line.LastIndexOf("'s ");
  1113.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  1114.                             }
  1115.                             else
  1116.                             {
  1117.                                 Line = Line.Replace("'s ", "|");
  1118.                             }
  1119.  
  1120.                             split = Line.Split('|');
  1121.  
  1122.                             if (split.Length == 4)
  1123.                             {
  1124.                                 tAffected = split[0];
  1125.                                 tMonster = split[1];
  1126.                                 tAbility = split[2];
  1127.                                 tDirection = split[3];
  1128.                             }
  1129.                             else if (split.Length == 3)
  1130.                             {
  1131.                                 tAffected = split[0];
  1132.                                 tMonster = split[1];
  1133.                                 tAbility = split[2];
  1134.                             }
  1135.                             else
  1136.                             {
  1137.                                 break;
  1138.                             }
  1139.  
  1140.                             if (!defDirection.Contains(tDirection))
  1141.                             {
  1142.                                 bodyPart = tDirection;
  1143.                                 tDirection = "";
  1144.                             }
  1145.  
  1146.                         }
  1147.                         else
  1148.                         {
  1149.                             //playerx blocks mobx's ability/spellx.
  1150.                             //playerx blocks mobx's ability/spellx from the dirx(rear, right, left).
  1151.  
  1152.                             Line = Line.Replace(" blocks ", "|");
  1153.  
  1154.                             index = Line.IndexOf("'s ");
  1155.                             if (index != Line.LastIndexOf("'s "))
  1156.                             {
  1157.                                 index = Line.LastIndexOf("'s ");
  1158.                                 Line = Line.Remove(index, 3).Insert(index, "|");
  1159.                             }
  1160.                             else
  1161.                             {
  1162.                                 Line = Line.Replace("'s ", "|");
  1163.                             }
  1164.  
  1165.                             Line = Line.Replace(".", "");
  1166.  
  1167.                             split = Line.Split('|');
  1168.  
  1169.                             tAffected = split[0];
  1170.                             tMonster = split[1];
  1171.                             tAbility = split[2];
  1172.  
  1173.                             tDamage = "0";
  1174.                         }
  1175.                     }
  1176.                     else
  1177.                     {
  1178.                         break;
  1179.                     }
  1180.                     //outParse();
  1181.                     Parsed = true;
  1182.                     break;
  1183.                 #endregion
  1184.  
  1185.                 #region " 0056 "
  1186.                 case "0056":
  1187.                     //mobx evades your ability/spellx.
  1188.                     tCaused = You;
  1189.  
  1190.                     if (Line.IndexOf("evades") != -1)
  1191.                     {
  1192.                         lType = "Mob Evades Your X";
  1193.  
  1194.                         Line = Line.Replace(" evades your ", "|");
  1195.                         Line = Line.Replace(".", "");
  1196.  
  1197.                         split = Line.Split('|');
  1198.  
  1199.                         tMonster = split[0];
  1200.                         tAbility = split[1];
  1201.                     }
  1202.                     else if (Line.IndexOf("misses") != -1)
  1203.                     {
  1204.                         lType = "Your X Misses Mob";
  1205.                         //your ability/spellx misses mobx from the dirx(rear, right left).
  1206.                         //your ability/spellx misses mobx.
  1207.                         Line = Line.Replace("Your ", "");
  1208.                         Line = Line.Replace(" misses ", "|");
  1209.                         Line = Line.Replace(" from the ", "|");
  1210.                         Line = Line.Replace(".", "");
  1211.  
  1212.                         split = Line.Split('|');
  1213.  
  1214.                         if (split.Length == 3)
  1215.                         {
  1216.                             tAbility = split[0];
  1217.                             tMonster = split[1];
  1218.                             tDirection = split[2];
  1219.                         }
  1220.                         else if (split.Length == 2)
  1221.                         {
  1222.                             tAbility = split[0];
  1223.                             tMonster = split[1];
  1224.                         }
  1225.                         else
  1226.                         {
  1227.                             break;
  1228.                         }
  1229.  
  1230.                         if (!defDirection.Contains(tDirection))
  1231.                         {
  1232.                             bodyPart = tDirection;
  1233.                             tDirection = "";
  1234.                         }
  1235.                     }
  1236.                     else
  1237.                     {
  1238.                         break;
  1239.                     }
  1240.                     Parsed = true;
  1241.                     break;
  1242.                 #endregion
  1243.  
  1244.                 #region " 0058 "
  1245.                 case "0058":
  1246.                     //mobx evades playerx's ability/spellx.
  1247.                     if (Line.IndexOf("evades") != -1)
  1248.                     {
  1249.                         lType = "Mob Evades Players X";
  1250.  
  1251.                         Line = Line.Replace(" evades ", "|");
  1252.  
  1253.                         index = Line.LastIndexOf("'s ");
  1254.                         Line = Line.Remove(index, 3).Insert(index, "|");
  1255.  
  1256.                         Line = Line.Replace(".", "");
  1257.  
  1258.                         split = Line.Split('|');
  1259.  
  1260.                         tMonster = split[0];
  1261.                         tCaused = split[1];
  1262.                         tAbility = split[2];
  1263.                     }
  1264.                     else if (Line.IndexOf("misses") != -1)
  1265.                     {
  1266.                         lType = "Players X Misses Mob";
  1267.                         //playerx's ability/spellx misses mobx from the dirx(rear,right,left).
  1268.                         //playerx's ability/spellx misses mobx.
  1269.  
  1270.                         tCaused = Line.Substring(0, Line.IndexOf("'s "));
  1271.                         Line = Line.Substring(Line.IndexOf("'s ") + 3);
  1272.  
  1273.                         Line = Line.Replace(" misses ", "|");
  1274.                         Line = Line.Replace(" from the ", "|");
  1275.                         Line = Line.Replace(".", "");
  1276.  
  1277.                         split = Line.Split('|');
  1278.  
  1279.                         if (split.Length == 3)
  1280.                         {
  1281.                             tAbility = split[0];
  1282.                             tMonster = split[1];
  1283.                             tDirection = split[2];
  1284.                         }
  1285.                         else if (split.Length == 2)
  1286.                         {
  1287.                             tAbility = split[0];
  1288.                             tMonster = split[1];
  1289.                         }
  1290.                         else
  1291.                         {
  1292.                             break;
  1293.                         }
  1294.  
  1295.                         if (!defDirection.Contains(tDirection))
  1296.                         {
  1297.                             bodyPart = tDirection;
  1298.                             tDirection = "";
  1299.                         }
  1300.                     }
  1301.                     else
  1302.                     {
  1303.                         break;
  1304.                     }
  1305.                     Parsed = true;
  1306.                     break;
  1307.                 #endregion
  1308.  
  1309.                 #region " 0059 "
  1310.                 case "0059":
  1311.                     //playerx evades mobx's ability/spellx.
  1312.  
  1313.                     if (Line.IndexOf("evades") != -1)
  1314.                     {
  1315.                         lType = "Player Evades Mobs X";
  1316.  
  1317.                         Line = Line.Replace(" evades ", "|");
  1318.  
  1319.                         index = Line.LastIndexOf("'s ");
  1320.                         Line = Line.Remove(index, 3).Insert(index, "|");
  1321.  
  1322.                         Line = Line.Replace(".", "");
  1323.  
  1324.                         split = Line.Split('|');
  1325.  
  1326.                         tAffected = split[0];
  1327.                         tMonster = split[1];
  1328.                         tAbility = split[2];
  1329.                     }
  1330.                     else if (Line.IndexOf("misses") != -1)
  1331.                     {
  1332.                         lType = "Mobs X Misses Player";
  1333.                         //mobx's ability/spellx misses playerx.
  1334.                         //mobx's ability/spellx misses playerx from the dirx(rear, right, left).
  1335.  
  1336.                         index = Line.IndexOf("'s ");
  1337.                         if (index != Line.LastIndexOf("'s "))
  1338.                         {
  1339.                             index = Line.LastIndexOf("'s ");
  1340.                             Line = Line.Remove(index, 3).Insert(index, "|");
  1341.                         }
  1342.                         else
  1343.                         {
  1344.                             Line = Line.Replace("'s ", "|");
  1345.                         }
  1346.  
  1347.                         Line = Line.Replace(" misses ", "|");
  1348.                         Line = Line.Replace(" from the ", "|");
  1349.                         Line = Line.Replace(".", "");
  1350.  
  1351.                         split = Line.Split('|');
  1352.  
  1353.                         if (split.Length == 4)
  1354.                         {
  1355.                             tMonster = split[0];
  1356.                             tAbility = split[1];
  1357.                             tAffected = split[2];
  1358.                             tDirection = split[3];
  1359.                         }
  1360.                         else if (split.Length == 3)
  1361.                         {
  1362.                             tMonster = split[0];
  1363.                             tAbility = split[1];
  1364.                             tAffected = split[2];
  1365.                         }
  1366.                         else
  1367.                         {
  1368.                             break;
  1369.                         }
  1370.  
  1371.                         if (!defDirection.Contains(tDirection))
  1372.                         {
  1373.                             bodyPart = tDirection;
  1374.                             tDirection = "";
  1375.                         }
  1376.                     }
  1377.                     else
  1378.                     {
  1379.                         break;
  1380.                     }
  1381.                     Parsed = true;
  1382.                     break;
  1383.                 #endregion
  1384.  
  1385.                 #region " 005C "
  1386.                 case "005C":
  1387.                     tAffected = You;
  1388.  
  1389.                     if (Line.Contains("absorb"))
  1390.                     {
  1391.                         lType = "You Absorb X from Mob";
  1392.                         //you absorb x statx from mobx.
  1393.                         Line = Line.Replace("You absorb ", "");
  1394.  
  1395.                         index = Line.IndexOf(" ");
  1396.                         Line = Line.Remove(index, 1).Insert(index, "|");
  1397.  
  1398.                         Line = Line.Replace(" from ", "|");
  1399.                         Line = Line.Replace(".", "");
  1400.  
  1401.                         split = Line.Split('|');
  1402.                         if (split.Length == 3)
  1403.                         {
  1404.                             rlaValue = split[0];
  1405.                             rlaType = "Absorb " + split[1];
  1406.                             tMonster = split[2];
  1407.                         }
  1408.                         else
  1409.                         {
  1410.                             break;
  1411.                         }
  1412.                     }
  1413.                     else if (Line.Contains("recovers "))
  1414.                     {
  1415.                         lType = "You Use X. Player Recovers X";
  1416.                         //you use ability/spellx on playerx. playerx recovers x HP.
  1417.                         //you use ability/spellx on playerx. playerx recovers x TP.
  1418.                         //you use ability/spellx on playerx. playerx recovers x MP.
  1419.                         Line = Line.Replace("You use ", "");
  1420.                         Line = Line.Replace(" on ", "|");
  1421.  
  1422.                         Line = Regex.Replace(Line, "\\..+recovers\\s", "|");
  1423.  
  1424.                         index = Line.LastIndexOf(" ");
  1425.                         Line = Line.Remove(index, 1).Insert(index, "|");
  1426.  
  1427.                         Line = Line.Replace(".", "");
  1428.  
  1429.                         split = Line.Split('|');
  1430.                         if (split.Length == 4)
  1431.                         {
  1432.                             tCaused = You;
  1433.                             tAbility = split[0];
  1434.                             tAffected = split[1];
  1435.                             rlaValue = split[2];
  1436.                             rlaType = "Recovers " + split[3];
  1437.                         }
  1438.                         else
  1439.                         {
  1440.                             break;
  1441.                         }
  1442.                     }
  1443.                     else if (Line.Contains("recover "))
  1444.                     {
  1445.                         lType = "You use X. You Recover X";
  1446.                         //you use ability/spellx. You recover x HP.
  1447.                         //you use ability/spellx. You recover x TP.
  1448.                         //you use ability/spellx. You recover x MP.
  1449.                         Line = Line.Replace("You use ", "");
  1450.                         tAbility = Line.Substring(0, Line.IndexOf("."));
  1451.                         Line = Line.Substring(Line.IndexOf(".") + 2);
  1452.                         Line = Line.Replace("You recover ", "");
  1453.                         Line = Line.Replace(".", "");
  1454.                         split = Line.Split(' ');
  1455.                         tCaused = You;
  1456.                         rlaValue = split[0];
  1457.                         rlaType = "Recover " + split[1];
  1458.                     }
  1459.                     else
  1460.                     {
  1461.                         break;
  1462.                     }
  1463.                     Parsed = true;
  1464.                     break;
  1465.                 #endregion
  1466.  
  1467.                 #region " 005D "
  1468.                 case "005D":
  1469.                     //playerx uses ability/spellx. you recover x HP.
  1470.                     //playerx uses ability/spellx. you recover x TP.
  1471.                     //playerx uses ability/spellx. you recover x MP.
  1472.                     lType = "Player Use X. You Recover X";
  1473.  
  1474.                     if (Line.Contains(" recover "))
  1475.                     {
  1476.                         Line = Line.Replace(" uses ", "|");
  1477.                         Line = Line.Replace(". You recover ", "|");
  1478.                         index = Line.LastIndexOf(" ");
  1479.                         Line = Line.Remove(index, 1).Insert(index, "|");
  1480.                         Line = Line.Replace(".", "");
  1481.  
  1482.                         split = Line.Split('|');
  1483.  
  1484.                         if (split.Length == 4)
  1485.                         {
  1486.                             tCaused = split[0];
  1487.                             tAbility = split[1];
  1488.                             tAffected = You;
  1489.                             rlaValue = split[2];
  1490.                             rlaType = "Recover " + split[3];
  1491.                         }
  1492.                         else
  1493.                         {
  1494.                             break;
  1495.                         }
  1496.                     }
  1497.                     else
  1498.                     {
  1499.                         break;
  1500.                     }
  1501.                     Parsed = true;
  1502.                     break;
  1503.                 #endregion
  1504.  
  1505.                 #region " 005E "
  1506.                 case "005E":
  1507.                     //playerx uses ability/spellx on playery. playery recovers x HP.
  1508.                     //playerx uses ability/spellx on playery. playery recovers x TP.
  1509.                     //playerx uses ability/spellx on playery. playery recovers x MP.
  1510.                     lType = "Player Use X. Player Recover X";
  1511.  
  1512.                     if (Line.Contains(" recovers "))
  1513.                     {
  1514.                         Line = Line.Replace(" uses ", "|");
  1515.                         Line = Line.Replace(" on ", "|");
  1516.                         Line = Regex.Replace(Line, "\\..+recovers\\s", "|");
  1517.  
  1518.                         index = Line.LastIndexOf(" ");
  1519.                         Line = Line.Remove(index, 1).Insert(index, "|");
  1520.                         Line = Line.Replace(".", "");
  1521.  
  1522.                         split = Line.Split('|');
  1523.  
  1524.                         if (split.Length == 5)
  1525.                         {
  1526.                             tCaused = split[0];
  1527.                             tAbility = split[1];
  1528.                             tAffected = split[2];
  1529.                             rlaValue = split[3];
  1530.                             rlaType = "Recover " + split[4];
  1531.                         }
  1532.                         else
  1533.                         {
  1534.                             break;
  1535.                         }
  1536.                     }
  1537.                     else
  1538.                     {
  1539.                         break;
  1540.                     }
  1541.                     Parsed = true;
  1542.                     break;
  1543.                 #endregion
  1544.  
  1545.                 #region " 005F "
  1546.                 case "005F":
  1547.                     if (Line.Contains("heals"))
  1548.                     {
  1549.                         //mobx's ability/spellx heals playerx for x HP.
  1550.                         lType = "Mobs X Heals Player For X";
  1551.  
  1552.                         index = Line.LastIndexOf("'s ");
  1553.                         Line = Line.Remove(index, 3).Insert(index, "|");
  1554.                         Line = Line.Replace(" heals ", "|");
  1555.                         Line = Line.Replace(" for ", "|");
  1556.                         Line = Line.Replace(".", "");
  1557.  
  1558.                         split = Line.Split('|');
  1559.                         if (split.Length == 4)
  1560.                         {
  1561.                             tMonster = split[0];
  1562.                             tAbility = split[1];
  1563.                             tAffected = split[2];
  1564.  
  1565.                             split = split[3].Split(' ');
  1566.                             rlaValue = split[0];
  1567.                             rlaType = "Heals " + split[1];
  1568.                         }
  1569.                         else
  1570.                         {
  1571.                             break;
  1572.                         }
  1573.                     }
  1574.                     else if (Line.Contains("absorbs"))
  1575.                     {
  1576.                         //mobx absorbs x HP from playerx.
  1577.                         //mobx absorbs x TP from playerx.
  1578.                         //mobx absorbs x MP from playerx.
  1579.  
  1580.                         lType = "Mob Absorbs X From Player";
  1581.                         Line = Line.Replace(" absorbs ", "|");
  1582.                         Line = Line.Replace(" from ", "|");
  1583.                         Line = Line.Replace(".", "");
  1584.  
  1585.                         split = Line.Split('|');
  1586.                         if (split.Length == 3)
  1587.                         {
  1588.                             tMonster = split[0];
  1589.                             tAffected = split[2];
  1590.  
  1591.                             split = split[1].Split(' ');
  1592.                             rlaValue = split[0];
  1593.                             rlaType = "Absorbs " + split[1];
  1594.                         }
  1595.                         else
  1596.                         {
  1597.                             break;
  1598.                         }
  1599.                     }
  1600.                     else if (Line.Contains("regains"))
  1601.                     {
  1602.                         //mobx regains x MP.
  1603.                         lType = "Mob Regains X Stat";
  1604.  
  1605.                         Line = Line.Replace(".", "");
  1606.                         Line = Line.Replace(" regains ", "|");
  1607.  
  1608.                         split = Line.Split('|');
  1609.                         if (split.Length == 2)
  1610.                         {
  1611.                             tMonster = split[0];
  1612.  
  1613.                             split = split[1].Split(' ');
  1614.                             rlaValue = split[0];
  1615.                             rlaType = "Regains " + split[1];
  1616.                         }
  1617.                         else
  1618.                         {
  1619.                             break;
  1620.                         }
  1621.                     }
  1622.                     else
  1623.                     {
  1624.                         break;
  1625.                     }
  1626.                     Parsed = true;
  1627.                     break;
  1628.                 #endregion
  1629.  
  1630.                 #region " 0062 "
  1631.                 case "0062":
  1632.                     if (Line.Contains("You are no longer") && Line.Contains("effect"))
  1633.                     {
  1634.                         //you are no longer under the effect of ability/spellx. (cast on self)
  1635.                         lType = "Self Cast Loss";
  1636.  
  1637.                         Line = Line.Replace("You are no longer under the effect of ", "");
  1638.                         Line = Line.Replace(".", "");
  1639.                         tAffected = You;
  1640.                         tStatus = Line;
  1641.                         tSRGainLose = "Loss";
  1642.                     }
  1643.                     else if (Line.Contains("You are no longer"))
  1644.                     {
  1645.                         //you are no longer under the effect of ability/spellx. (cast on self)
  1646.                         lType = "Self Cast Loss";
  1647.  
  1648.                         Line = Line.Replace("You are no longer ", "");
  1649.                         Line = Line.Replace(".", "");
  1650.                         tAffected = You;
  1651.                         tStatus = Line;
  1652.                         tSRGainLose = "Loss";
  1653.                     }
  1654.                     else if (Line.Contains("grants you"))
  1655.                     {
  1656.                         //your ability/spellx grants you the effect of ability/spellx.
  1657.                         lType = "Your X Grants You Effect Of X";
  1658.  
  1659.                         Line = Line.Replace("Your ", "");
  1660.                         Line = Line.Replace(" grants you the effect of ", "|");
  1661.                         Line = Line.Replace(".", "");
  1662.  
  1663.                         split = Line.Split('|');
  1664.                         if (split.Length == 2)
  1665.                         {
  1666.                             tCaused = You;
  1667.                             tAffected = You;
  1668.                             tAbility = split[0];
  1669.                             tStatus = split[1];
  1670.                             tSRGainLose = "Gain";
  1671.                         }
  1672.                         else
  1673.                         {
  1674.                             break;
  1675.                         }
  1676.                     }
  1677.                     else if (Line.Contains("grants"))
  1678.                     {
  1679.                         //your ability/spellx grants playerx the effect of ability/spellx.
  1680.                         lType = "Your X Grants Player Effect Of X";
  1681.  
  1682.                         Line = Line.Replace("Your ", "");
  1683.                         Line = Line.Replace(" grants ", "|");
  1684.                         Line = Line.Replace(" the effect of ", "|");
  1685.                         Line = Line.Replace(".", "");
  1686.  
  1687.                         split = Line.Split('|');
  1688.                         if (split.Length == 3)
  1689.                         {
  1690.                             tAbility = split[0];
  1691.                             tCaused = You;
  1692.                             tAffected = split[1];
  1693.                             tStatus = split[2];
  1694.                             tSRGainLose = "Gain";
  1695.                         }
  1696.                         else
  1697.                         {
  1698.                             break;
  1699.                         }
  1700.                     }
  1701.                     else if (Line.Contains("inflicts") && Line.Contains("Regimen"))
  1702.                     {
  1703.                         //your ability/spellx inflicts mobx with the effect of regimenx.
  1704.                         lType = "Your X Inflicts Mob With Effect Of Regimen X";
  1705.  
  1706.                         Line = Line.Replace("Your ", "");
  1707.                         Line = Line.Replace(" inflicts ", "|");
  1708.                         Line = Line.Replace(" with the effect of ", "|");
  1709.                         Line = Line.Replace(".", "");
  1710.  
  1711.                         split = Line.Split('|');
  1712.                         if (split.Length == 3)
  1713.                         {
  1714.                             tAbility = split[0];
  1715.                             tCaused = You;
  1716.                             tAffected = split[1];
  1717.                             tRegimen = split[2];
  1718.                             tSRGainLose = "Gain";
  1719.  
  1720.                         }
  1721.                         else
  1722.                         {
  1723.                             break;
  1724.                         }
  1725.                     }
  1726.                     else if (Line.Contains("inflicts") && !Line.Contains("Regimen"))
  1727.                     {
  1728.                         //your ability/spellx inflicts mobx with the effect of regimenx.
  1729.                         lType = "Your X Inflicts Mob With Effect Of X";
  1730.  
  1731.                         Line = Line.Replace("Your ", "");
  1732.                         Line = Line.Replace(" inflicts ", "|");
  1733.                         Line = Line.Replace(" with the effect of ", "|");
  1734.                         Line = Line.Replace(".", "");
  1735.  
  1736.                         split = Line.Split('|');
  1737.                         if (split.Length == 3)
  1738.                         {
  1739.                             tAbility = split[0];
  1740.                             tCaused = You;
  1741.                             tAffected = split[1];
  1742.                             tStatus = split[2];
  1743.                             tSRGainLose = "Gain";
  1744.                         }
  1745.                         else
  1746.                         {
  1747.                             break;
  1748.                         }
  1749.                     }
  1750.                     else
  1751.                     {
  1752.                         break;
  1753.                     }
  1754.                     Parsed = true;
  1755.                     break;
  1756.                 #endregion
  1757.  
  1758.                 #region " 0063 "
  1759.                 case "0063":
  1760.                     //you are no longer under the effect of ability/spellx. (cast by otheres on you)
  1761.                     if (Line.Contains("You are no longer"))
  1762.                     {
  1763.                         //you are no longer under the effect of ability/spellx. (cast on self)
  1764.                         lType = "Player Cast Loss";
  1765.  
  1766.                         Line = Line.Replace("You are no longer under the effect of ", "");
  1767.                         Line = Line.Replace(".", "");
  1768.                         tAffected = You;
  1769.                         tStatus = Line;
  1770.                         tSRGainLose = "Loss";
  1771.                     }
  1772.                     else if (Line.Contains("grants you"))
  1773.                     {
  1774.                         //playerx's ability/spellx grants you the effect of ability/spellx.
  1775.                         lType = "Players X Grants You Effect Of X";
  1776.  
  1777.                         tCaused = Line.Substring(0, Line.IndexOf("'s"));
  1778.                         Line = Line.Substring(Line.IndexOf("'s ") + 3);
  1779.  
  1780.                         Line = Line.Replace(" grants you the effect of ", "|");
  1781.                         Line = Line.Replace(".", "");
  1782.  
  1783.                         split = Line.Split('|');
  1784.                         if (split.Length == 2)
  1785.                         {
  1786.                             tAffected = You;
  1787.                             tAbility = split[0];
  1788.                             tStatus = split[1];
  1789.                             tSRGainLose = "Gain";
  1790.                         }
  1791.                         else
  1792.                         {
  1793.                             break;
  1794.                         }
  1795.                     }
  1796.                     else
  1797.                     {
  1798.                         break;
  1799.                     }
  1800.                     Parsed = true;
  1801.                     break;
  1802.                 #endregion
  1803.  
  1804.                 #region " 0064 "
  1805.                 case "0064":
  1806.                     //playerx is no longer under the effect of ability/spellx.
  1807.                     if (Line.Contains("is no longer under"))
  1808.                     {
  1809.                         lType = "Player Loses Effect";
  1810.  
  1811.                         Line = Line.Replace(" is no longer under the effect of ", "|");
  1812.                         Line = Line.Replace(".", "");
  1813.  
  1814.                         split = Line.Split('|');
  1815.                         if (split.Length == 2)
  1816.                         {
  1817.                             tAffected = split[0];
  1818.                             tStatus = split[1];
  1819.                             tSRGainLose = "Loss";
  1820.                         }
  1821.                         else
  1822.                         {
  1823.                             break;
  1824.                         }
  1825.                     }
  1826.                     else if (Line.Contains("grants"))
  1827.                     {
  1828.                         //playerx's ability/spellx grants playery the effect of ability/spellx.
  1829.                         lType = "Players X Grants Player Effect Of X";
  1830.  
  1831.                         tCaused = Line.Substring(0, Line.IndexOf("'s"));
  1832.                         Line = Line.Substring(Line.IndexOf("'s ") + 3);
  1833.  
  1834.                         Line = Line.Replace(" grants ", "|");
  1835.                         Line = Line.Replace(" the effect of ", "|");
  1836.                         Line = Line.Replace(".", "");
  1837.  
  1838.                         split = Line.Split('|');
  1839.                         if (split.Length == 3)
  1840.                         {
  1841.                             tAbility = split[0];
  1842.                             tAffected = split[1];
  1843.                             tStatus = split[2];
  1844.                             tSRGainLose = "Gain";
  1845.                         }
  1846.                         else
  1847.                         {
  1848.                             break;
  1849.                         }
  1850.                     }
  1851.                     else if (Line.Contains("inflicts") && Line.Contains("Regimen"))
  1852.                     {
  1853.                         //playerx's ability/spellx inflicts mobx with the effect of regimenx.
  1854.                         lType = "Players X Inflicts Mob With Effect Of Regimen X";
  1855.  
  1856.                         tCaused = Line.Substring(0, Line.IndexOf("'s"));
  1857.                         Line = Line.Substring(Line.IndexOf("'s ") + 3);
  1858.  
  1859.                         Line = Line.Replace(" inflicts ", "|");
  1860.                         Line = Line.Replace(" with the effect of ", "|");
  1861.                         Line = Line.Replace(".", "");
  1862.  
  1863.                         split = Line.Split('|');
  1864.                         if (split.Length == 3)
  1865.                         {
  1866.                             tAbility = split[0];
  1867.                             tAffected = split[1];
  1868.                             tRegimen = split[2];
  1869.                             tSRGainLose = "Gain";
  1870.                         }
  1871.                         else
  1872.                         {
  1873.                             break;
  1874.                         }
  1875.                     }
  1876.                     else if (Line.Contains("inflicts") && !Line.Contains("Regimen"))
  1877.                     {
  1878.                         //playerx's ability/spellx inflicts mobx with the effect of regimenx.
  1879.                         lType = "Players X Inflicts Mob With Effect Of X";
  1880.  
  1881.                         tCaused = Line.Substring(0, Line.IndexOf("'s"));
  1882.                         Line = Line.Substring(Line.IndexOf("'s ") + 3);
  1883.  
  1884.                         Line = Line.Replace(" inflicts ", "|");
  1885.                         Line = Line.Replace(" with the effect of ", "|");
  1886.                         Line = Line.Replace(".", "");
  1887.  
  1888.                         split = Line.Split('|');
  1889.                         if (split.Length == 3)
  1890.                         {
  1891.                             tAbility = split[0];
  1892.                             tAffected = split[1];
  1893.                             tStatus = split[2];
  1894.                             tSRGainLose = "Gain";
  1895.                         }
  1896.                         else
  1897.                         {
  1898.                             break;
  1899.                         }
  1900.                     }
  1901.                     else
  1902.                     {
  1903.                         break;
  1904.                     }
  1905.                     Parsed = true;
  1906.                     break;
  1907.                 #endregion
  1908.  
  1909.                 #region " 0065 "
  1910.                 case "0065":
  1911.                     //playerx is no longer under the effect of ability/spellx.
  1912.                     if (Line.Contains("is no longer under"))
  1913.                     {
  1914.                         lType = "Player Loses Effect";
  1915.  
  1916.                         Line = Line.Replace(" is no longer under the effect of ", "|");
  1917.                         Line = Line.Replace(".", "");
  1918.  
  1919.                         split = Line.Split('|');
  1920.                         if (split.Length == 2)
  1921.                         {
  1922.                             tAffected = split[0];
  1923.                             tStatus = split[1];
  1924.                             tSRGainLose = "Loss";
  1925.                         }
  1926.                         else
  1927.                         {
  1928.                             break;
  1929.                         }
  1930.                     }
  1931.                     else
  1932.                     {
  1933.                         break;
  1934.                     }
  1935.                     Parsed = true;
  1936.                     break;
  1937.                 #endregion
  1938.  
  1939.                 #region " TEST "
  1940.                 case "0000":
  1941.                     guiLog.AppendText(Line + "\n");
  1942.                     break;
  1943.                 #endregion
  1944.  
  1945.                 default:
  1946.                     break;
  1947.             }
  1948.  
  1949.             if (Parsed)
  1950.             {
  1951.                 lType = textInfo.ToTitleCase(lType);
  1952.                 tCaused = textInfo.ToTitleCase(tCaused);
  1953.                 tAffected = textInfo.ToTitleCase(tAffected);
  1954.                 tDefeats = textInfo.ToTitleCase(tDefeats);
  1955.                 tDefeated = textInfo.ToTitleCase(tDefeated);
  1956.                 tAbility = textInfo.ToTitleCase(tAbility);
  1957.                 tMonster = textInfo.ToTitleCase(tMonster);
  1958.                 tDirection = textInfo.ToTitleCase(tDirection);
  1959.                 bodyPart = textInfo.ToTitleCase(bodyPart);
  1960.                 tDamage = textInfo.ToTitleCase(tDamage);
  1961.                 damageType = textInfo.ToTitleCase(damageType);
  1962.                 food = textInfo.ToTitleCase(food);
  1963.                 gaveItem = textInfo.ToTitleCase(gaveItem);
  1964.                 tDrop = textInfo.ToTitleCase(tDrop);
  1965.                 expType = textInfo.ToTitleCase(expType);
  1966.                 expValue = textInfo.ToTitleCase(expValue);
  1967.                 expJob = textInfo.ToTitleCase(expJob);
  1968.                 rlaValue = textInfo.ToTitleCase(rlaValue);
  1969.                 rlaType = textInfo.ToTitleCase(rlaType);
  1970.                 tRegimen = textInfo.ToTitleCase(tRegimen);
  1971.                 tStatus = textInfo.ToTitleCase(tStatus);
  1972.                 tSRGainLose = textInfo.ToTitleCase(tSRGainLose);
  1973.  
  1974.                 if (tMonster.Length > 2)
  1975.                 {
  1976.                     if (tMonster.ToLower().Substring(0, 3) == "the")
  1977.                     {
  1978.                         tMonster = tMonster.Substring(4);
  1979.                     }
  1980.                 }
  1981.  
  1982.                 if (tDefeats.Length > 2)
  1983.                 {
  1984.                     if (tDefeats.ToLower().Substring(0, 3) == "the")
  1985.                     {
  1986.                         tDefeats = tDefeats.Substring(4);
  1987.                     }
  1988.                 }
  1989.  
  1990.                 if (tDefeated.Length > 2)
  1991.                 {
  1992.                     if (tDefeated.ToLower().Substring(0, 3) == "the")
  1993.                     {
  1994.                         tDefeated = tDefeated.Substring(4);
  1995.                     }
  1996.                 }
  1997.  
  1998.                 if (Button)
  1999.                 {
  2000.                     file.WriteLine(RawLine + "\t" + ChatMode + "\t" + lType + "\t" + tCaused + "\t" + tAffected + "\t" + tDefeats + "\t" + tDefeated + "\t" + tAbility + "\t" + tMonster + "\t" + tDirection + "\t" + bodyPart + "\t" + tDamage + "\t" + damageType + "\t" + gaveItem + "\t" + tDrop + "\t" + expType + "\t" + expValue + "\t" + expJob + "\t" + rlaValue + "\t" + rlaType + "\t" + tRegimen + "\t" + tStatus + "\t" + tSRGainLose);
  2001.                 }
  2002.                 else
  2003.                 {
  2004.                     using (StreamWriter w = File.AppendText(fName))
  2005.                     {
  2006.                         Log(RawLine + "\t" + ChatMode + "\t" + lType + "\t" + tCaused + "\t" + tAffected + "\t" + tDefeats + "\t" + tDefeated + "\t" + tAbility + "\t" + tMonster + "\t" + tDirection + "\t" + bodyPart + "\t" + tDamage + "\t" + damageType + "\t" + gaveItem + "\t" + tDrop + "\t" + expType + "\t" + expValue + "\t" + expJob + "\t" + rlaValue + "\t" + rlaType + "\t" + tRegimen + "\t" + tStatus + "\t" + tSRGainLose, w);
  2007.                         w.Close();
  2008.                     }
  2009.                 }
  2010.             }
  2011.             else
  2012.             {
  2013.                 if (Button)
  2014.                 {
  2015.                     file2.WriteLine("RawLine:[" + RawLine + "]\tCM:[" + ChatMode + "]");
  2016.                 }
  2017.                 else
  2018.                 {
  2019.                     using (StreamWriter w = File.AppendText(fName2))
  2020.                     {
  2021.                         Log("CM:[" + ChatMode + "]\tRaw:[" + RawLine, w);
  2022.                         w.Close();
  2023.                     }
  2024.                 }
  2025.             }
  2026.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement