Advertisement
Guest User

Untitled

a guest
Mar 28th, 2013
2,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 31.72 KB | None | 0 0
  1.         public string GetChat(Player player)
  2.         {
  3.             bool flag = false;
  4.             bool flag2 = false;
  5.             bool flag3 = false;
  6.             bool flag4 = false;
  7.             bool flag5 = false;
  8.             bool flag6 = false;
  9.             bool flag7 = false;
  10.             bool flag8 = false;
  11.             bool flag9 = false;
  12.             for (int i = 0; i < 196; i++)
  13.             {
  14.                 if (Main.npc[i].active != 0)
  15.                 {
  16.                     if (Main.npc[i].type == 17)
  17.                     {
  18.                         flag = true;
  19.                     }
  20.                     else
  21.                     {
  22.                         if (Main.npc[i].type == 18)
  23.                         {
  24.                             flag2 = true;
  25.                         }
  26.                         else
  27.                         {
  28.                             if (Main.npc[i].type == 19)
  29.                             {
  30.                                 flag3 = true;
  31.                             }
  32.                             else
  33.                             {
  34.                                 if (Main.npc[i].type == 20)
  35.                                 {
  36.                                     flag4 = true;
  37.                                 }
  38.                                 else
  39.                                 {
  40.                                     if (Main.npc[i].type == 37)
  41.                                     {
  42.                                         flag5 = true;
  43.                                     }
  44.                                     else
  45.                                     {
  46.                                         if (Main.npc[i].type == 38)
  47.                                         {
  48.                                             flag6 = true;
  49.                                         }
  50.                                         else
  51.                                         {
  52.                                             if (Main.npc[i].type == 124)
  53.                                             {
  54.                                                 flag7 = true;
  55.                                             }
  56.                                             else
  57.                                             {
  58.                                                 if (Main.npc[i].type == 107)
  59.                                                 {
  60.                                                     flag8 = true;
  61.                                                 }
  62.                                                 else
  63.                                                 {
  64.                                                     if (Main.npc[i].type == 22)
  65.                                                     {
  66.                                                         flag9 = true;
  67.                                                     }
  68.                                                 }
  69.                                             }
  70.                                         }
  71.                                     }
  72.                                 }
  73.                             }
  74.                         }
  75.                     }
  76.                 }
  77.             }
  78.             string result = "";
  79.             if (this.type == 17)
  80.             {
  81.                 if (!NPC.downedBoss1 && Main.rand.Next(3) == 0)
  82.                 {
  83.                     if (player.statLifeMax < 200)
  84.                     {
  85.                         result = Lang.dialog(player, 1);
  86.                     }
  87.                     else
  88.                     {
  89.                         if (player.statDefense <= 10)
  90.                         {
  91.                             result = Lang.dialog(player, 2);
  92.                         }
  93.                         else
  94.                         {
  95.                             result = Lang.dialog(player, 3);
  96.                         }
  97.                     }
  98.                 }
  99.                 else
  100.                 {
  101.                     if (Main.gameTime.dayTime)
  102.                     {
  103.                         if ((double)Main.gameTime.time < 16200.0)
  104.                         {
  105.                             int num = Main.rand.Next(3);
  106.                             if (num == 0)
  107.                             {
  108.                                 result = Lang.dialog(player, 4);
  109.                             }
  110.                             else
  111.                             {
  112.                                 if (num == 1)
  113.                                 {
  114.                                     result = Lang.dialog(player, 5);
  115.                                 }
  116.                                 else
  117.                                 {
  118.                                     result = Lang.dialog(player, 6);
  119.                                 }
  120.                             }
  121.                         }
  122.                         else
  123.                         {
  124.                             if ((double)Main.gameTime.time > 37800.0)
  125.                             {
  126.                                 int num2 = Main.rand.Next(3);
  127.                                 if (num2 == 0)
  128.                                 {
  129.                                     result = Lang.dialog(player, 7);
  130.                                 }
  131.                                 else
  132.                                 {
  133.                                     if (num2 == 1)
  134.                                     {
  135.                                         result = Lang.dialog(player, 8);
  136.                                     }
  137.                                     else
  138.                                     {
  139.                                         result = Lang.dialog(player, 9);
  140.                                     }
  141.                                 }
  142.                             }
  143.                             else
  144.                             {
  145.                                 int num3 = Main.rand.Next(3);
  146.                                 if (num3 == 0)
  147.                                 {
  148.                                     result = Lang.dialog(player, 10);
  149.                                 }
  150.                                 else
  151.                                 {
  152.                                     if (num3 == 1)
  153.                                     {
  154.                                         result = Lang.dialog(player, 11);
  155.                                     }
  156.                                     else
  157.                                     {
  158.                                         result = Lang.dialog(player, 12);
  159.                                     }
  160.                                 }
  161.                             }
  162.                         }
  163.                     }
  164.                     else
  165.                     {
  166.                         if (Main.gameTime.bloodMoon)
  167.                         {
  168.                             if (flag2 && flag7 && Main.rand.Next(3) == 0)
  169.                             {
  170.                                 result = Lang.dialog(player, 13);
  171.                             }
  172.                             else
  173.                             {
  174.                                 int num4 = Main.rand.Next(4);
  175.                                 if (num4 == 0)
  176.                                 {
  177.                                     result = Lang.dialog(player, 14);
  178.                                 }
  179.                                 else
  180.                                 {
  181.                                     if (num4 == 1)
  182.                                     {
  183.                                         result = Lang.dialog(player, 15);
  184.                                     }
  185.                                     else
  186.                                     {
  187.                                         if (num4 == 2)
  188.                                         {
  189.                                             result = Lang.dialog(player, 16);
  190.                                         }
  191.                                         else
  192.                                         {
  193.                                             result = Lang.dialog(player, 17);
  194.                                         }
  195.                                     }
  196.                                 }
  197.                             }
  198.                         }
  199.                         else
  200.                         {
  201.                             if ((double)Main.gameTime.time < 9720.0)
  202.                             {
  203.                                 if (Main.rand.Next(2) == 0)
  204.                                 {
  205.                                     result = Lang.dialog(player, 18);
  206.                                 }
  207.                                 else
  208.                                 {
  209.                                     result = Lang.dialog(player, 19);
  210.                                 }
  211.                             }
  212.                             else
  213.                             {
  214.                                 if ((double)Main.gameTime.time > 22680.0)
  215.                                 {
  216.                                     if (Main.rand.Next(2) == 0)
  217.                                     {
  218.                                         result = Lang.dialog(player, 20);
  219.                                     }
  220.                                     else
  221.                                     {
  222.                                         result = Lang.dialog(player, 21);
  223.                                     }
  224.                                 }
  225.                                 else
  226.                                 {
  227.                                     int num5 = Main.rand.Next(3);
  228.                                     if (num5 == 0)
  229.                                     {
  230.                                         result = Lang.dialog(player, 22);
  231.                                     }
  232.                                     else
  233.                                     {
  234.                                         if (num5 == 1)
  235.                                         {
  236.                                             result = Lang.dialog(player, 23);
  237.                                         }
  238.                                         else
  239.                                         {
  240.                                             result = Lang.dialog(player, 24);
  241.                                         }
  242.                                     }
  243.                                 }
  244.                             }
  245.                         }
  246.                     }
  247.                 }
  248.             }
  249.             else
  250.             {
  251.                 if (this.type == 18)
  252.                 {
  253.                     if (Main.gameTime.bloodMoon)
  254.                     {
  255.                         if ((double)player.statLife < (double)player.statLifeMax * 0.66)
  256.                         {
  257.                             int num6 = Main.rand.Next(3);
  258.                             if (num6 == 0)
  259.                             {
  260.                                 result = Lang.dialog(player, 25);
  261.                             }
  262.                             else
  263.                             {
  264.                                 if (num6 == 1)
  265.                                 {
  266.                                     result = Lang.dialog(player, 26);
  267.                                 }
  268.                                 else
  269.                                 {
  270.                                     result = Lang.dialog(player, 27);
  271.                                 }
  272.                             }
  273.                         }
  274.                         else
  275.                         {
  276.                             int num7 = Main.rand.Next(4);
  277.                             if (num7 == 0)
  278.                             {
  279.                                 result = Lang.dialog(player, 28);
  280.                             }
  281.                             else
  282.                             {
  283.                                 if (num7 == 1)
  284.                                 {
  285.                                     result = Lang.dialog(player, 29);
  286.                                 }
  287.                                 else
  288.                                 {
  289.                                     if (num7 == 2)
  290.                                     {
  291.                                         result = Lang.dialog(player, 30);
  292.                                     }
  293.                                     else
  294.                                     {
  295.                                         result = Lang.dialog(player, 31);
  296.                                     }
  297.                                 }
  298.                             }
  299.                         }
  300.                     }
  301.                     else
  302.                     {
  303.                         if (Main.rand.Next(3) == 0 && !NPC.downedBoss3)
  304.                         {
  305.                             result = Lang.dialog(player, 32);
  306.                         }
  307.                         else
  308.                         {
  309.                             if (flag6 && Main.rand.Next(4) == 0)
  310.                             {
  311.                                 result = Lang.dialog(player, 33);
  312.                             }
  313.                             else
  314.                             {
  315.                                 if (flag3 && Main.rand.Next(4) == 0)
  316.                                 {
  317.                                     result = Lang.dialog(player, 34);
  318.                                 }
  319.                                 else
  320.                                 {
  321.                                     if (flag9 && Main.rand.Next(4) == 0)
  322.                                     {
  323.                                         result = Lang.dialog(player, 35);
  324.                                     }
  325.                                     else
  326.                                     {
  327.                                         if ((double)player.statLife < (double)player.statLifeMax * 0.33)
  328.                                         {
  329.                                             int num8 = Main.rand.Next(5);
  330.                                             if (num8 == 0)
  331.                                             {
  332.                                                 result = Lang.dialog(player, 36);
  333.                                             }
  334.                                             else
  335.                                             {
  336.                                                 if (num8 == 1)
  337.                                                 {
  338.                                                     result = Lang.dialog(player, 37);
  339.                                                 }
  340.                                                 else
  341.                                                 {
  342.                                                     if (num8 == 2)
  343.                                                     {
  344.                                                         result = Lang.dialog(player, 38);
  345.                                                     }
  346.                                                     else
  347.                                                     {
  348.                                                         if (num8 == 3)
  349.                                                         {
  350.                                                             result = Lang.dialog(player, 39);
  351.                                                         }
  352.                                                         else
  353.                                                         {
  354.                                                             result = Lang.dialog(player, 40);
  355.                                                         }
  356.                                                     }
  357.                                                 }
  358.                                             }
  359.                                         }
  360.                                         else
  361.                                         {
  362.                                             if ((double)player.statLife < (double)player.statLifeMax * 0.66)
  363.                                             {
  364.                                                 int num9 = Main.rand.Next(7);
  365.                                                 if (num9 == 0)
  366.                                                 {
  367.                                                     result = Lang.dialog(player, 41);
  368.                                                 }
  369.                                                 else
  370.                                                 {
  371.                                                     if (num9 == 1)
  372.                                                     {
  373.                                                         result = Lang.dialog(player, 42);
  374.                                                     }
  375.                                                     else
  376.                                                     {
  377.                                                         if (num9 == 2)
  378.                                                         {
  379.                                                             result = Lang.dialog(player, 43);
  380.                                                         }
  381.                                                         else
  382.                                                         {
  383.                                                             if (num9 == 3)
  384.                                                             {
  385.                                                                 result = Lang.dialog(player, 44);
  386.                                                             }
  387.                                                             else
  388.                                                             {
  389.                                                                 if (num9 == 4)
  390.                                                                 {
  391.                                                                     result = Lang.dialog(player, 45);
  392.                                                                 }
  393.                                                                 else
  394.                                                                 {
  395.                                                                     if (num9 == 5)
  396.                                                                     {
  397.                                                                         result = Lang.dialog(player, 46);
  398.                                                                     }
  399.                                                                     else
  400.                                                                     {
  401.                                                                         result = Lang.dialog(player, 47);
  402.                                                                     }
  403.                                                                 }
  404.                                                             }
  405.                                                         }
  406.                                                     }
  407.                                                 }
  408.                                             }
  409.                                             else
  410.                                             {
  411.                                                 int num10 = Main.rand.Next(4);
  412.                                                 if (num10 == 0)
  413.                                                 {
  414.                                                     result = Lang.dialog(player, 48);
  415.                                                 }
  416.                                                 else
  417.                                                 {
  418.                                                     if (num10 == 1)
  419.                                                     {
  420.                                                         result = Lang.dialog(player, 49);
  421.                                                     }
  422.                                                     else
  423.                                                     {
  424.                                                         if (num10 == 2)
  425.                                                         {
  426.                                                             result = Lang.dialog(player, 50);
  427.                                                         }
  428.                                                         else
  429.                                                         {
  430.                                                             result = Lang.dialog(player, 51);
  431.                                                         }
  432.                                                     }
  433.                                                 }
  434.                                             }
  435.                                         }
  436.                                     }
  437.                                 }
  438.                             }
  439.                         }
  440.                     }
  441.                 }
  442.                 else
  443.                 {
  444.                     if (this.type == 19)
  445.                     {
  446.                         if (NPC.downedBoss3 && !Main.hardMode)
  447.                         {
  448.                             result = Lang.dialog(player, 58);
  449.                         }
  450.                         else
  451.                         {
  452.                             if (flag2 && Main.rand.Next(5) == 0)
  453.                             {
  454.                                 result = Lang.dialog(player, 59);
  455.                             }
  456.                             else
  457.                             {
  458.                                 if (flag2 && Main.rand.Next(5) == 0)
  459.                                 {
  460.                                     result = Lang.dialog(player, 60);
  461.                                 }
  462.                                 else
  463.                                 {
  464.                                     if (flag4 && Main.rand.Next(5) == 0)
  465.                                     {
  466.                                         result = Lang.dialog(player, 61);
  467.                                     }
  468.                                     else
  469.                                     {
  470.                                         if (flag6 && Main.rand.Next(5) == 0)
  471.                                         {
  472.                                             result = Lang.dialog(player, 62);
  473.                                         }
  474.                                         else
  475.                                         {
  476.                                             if (flag6 && Main.rand.Next(5) == 0)
  477.                                             {
  478.                                                 result = Lang.dialog(player, 63);
  479.                                             }
  480.                                             else
  481.                                             {
  482.                                                 if (Main.gameTime.bloodMoon)
  483.                                                 {
  484.                                                     if (Main.rand.Next(2) == 0)
  485.                                                     {
  486.                                                         result = Lang.dialog(player, 64);
  487.                                                     }
  488.                                                     else
  489.                                                     {
  490.                                                         result = Lang.dialog(player, 65);
  491.                                                     }
  492.                                                 }
  493.                                                 else
  494.                                                 {
  495.                                                     int num11 = Main.rand.Next(3);
  496.                                                     if (num11 == 0)
  497.                                                     {
  498.                                                         result = Lang.dialog(player, 66);
  499.                                                     }
  500.                                                     else
  501.                                                     {
  502.                                                         if (num11 == 1)
  503.                                                         {
  504.                                                             result = Lang.dialog(player, 67);
  505.                                                         }
  506.                                                         else
  507.                                                         {
  508.                                                             result = Lang.dialog(player, 68);
  509.                                                         }
  510.                                                     }
  511.                                                 }
  512.                                             }
  513.                                         }
  514.                                     }
  515.                                 }
  516.                             }
  517.                         }
  518.                     }
  519.                     else
  520.                     {
  521.                         if (this.type == 20)
  522.                         {
  523.                             if (!NPC.downedBoss2 && Main.rand.Next(3) == 0)
  524.                             {
  525.                                 result = Lang.dialog(player, 69);
  526.                             }
  527.                             else
  528.                             {
  529.                                 if (flag3 && Main.rand.Next(4) == 0)
  530.                                 {
  531.                                     result = Lang.dialog(player, 70);
  532.                                 }
  533.                                 else
  534.                                 {
  535.                                     if (flag && Main.rand.Next(4) == 0)
  536.                                     {
  537.                                         result = Lang.dialog(player, 71);
  538.                                     }
  539.                                     else
  540.                                     {
  541.                                         if (flag5 && Main.rand.Next(4) == 0)
  542.                                         {
  543.                                             result = Lang.dialog(player, 72);
  544.                                         }
  545.                                         else
  546.                                         {
  547.                                             if (Main.gameTime.bloodMoon)
  548.                                             {
  549.                                                 int num12 = Main.rand.Next(4);
  550.                                                 if (num12 == 0)
  551.                                                 {
  552.                                                     result = Lang.dialog(player, 73);
  553.                                                 }
  554.                                                 else
  555.                                                 {
  556.                                                     if (num12 == 1)
  557.                                                     {
  558.                                                         result = Lang.dialog(player, 74);
  559.                                                     }
  560.                                                     else
  561.                                                     {
  562.                                                         if (num12 == 2)
  563.                                                         {
  564.                                                             result = Lang.dialog(player, 75);
  565.                                                         }
  566.                                                         else
  567.                                                         {
  568.                                                             result = Lang.dialog(player, 76);
  569.                                                         }
  570.                                                     }
  571.                                                 }
  572.                                             }
  573.                                             else
  574.                                             {
  575.                                                 int num13 = Main.rand.Next(5);
  576.                                                 if (num13 == 0)
  577.                                                 {
  578.                                                     result = Lang.dialog(player, 77);
  579.                                                 }
  580.                                                 else
  581.                                                 {
  582.                                                     if (num13 == 1)
  583.                                                     {
  584.                                                         result = Lang.dialog(player, 78);
  585.                                                     }
  586.                                                     else
  587.                                                     {
  588.                                                         if (num13 == 2)
  589.                                                         {
  590.                                                             result = Lang.dialog(player, 79);
  591.                                                         }
  592.                                                         else
  593.                                                         {
  594.                                                             if (num13 == 3)
  595.                                                             {
  596.                                                                 result = Lang.dialog(player, 80);
  597.                                                             }
  598.                                                             else
  599.                                                             {
  600.                                                                 result = Lang.dialog(player, 81);
  601.                                                             }
  602.                                                         }
  603.                                                     }
  604.                                                 }
  605.                                             }
  606.                                         }
  607.                                     }
  608.                                 }
  609.                             }
  610.                         }
  611.                         else
  612.                         {
  613.                             if (this.type == 37)
  614.                             {
  615.                                 if (Main.gameTime.dayTime)
  616.                                 {
  617.                                     int num14 = Main.rand.Next(3);
  618.                                     if (num14 == 0)
  619.                                     {
  620.                                         result = Lang.dialog(player, 82);
  621.                                     }
  622.                                     else
  623.                                     {
  624.                                         if (num14 == 1)
  625.                                         {
  626.                                             result = Lang.dialog(player, 83);
  627.                                         }
  628.                                         else
  629.                                         {
  630.                                             result = Lang.dialog(player, 84);
  631.                                         }
  632.                                     }
  633.                                 }
  634.                                 else
  635.                                 {
  636.                                     if (player.statLifeMax < 300 || player.statDefense < 10)
  637.                                     {
  638.                                         int num15 = Main.rand.Next(4);
  639.                                         if (num15 == 0)
  640.                                         {
  641.                                             result = Lang.dialog(player, 85);
  642.                                         }
  643.                                         else
  644.                                         {
  645.                                             if (num15 == 1)
  646.                                             {
  647.                                                 result = Lang.dialog(player, 86);
  648.                                             }
  649.                                             else
  650.                                             {
  651.                                                 if (num15 == 2)
  652.                                                 {
  653.                                                     result = Lang.dialog(player, 87);
  654.                                                 }
  655.                                                 else
  656.                                                 {
  657.                                                     result = Lang.dialog(player, 88);
  658.                                                 }
  659.                                             }
  660.                                         }
  661.                                     }
  662.                                     else
  663.                                     {
  664.                                         int num16 = Main.rand.Next(4);
  665.                                         if (num16 == 0)
  666.                                         {
  667.                                             result = Lang.dialog(player, 89);
  668.                                         }
  669.                                         else
  670.                                         {
  671.                                             if (num16 == 1)
  672.                                             {
  673.                                                 result = Lang.dialog(player, 90);
  674.                                             }
  675.                                             else
  676.                                             {
  677.                                                 if (num16 == 2)
  678.                                                 {
  679.                                                     result = Lang.dialog(player, 91);
  680.                                                 }
  681.                                                 else
  682.                                                 {
  683.                                                     result = Lang.dialog(player, 92);
  684.                                                 }
  685.                                             }
  686.                                         }
  687.                                     }
  688.                                 }
  689.                             }
  690.                             else
  691.                             {
  692.                                 if (this.type == 38)
  693.                                 {
  694.                                     if (!NPC.downedBoss2 && Main.rand.Next(3) == 0)
  695.                                     {
  696.                                         result = Lang.dialog(player, 93);
  697.                                     }
  698.                                     if (Main.gameTime.bloodMoon)
  699.                                     {
  700.                                         int num17 = Main.rand.Next(3);
  701.                                         if (num17 == 0)
  702.                                         {
  703.                                             result = Lang.dialog(player, 94);
  704.                                         }
  705.                                         else
  706.                                         {
  707.                                             if (num17 == 1)
  708.                                             {
  709.                                                 result = Lang.dialog(player, 95);
  710.                                             }
  711.                                             else
  712.                                             {
  713.                                                 result = Lang.dialog(player, 96);
  714.                                             }
  715.                                         }
  716.                                     }
  717.                                     else
  718.                                     {
  719.                                         if (flag3 && Main.rand.Next(5) == 0)
  720.                                         {
  721.                                             result = Lang.dialog(player, 97);
  722.                                         }
  723.                                         else
  724.                                         {
  725.                                             if (flag3 && Main.rand.Next(5) == 0)
  726.                                             {
  727.                                                 result = Lang.dialog(player, 98);
  728.                                             }
  729.                                             else
  730.                                             {
  731.                                                 if (flag2 && Main.rand.Next(4) == 0)
  732.                                                 {
  733.                                                     result = Lang.dialog(player, 99);
  734.                                                 }
  735.                                                 else
  736.                                                 {
  737.                                                     if (flag4 && Main.rand.Next(4) == 0)
  738.                                                     {
  739.                                                         result = Lang.dialog(player, 100);
  740.                                                     }
  741.                                                     else
  742.                                                     {
  743.                                                         if (!Main.gameTime.dayTime)
  744.                                                         {
  745.                                                             int num18 = Main.rand.Next(4);
  746.                                                             if (num18 == 0)
  747.                                                             {
  748.                                                                 result = Lang.dialog(player, 101);
  749.                                                             }
  750.                                                             else
  751.                                                             {
  752.                                                                 if (num18 == 1)
  753.                                                                 {
  754.                                                                     result = Lang.dialog(player, 102);
  755.                                                                 }
  756.                                                                 else
  757.                                                                 {
  758.                                                                     if (num18 == 2)
  759.                                                                     {
  760.                                                                         result = Lang.dialog(player, 103);
  761.                                                                     }
  762.                                                                     else
  763.                                                                     {
  764.                                                                         result = Lang.dialog(player, 104);
  765.                                                                     }
  766.                                                                 }
  767.                                                             }
  768.                                                         }
  769.                                                         else
  770.                                                         {
  771.                                                             int num19 = Main.rand.Next(5);
  772.                                                             if (num19 == 0)
  773.                                                             {
  774.                                                                 result = Lang.dialog(player, 105);
  775.                                                             }
  776.                                                             else
  777.                                                             {
  778.                                                                 if (num19 == 1)
  779.                                                                 {
  780.                                                                     result = Lang.dialog(player, 106);
  781.                                                                 }
  782.                                                                 else
  783.                                                                 {
  784.                                                                     if (num19 == 2)
  785.                                                                     {
  786.                                                                         result = Lang.dialog(player, 107);
  787.                                                                     }
  788.                                                                     else
  789.                                                                     {
  790.                                                                         if (num19 == 3)
  791.                                                                         {
  792.                                                                             result = Lang.dialog(player, 108);
  793.                                                                         }
  794.                                                                         else
  795.                                                                         {
  796.                                                                             result = Lang.dialog(player, 109);
  797.                                                                         }
  798.                                                                     }
  799.                                                                 }
  800.                                                             }
  801.                                                         }
  802.                                                     }
  803.                                                 }
  804.                                             }
  805.                                         }
  806.                                     }
  807.                                 }
  808.                                 else
  809.                                 {
  810.                                     if (this.type == 54)
  811.                                     {
  812.                                         if (!flag7 && Main.rand.Next(2) == 0)
  813.                                         {
  814.                                             result = Lang.dialog(player, 110);
  815.                                         }
  816.                                         else
  817.                                         {
  818.                                             if (Main.gameTime.bloodMoon)
  819.                                             {
  820.                                                 result = Lang.dialog(player, 111);
  821.                                             }
  822.                                             else
  823.                                             {
  824.                                                 if (flag2 && Main.rand.Next(4) == 0)
  825.                                                 {
  826.                                                     result = Lang.dialog(player, 112);
  827.                                                 }
  828.                                                 else
  829.                                                 {
  830.                                                     if (player.head == 24)
  831.                                                     {
  832.                                                         result = Lang.dialog(player, 113);
  833.                                                     }
  834.                                                     else
  835.                                                     {
  836.                                                         int num20 = Main.rand.Next(6);
  837.                                                         if (num20 == 0)
  838.                                                         {
  839.                                                             result = Lang.dialog(player, 114);
  840.                                                         }
  841.                                                         else
  842.                                                         {
  843.                                                             if (num20 == 1)
  844.                                                             {
  845.                                                                 result = Lang.dialog(player, 115);
  846.                                                             }
  847.                                                             else
  848.                                                             {
  849.                                                                 if (num20 == 2)
  850.                                                                 {
  851.                                                                     result = Lang.dialog(player, 116);
  852.                                                                 }
  853.                                                                 else
  854.                                                                 {
  855.                                                                     if (num20 == 3)
  856.                                                                     {
  857.                                                                         result = Lang.dialog(player, 117);
  858.                                                                     }
  859.                                                                     else
  860.                                                                     {
  861.                                                                         if (num20 == 4)
  862.                                                                         {
  863.                                                                             result = Lang.dialog(player, 118);
  864.                                                                         }
  865.                                                                         else
  866.                                                                         {
  867.                                                                             result = Lang.dialog(player, 119);
  868.                                                                         }
  869.                                                                     }
  870.                                                                 }
  871.                                                             }
  872.                                                         }
  873.                                                     }
  874.                                                 }
  875.                                             }
  876.                                         }
  877.                                     }
  878.                                     else
  879.                                     {
  880.                                         if (this.type == 105)
  881.                                         {
  882.                                             result = Lang.dialog(player, 120);
  883.                                         }
  884.                                         else
  885.                                         {
  886.                                             if (this.type == 107)
  887.                                             {
  888.                                                 if (this.homeless)
  889.                                                 {
  890.                                                     int num21 = Main.rand.Next(5);
  891.                                                     if (num21 == 0)
  892.                                                     {
  893.                                                         result = Lang.dialog(player, 121);
  894.                                                     }
  895.                                                     else
  896.                                                     {
  897.                                                         if (num21 == 1)
  898.                                                         {
  899.                                                             result = Lang.dialog(player, 122);
  900.                                                         }
  901.                                                         else
  902.                                                         {
  903.                                                             if (num21 == 2)
  904.                                                             {
  905.                                                                 result = Lang.dialog(player, 123);
  906.                                                             }
  907.                                                             else
  908.                                                             {
  909.                                                                 if (num21 == 3)
  910.                                                                 {
  911.                                                                     result = Lang.dialog(player, 124);
  912.                                                                 }
  913.                                                                 else
  914.                                                                 {
  915.                                                                     result = Lang.dialog(player, 125);
  916.                                                                 }
  917.                                                             }
  918.                                                         }
  919.                                                     }
  920.                                                 }
  921.                                                 else
  922.                                                 {
  923.                                                     if (flag7 && Main.rand.Next(4) == 0)
  924.                                                     {
  925.                                                         result = Lang.dialog(player, 126);
  926.                                                     }
  927.                                                     else
  928.                                                     {
  929.                                                         if (!Main.gameTime.dayTime)
  930.                                                         {
  931.                                                             int num22 = Main.rand.Next(5);
  932.                                                             if (num22 == 0)
  933.                                                             {
  934.                                                                 result = Lang.dialog(player, 127);
  935.                                                             }
  936.                                                             else
  937.                                                             {
  938.                                                                 if (num22 == 1)
  939.                                                                 {
  940.                                                                     result = Lang.dialog(player, 128);
  941.                                                                 }
  942.                                                                 else
  943.                                                                 {
  944.                                                                     if (num22 == 2)
  945.                                                                     {
  946.                                                                         result = Lang.dialog(player, 129);
  947.                                                                     }
  948.                                                                     else
  949.                                                                     {
  950.                                                                         if (num22 == 3)
  951.                                                                         {
  952.                                                                             result = Lang.dialog(player, 130);
  953.                                                                         }
  954.                                                                         else
  955.                                                                         {
  956.                                                                             result = Lang.dialog(player, 131);
  957.                                                                         }
  958.                                                                     }
  959.                                                                 }
  960.                                                             }
  961.                                                         }
  962.                                                         else
  963.                                                         {
  964.                                                             int num23 = Main.rand.Next(5);
  965.                                                             if (num23 == 0)
  966.                                                             {
  967.                                                                 result = Lang.dialog(player, 132);
  968.                                                             }
  969.                                                             else
  970.                                                             {
  971.                                                                 if (num23 == 1)
  972.                                                                 {
  973.                                                                     result = Lang.dialog(player, 133);
  974.                                                                 }
  975.                                                                 else
  976.                                                                 {
  977.                                                                     if (num23 == 2)
  978.                                                                     {
  979.                                                                         result = Lang.dialog(player, 134);
  980.                                                                     }
  981.                                                                     else
  982.                                                                     {
  983.                                                                         if (num23 == 3)
  984.                                                                         {
  985.                                                                             result = Lang.dialog(player, 135);
  986.                                                                         }
  987.                                                                         else
  988.                                                                         {
  989.                                                                             result = Lang.dialog(player, 136);
  990.                                                                         }
  991.                                                                     }
  992.                                                                 }
  993.                                                             }
  994.                                                         }
  995.                                                     }
  996.                                                 }
  997.                                             }
  998.                                             else
  999.                                             {
  1000.                                                 if (this.type == 106)
  1001.                                                 {
  1002.                                                     result = Lang.dialog(player, 137);
  1003.                                                 }
  1004.                                                 else
  1005.                                                 {
  1006.                                                     if (this.type == 108)
  1007.                                                     {
  1008.                                                         if (this.homeless)
  1009.                                                         {
  1010.                                                             int num24 = Main.rand.Next(3);
  1011.                                                             if (num24 == 0)
  1012.                                                             {
  1013.                                                                 result = Lang.dialog(player, 138);
  1014.                                                             }
  1015.                                                             else
  1016.                                                             {
  1017.                                                                 if (num24 == 1 && !player.male)
  1018.                                                                 {
  1019.                                                                     result = Lang.dialog(player, 139);
  1020.                                                                 }
  1021.                                                                 else
  1022.                                                                 {
  1023.                                                                     if (num24 == 1)
  1024.                                                                     {
  1025.                                                                         result = Lang.dialog(player, 140);
  1026.                                                                     }
  1027.                                                                     else
  1028.                                                                     {
  1029.                                                                         if (num24 == 2)
  1030.                                                                         {
  1031.                                                                             result = Lang.dialog(player, 141);
  1032.                                                                         }
  1033.                                                                     }
  1034.                                                                 }
  1035.                                                             }
  1036.                                                         }
  1037.                                                         else
  1038.                                                         {
  1039.                                                             if (player.male && flag9 && Main.rand.Next(6) == 0)
  1040.                                                             {
  1041.                                                                 result = Lang.dialog(player, 142);
  1042.                                                             }
  1043.                                                             else
  1044.                                                             {
  1045.                                                                 if (player.male && flag6 && Main.rand.Next(6) == 0)
  1046.                                                                 {
  1047.                                                                     result = Lang.dialog(player, 143);
  1048.                                                                 }
  1049.                                                                 else
  1050.                                                                 {
  1051.                                                                     if (player.male && flag8 && Main.rand.Next(6) == 0)
  1052.                                                                     {
  1053.                                                                         result = Lang.dialog(player, 144);
  1054.                                                                     }
  1055.                                                                     else
  1056.                                                                     {
  1057.                                                                         if (!player.male && flag2 && Main.rand.Next(6) == 0)
  1058.                                                                         {
  1059.                                                                             result = Lang.dialog(player, 145);
  1060.                                                                         }
  1061.                                                                         else
  1062.                                                                         {
  1063.                                                                             if (!player.male && flag7 && Main.rand.Next(6) == 0)
  1064.                                                                             {
  1065.                                                                                 result = Lang.dialog(player, 146);
  1066.                                                                             }
  1067.                                                                             else
  1068.                                                                             {
  1069.                                                                                 if (!player.male && flag4 && Main.rand.Next(6) == 0)
  1070.                                                                                 {
  1071.                                                                                     result = Lang.dialog(player, 147);
  1072.                                                                                 }
  1073.                                                                                 else
  1074.                                                                                 {
  1075.                                                                                     if (!Main.gameTime.dayTime)
  1076.                                                                                     {
  1077.                                                                                         int num25 = Main.rand.Next(3);
  1078.                                                                                         if (num25 == 0)
  1079.                                                                                         {
  1080.                                                                                             result = Lang.dialog(player, 148);
  1081.                                                                                         }
  1082.                                                                                         else
  1083.                                                                                         {
  1084.                                                                                             if (num25 == 1)
  1085.                                                                                             {
  1086.                                                                                                 result = Lang.dialog(player, 149);
  1087.                                                                                             }
  1088.                                                                                             else
  1089.                                                                                             {
  1090.                                                                                                 if (num25 == 2)
  1091.                                                                                                 {
  1092.                                                                                                     result = Lang.dialog(player, 150);
  1093.                                                                                                 }
  1094.                                                                                             }
  1095.                                                                                         }
  1096.                                                                                     }
  1097.                                                                                     else
  1098.                                                                                     {
  1099.                                                                                         int num26 = Main.rand.Next(5);
  1100.                                                                                         if (num26 == 0)
  1101.                                                                                         {
  1102.                                                                                             result = Lang.dialog(player, 151);
  1103.                                                                                         }
  1104.                                                                                         else
  1105.                                                                                         {
  1106.                                                                                             if (num26 == 1)
  1107.                                                                                             {
  1108.                                                                                                 result = Lang.dialog(player, 152);
  1109.                                                                                             }
  1110.                                                                                             else
  1111.                                                                                             {
  1112.                                                                                                 if (num26 == 2)
  1113.                                                                                                 {
  1114.                                                                                                     result = Lang.dialog(player, 153);
  1115.                                                                                                 }
  1116.                                                                                                 else
  1117.                                                                                                 {
  1118.                                                                                                     if (num26 == 3)
  1119.                                                                                                     {
  1120.                                                                                                         result = Lang.dialog(player, 154);
  1121.                                                                                                     }
  1122.                                                                                                     else
  1123.                                                                                                     {
  1124.                                                                                                         result = Lang.dialog(player, 155);
  1125.                                                                                                     }
  1126.                                                                                                 }
  1127.                                                                                             }
  1128.                                                                                         }
  1129.                                                                                     }
  1130.                                                                                 }
  1131.                                                                             }
  1132.                                                                         }
  1133.                                                                     }
  1134.                                                                 }
  1135.                                                             }
  1136.                                                         }
  1137.                                                     }
  1138.                                                     else
  1139.                                                     {
  1140.                                                         if (this.type == 123)
  1141.                                                         {
  1142.                                                             result = Lang.dialog(player, 156);
  1143.                                                         }
  1144.                                                         else
  1145.                                                         {
  1146.                                                             if (this.type == 124)
  1147.                                                             {
  1148.                                                                 if (this.homeless)
  1149.                                                                 {
  1150.                                                                     int num27 = Main.rand.Next(4);
  1151.                                                                     if (num27 == 0)
  1152.                                                                     {
  1153.                                                                         result = Lang.dialog(player, 157);
  1154.                                                                     }
  1155.                                                                     else
  1156.                                                                     {
  1157.                                                                         if (num27 == 1)
  1158.                                                                         {
  1159.                                                                             result = Lang.dialog(player, 158);
  1160.                                                                         }
  1161.                                                                         else
  1162.                                                                         {
  1163.                                                                             if (num27 == 2)
  1164.                                                                             {
  1165.                                                                                 result = Lang.dialog(player, 159);
  1166.                                                                             }
  1167.                                                                             else
  1168.                                                                             {
  1169.                                                                                 result = Lang.dialog(player, 160);
  1170.                                                                             }
  1171.                                                                         }
  1172.                                                                     }
  1173.                                                                 }
  1174.                                                                 else
  1175.                                                                 {
  1176.                                                                     if (Main.gameTime.bloodMoon)
  1177.                                                                     {
  1178.                                                                         int num28 = Main.rand.Next(4);
  1179.                                                                         if (num28 == 0)
  1180.                                                                         {
  1181.                                                                             result = Lang.dialog(player, 161);
  1182.                                                                         }
  1183.                                                                         else
  1184.                                                                         {
  1185.                                                                             if (num28 == 1)
  1186.                                                                             {
  1187.                                                                                 result = Lang.dialog(player, 162);
  1188.                                                                             }
  1189.                                                                             else
  1190.                                                                             {
  1191.                                                                                 if (num28 == 2)
  1192.                                                                                 {
  1193.                                                                                     result = Lang.dialog(player, 163);
  1194.                                                                                 }
  1195.                                                                                 else
  1196.                                                                                 {
  1197.                                                                                     result = Lang.dialog(player, 164);
  1198.                                                                                 }
  1199.                                                                             }
  1200.                                                                         }
  1201.                                                                     }
  1202.                                                                     else
  1203.                                                                     {
  1204.                                                                         if (flag8 && Main.rand.Next(6) == 0)
  1205.                                                                         {
  1206.                                                                             result = Lang.dialog(player, 165);
  1207.                                                                         }
  1208.                                                                         else
  1209.                                                                         {
  1210.                                                                             if (flag3 && Main.rand.Next(6) == 0)
  1211.                                                                             {
  1212.                                                                                 result = Lang.dialog(player, 166);
  1213.                                                                             }
  1214.                                                                             else
  1215.                                                                             {
  1216.                                                                                 int num29 = Main.rand.Next(3);
  1217.                                                                                 if (num29 == 0)
  1218.                                                                                 {
  1219.                                                                                     result = Lang.dialog(player, 167);
  1220.                                                                                 }
  1221.                                                                                 else
  1222.                                                                                 {
  1223.                                                                                     if (num29 == 1)
  1224.                                                                                     {
  1225.                                                                                         result = Lang.dialog(player, 168);
  1226.                                                                                     }
  1227.                                                                                     else
  1228.                                                                                     {
  1229.                                                                                         result = Lang.dialog(player, 169);
  1230.                                                                                     }
  1231.                                                                                 }
  1232.                                                                             }
  1233.                                                                         }
  1234.                                                                     }
  1235.                                                                 }
  1236.                                                             }
  1237.                                                             else
  1238.                                                             {
  1239.                                                                 if (this.type == 22)
  1240.                                                                 {
  1241.                                                                     if (Main.gameTime.bloodMoon)
  1242.                                                                     {
  1243.                                                                         int num30 = Main.rand.Next(3);
  1244.                                                                         if (num30 == 0)
  1245.                                                                         {
  1246.                                                                             result = Lang.dialog(player, 170);
  1247.                                                                         }
  1248.                                                                         else
  1249.                                                                         {
  1250.                                                                             if (num30 == 1)
  1251.                                                                             {
  1252.                                                                                 result = Lang.dialog(player, 171);
  1253.                                                                             }
  1254.                                                                             else
  1255.                                                                             {
  1256.                                                                                 result = Lang.dialog(player, 172);
  1257.                                                                             }
  1258.                                                                         }
  1259.                                                                     }
  1260.                                                                     else
  1261.                                                                     {
  1262.                                                                         if (!Main.gameTime.dayTime)
  1263.                                                                         {
  1264.                                                                             result = Lang.dialog(player, 173);
  1265.                                                                         }
  1266.                                                                         else
  1267.                                                                         {
  1268.                                                                             int num31 = Main.rand.Next(3);
  1269.                                                                             if (num31 == 0)
  1270.                                                                             {
  1271.                                                                                 result = Lang.dialog(player, 174);
  1272.                                                                             }
  1273.                                                                             else
  1274.                                                                             {
  1275.                                                                                 if (num31 == 1)
  1276.                                                                                 {
  1277.                                                                                     result = Lang.dialog(player, 175);
  1278.                                                                                 }
  1279.                                                                                 else
  1280.                                                                                 {
  1281.                                                                                     result = Lang.dialog(player, 176);
  1282.                                                                                 }
  1283.                                                                             }
  1284.                                                                         }
  1285.                                                                     }
  1286.                                                                 }
  1287.                                                                 else
  1288.                                                                 {
  1289.                                                                     if (this.type == 142)
  1290.                                                                     {
  1291.                                                                         int num32 = Main.rand.Next(3);
  1292.                                                                         if (num32 == 0)
  1293.                                                                         {
  1294.                                                                             result = Lang.dialog(player, 224);
  1295.                                                                         }
  1296.                                                                         else
  1297.                                                                         {
  1298.                                                                             if (num32 == 1)
  1299.                                                                             {
  1300.                                                                                 result = Lang.dialog(player, 225);
  1301.                                                                             }
  1302.                                                                             else
  1303.                                                                             {
  1304.                                                                                 if (num32 == 2)
  1305.                                                                                 {
  1306.                                                                                     result = Lang.dialog(player, 226);
  1307.                                                                                 }
  1308.                                                                             }
  1309.                                                                         }
  1310.                                                                     }
  1311.                                                                 }
  1312.                                                             }
  1313.                                                         }
  1314.                                                     }
  1315.                                                 }
  1316.                                             }
  1317.                                         }
  1318.                                     }
  1319.                                 }
  1320.                             }
  1321.                         }
  1322.                     }
  1323.                 }
  1324.             }
  1325.             return result;
  1326.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement