Adilol

Cities in C# RPG

Sep 6th, 2011
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 103.98 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Cities : Info
  10.     {
  11.         public void Shang()
  12.         {
  13.  
  14.             while (alive)
  15.             {
  16.                 mov.Action();
  17.                 if (location == 1)
  18.                 {
  19.                     //this controls events
  20.                     if (x > 1 & x < 6 & y == 15)
  21.                     {
  22.                         if (hasweapon > 0)
  23.                         {
  24.                             Console.Clear();
  25.                             Console.SetCursorPosition(25, 11);
  26.                             Console.WriteLine("You venture into the Wild");
  27.                             Thread.Sleep(2000);
  28.                             Console.Clear();
  29.                             location = 3;
  30.                             x = 50;
  31.                             y = 14;
  32.                             ma.SoutheastWarren();
  33.                         }
  34.                         else
  35.                         {
  36.                             Console.Clear();
  37.                             Console.WriteLine("You should invest on a weapon before venturing into the wild.");
  38.                             Thread.Sleep(2000);
  39.                             Console.Clear();
  40.                             x = 30;
  41.                             y = 11;
  42.                         }
  43.  
  44.                     }
  45.                     if (y == 7 & x > 1 & x < 12)
  46.                     {
  47.                         Console.Clear();
  48.                         que.Hexquest();
  49.                     }
  50.                     if (x > 57 & x < 70 & y == 10)
  51.                     {
  52.                         Console.Clear();
  53.                         Console.SetCursorPosition(16, 11);
  54.                         Console.WriteLine("You walk towards the crowded and noisy Town Square\n");
  55.                         Thread.Sleep(2000);
  56.                         Console.Clear();
  57.                         x = 5;
  58.                         y = 11;
  59.                         location = 2;
  60.                         cit.Shang();
  61.                     }
  62.                 }
  63.                 if (location == 2)
  64.                 {
  65.  
  66.                     //this controls events
  67.                     if (x > 2 & x < 17 & y == 4)
  68.                     {
  69.                         if (receivedgold == 1)
  70.                         {
  71.                             Console.Clear();
  72.                             Console.SetCursorPosition(25, 11);
  73.                             Console.WriteLine("I should go back and talk to hex");
  74.                             Thread.Sleep(1500);
  75.                             Console.Clear();
  76.                             y = y + 1;
  77.                             break;
  78.                         }
  79.  
  80.                         Console.Clear();
  81.                         Console.SetCursorPosition(25, 11);
  82.                         Console.WriteLine("You enter the General Store");
  83.                         Thread.Sleep(2000);
  84.                         Console.Clear();
  85.  
  86.                         Console.WriteLine("Clerk: Hello, what can i do for you today?\n");
  87.                         while (alive)
  88.                         {
  89.                             Console.WriteLine("1. Buy Items");
  90.                             Console.WriteLine("2. Sell Items");
  91.                             Console.WriteLine("\nPress Enter to go back");
  92.                             string watgen = Console.ReadLine();
  93.                             Console.Clear();
  94.                             if (watgen == "1")
  95.                             {
  96.                                 Console.WriteLine("Clerk: Certainly, here's my products\n");
  97.                                 Console.WriteLine("1. Potions       10 Gold each");
  98.                                 string generalbuy = Console.ReadLine();
  99.                                 if (watgen == "1")
  100.                                 {
  101.                                     Console.Write("Clerk: How many would you like?          ");
  102.                                     Console.ForegroundColor = ConsoleColor.Yellow;
  103.                                     Console.Write("Current gold: {0}\n", gold);
  104.                                     Console.ForegroundColor = ConsoleColor.White;
  105.                                     int howmanypotgeneral1 = int.Parse(Console.ReadLine());
  106.                                     if (howmanypotgeneral1 * 10 > gold)
  107.                                     {
  108.                                         Console.WriteLine("Clerk: You don't have enough gold to buy that many.");
  109.                                     }
  110.                                     else
  111.                                         if (howmanypotgeneral1 * 10 <= gold)
  112.                                         {
  113.                                             Console.WriteLine("Clerk: Certainly, here you go.");
  114.                                             gold = gold - howmanypotgeneral1 * 10;
  115.                                             potions = potions + howmanypotgeneral1;
  116.                                         }
  117.                                 }
  118.                             }
  119.                             else
  120.                                 if (watgen == "2")
  121.                                 {
  122.                                     Console.WriteLine("Clerk: Lets see what you have\n");
  123.                                 }
  124.                                 else
  125.                                 {
  126.                                     y = y + 1;
  127.                                     break;
  128.                                 }
  129.                         }
  130.                     }
  131.  
  132.                     if (x > 27 & x < 42 & y == 4)//if player reaches weapon shop
  133.                     {
  134.                         if (receivedgold == 1)
  135.                         {
  136.                             Console.Clear();
  137.                             Console.SetCursorPosition(25, 11);
  138.                             Console.WriteLine("I should go back and talk to hex");
  139.                             Thread.Sleep(1500);
  140.                             Console.Clear();
  141.                             y = y + 1;
  142.                             break;
  143.                         }
  144.                         Console.Clear();
  145.                         Console.SetCursorPosition(25, 11);
  146.                         Console.WriteLine("You enter the Weapons shop\n");
  147.                         Thread.Sleep(1500);
  148.                         Console.Clear();
  149.                         Console.WriteLine("Blacksmith: Welcome.\n");
  150.                         while (alive)
  151.                         {
  152.                             Console.WriteLine("1. Buy Weapons.");
  153.                             Console.WriteLine("2. Sell Weapons.");
  154.                             Console.WriteLine("\nPress Enter to go back");
  155.                             string blacksmith = Console.ReadLine();
  156.                             Console.Clear();
  157.                             if (blacksmith == "1")
  158.                             {
  159.                                 while (alive)
  160.                                 {
  161.                                     Console.Write("Blacksmith: Take a look at my merchandise            ");
  162.                                     Console.ForegroundColor = ConsoleColor.Yellow;
  163.                                     Console.Write("Current gold: {0}\n", gold);
  164.                                     Console.ForegroundColor = ConsoleColor.White;
  165.                                     Console.WriteLine("1. Bronze dagger    attack: +1  strength: +4     25 gold\n");
  166.                                     Console.WriteLine("2. Bronze Sword     attack: +0  strength: +7    40 gold");
  167.                                     string black = Console.ReadLine();
  168.                                     if (black == "1" & gold >= 25)
  169.                                     {
  170.                                         gold = gold - 25;
  171.                                         numberofbronzedaggers = numberofbronzedaggers + 1;
  172.                                         Console.WriteLine("Blacksmith: Would you like to equip it?  y/n");
  173.                                         string equipask = Console.ReadLine();
  174.                                         if (equipask == "y")
  175.                                         {
  176.                                             wep.EquipBronzeDagger();
  177.                                         }
  178.                                         Console.WriteLine("Blacksmith: Thank you for your business.\n");
  179.                                         Thread.Sleep(1000);
  180.                                         break;
  181.                                     }
  182.                                     else
  183.                                         if (black == "1" & gold < 25)
  184.                                         {
  185.                                             Console.WriteLine("Blacksmith: You don't have enough money.");
  186.                                             Thread.Sleep(1000);
  187.                                             Console.Clear();
  188.                                             break;
  189.                                         }
  190.                                         else
  191.                                             if (black == "2" & gold >= 40)
  192.                                             {
  193.                                                 numberofbronzeswords = numberofbronzeswords + 1;
  194.                                                 gold = gold - 40;
  195.                                                 Console.WriteLine("Blacksmith: Would you like to equip it?  y/n");
  196.                                                 string equipswordask = Console.ReadLine();
  197.                                                 if (equipswordask == "y")
  198.                                                 {
  199.                                                     wep.EquipBronzeSword();
  200.                                                 }
  201.                                                 Console.WriteLine("Blacksmith: Thank you for your business.\n");
  202.                                                 Thread.Sleep(1000);
  203.                                                 break;
  204.                                             }
  205.                                             else
  206.                                                 if (black == "2" & gold < 40)
  207.                                                 {
  208.                                                     Console.WriteLine("Blacksmith: You don't have enough money.");
  209.                                                     Thread.Sleep(1000);
  210.                                                     Console.Clear();
  211.                                                     break;
  212.                                                 }
  213.                                 }
  214.                             }
  215.                             else
  216.                                 if (blacksmith == "2")
  217.                                 {
  218.                                     while (alive)
  219.                                     {
  220.                                         Console.Write("Blacksmith: Let's take a look at what you have.          ");
  221.                                         Console.ForegroundColor = ConsoleColor.Yellow;
  222.                                         Console.Write("Current gold: {0}\n", gold);
  223.                                         Console.ForegroundColor = ConsoleColor.White;
  224.                                         Console.WriteLine("\nType the name of the Item you wish to sell, Or Press Enter to go back");
  225.                                         Console.WriteLine("_________________________________________________________________________");
  226.                                         if (numberofbronzedaggers > 0)
  227.                                         {
  228.                                             Console.WriteLine("Bronze Dagger =  10 Gold     x {0}", numberofbronzedaggers);
  229.                                         }
  230.                                         if (numberofbronzeswords > 0)
  231.                                         {
  232.                                             Console.WriteLine("Bronze Sword  =  20 Gold     x {0}", numberofbronzeswords);
  233.                                         }
  234.                                         if (numberofironspears > 0)
  235.                                         {
  236.                                             Console.WriteLine("Iron Spear    =  15 Gold     x {0}", numberofironspears);
  237.                                         }
  238.                                         string sellweaponone = Console.ReadLine();
  239.                                         switch (sellweaponone.ToLower())
  240.                                         {
  241.                                             case "bronze dagger":
  242.                                                 if (numberofbronzedaggers > 0)
  243.                                                 {
  244.                                                     Console.WriteLine("How many would you like to sell?");
  245.                                                     int hm = int.Parse(Console.ReadLine());
  246.                                                     if (hm > numberofbronzedaggers)
  247.                                                     {
  248.                                                         Console.WriteLine("Not enough bronze daggers");
  249.                                                         break;
  250.                                                     }
  251.                                                     else
  252.                                                     {
  253.                                                         Console.WriteLine("Blacksmith: Thank you");
  254.                                                         numberofbronzedaggers = numberofbronzedaggers - hm;
  255.                                                         gold = hm * 10 + gold;
  256.                                                         break;
  257.                                                     }
  258.                                                 }
  259.                                                 break;
  260.                                             case "bronze sword":
  261.                                                 if (numberofbronzeswords > 0)
  262.                                                 {
  263.                                                     Console.WriteLine("How many would you like to sell?");
  264.                                                     int hm = int.Parse(Console.ReadLine());
  265.                                                     if (hm > numberofbronzeswords)
  266.                                                     {
  267.                                                         Console.WriteLine("Not enough bronze swords");
  268.                                                         break;
  269.                                                     }
  270.                                                     else
  271.                                                     {
  272.                                                         Console.WriteLine("Blacksmith: Thank you");
  273.                                                         numberofbronzeswords = numberofbronzeswords - hm;
  274.                                                         gold = hm * 20 + gold;
  275.                                                         break;
  276.                                                     }
  277.                                                 }
  278.                                                 break;
  279.                                             case "iron spear":
  280.                                                 if (numberofironspears > 0)
  281.                                                 {
  282.                                                     Console.WriteLine("How many would you like to sell?");
  283.                                                     int hm = int.Parse(Console.ReadLine());
  284.                                                     if (hm > numberofironspears)
  285.                                                     {
  286.                                                         Console.WriteLine("Not enough spears");
  287.                                                         break;
  288.                                                     }
  289.                                                     else
  290.                                                     {
  291.                                                         Console.WriteLine("Blacksmith: Thank you");
  292.                                                         numberofironspears = numberofironspears - hm;
  293.                                                         gold = hm * 15 + gold;
  294.                                                         break;
  295.                                                     }
  296.                                                 }
  297.                                                 break;
  298.                                         }
  299.                                         break;
  300.                                     }
  301.                                     wep.CheckForWeapon();
  302.                                 }
  303.                                 else
  304.                                 {
  305.                                     y = y + 1;
  306.                                     break;
  307.                                 }
  308.                         }
  309.                     }
  310.                     if (x > 47 & x < 60 & y == 4)//if player reaches armor shop
  311.                     {
  312.                         if (receivedgold == 1)
  313.                         {
  314.                             Console.Clear();
  315.                             Console.SetCursorPosition(25, 11);
  316.                             Console.WriteLine("I should go back and talk to hex");
  317.                             Thread.Sleep(1500);
  318.                             Console.Clear();
  319.                             y = y + 1;
  320.                             break;
  321.                         }
  322.                         Console.Clear();
  323.                         Console.SetCursorPosition(25, 11);
  324.                         Console.WriteLine("You enter the Armor shop\n");
  325.                         Thread.Sleep(1500);
  326.                         Console.Clear();
  327.                         Console.WriteLine("Armorer: Welcome.\n");
  328.                         while (alive)
  329.                         {
  330.                             Console.WriteLine("1. Buy Armor.");
  331.                             Console.WriteLine("2. Sell Armor.");
  332.                             if (questcompleted2 == 0)
  333.                             {
  334.                                 Console.WriteLine("3. Quest.");
  335.                             }
  336.                             Console.WriteLine("\nPress Enter to go back");
  337.                             string armorer = Console.ReadLine();
  338.                             Console.Clear();
  339.                             if (armorer == "1")
  340.                             {
  341.                                 Console.Write("Armorer: Take a look at my merchandise.           ");
  342.                                 Console.ForegroundColor = ConsoleColor.Yellow;
  343.                                 Console.Write("Current gold: {0}\n", gold);
  344.                                 Console.ForegroundColor = ConsoleColor.White;
  345.                                 Console.WriteLine("1. Leather Helm          15 gold");
  346.                                 Console.WriteLine("2. Leather Chest Armor   30 gold");
  347.                                 Console.WriteLine("3. Leather Leggings      15 gold");
  348.                                 Console.WriteLine("\nPress Enter to go back");
  349.                                 string buyarmor = Console.ReadLine();
  350.                                 if (buyarmor == "1" & gold >= 15)
  351.                                 {
  352.                                     Console.WriteLine("Armorer: Would you like to equip it?    y/n");
  353.                                     string equipask1 = Console.ReadLine();
  354.                                     if (equipask1 == "y")
  355.                                     {
  356.                                         arm.EquipLeatherHelm();
  357.                                     }
  358.                                     gold = gold - 15;
  359.                                     numberofleatherhelms = numberofleatherhelms + 1;
  360.                                     Console.WriteLine("Armorer: Thank you for your business\n");
  361.                                 }
  362.                                 else
  363.                                     if (buyarmor == "1" & gold < 15)
  364.                                     {
  365.                                         Console.WriteLine("Armorer: You don't have enough money.");
  366.                                         Thread.Sleep(1000);
  367.                                         Console.Clear();
  368.                                     }
  369.                                     else
  370.                                         if (buyarmor == "2" & gold >= 30)
  371.                                         {
  372.                                             Console.WriteLine("Armorer: Would you like to equip it?    y/n");
  373.                                             string equipask2 = Console.ReadLine();
  374.                                             if (equipask2 == "y")
  375.                                             {
  376.                                                 arm.EquipLeatherChest();
  377.                                             }
  378.                                             gold = gold - 30;
  379.                                             numberofleatherchest = numberofleatherchest + 1;
  380.                                             Console.WriteLine("Armorer: Thank you for your business\n");
  381.                                         }
  382.                                         else
  383.                                             if (buyarmor == "2" & gold < 30)
  384.                                             {
  385.                                                 Console.WriteLine("Armorer: You don't have enough money.");
  386.                                                 Thread.Sleep(1000);
  387.                                                 Console.Clear();
  388.                                             }
  389.                                             else
  390.                                                 if (buyarmor == "3" & gold >= 15)
  391.                                                 {
  392.                                                     Console.WriteLine("Armorer: Would you like to equip it?    y/n");
  393.                                                     string equipask3 = Console.ReadLine();
  394.                                                     if (equipask3 == "y")
  395.                                                     {
  396.                                                         arm.EquipLeatherLeg();
  397.                                                     }
  398.                                                     gold = gold - 15;
  399.                                                     numberofleatherlegs = numberofleatherlegs + 1;
  400.                                                     Console.WriteLine("Armorer: Thank you for your business\n");
  401.                                                 }
  402.                                                 else
  403.                                                     if (buyarmor == "3" & gold < 15)
  404.                                                     {
  405.                                                         Console.WriteLine("Armorer: You don't have enough money.");
  406.                                                         Thread.Sleep(1000);
  407.                                                         Console.Clear();
  408.                                                     }
  409.                             }
  410.                             else
  411.                                 if (armorer == "2")
  412.                                 {
  413.                                     Console.WriteLine("Armorer: What would you like to sell?");
  414.                                     Console.WriteLine("\nType the name of the Item you wish to sell, Or Press Enter to go back");
  415.                                     Console.WriteLine("_________________________________________________________________________");
  416.                                     if (rattails > 0)
  417.                                     {
  418.                                         Console.WriteLine("Rat tails         = 5 Gold    x {0}", rattails);
  419.                                     }
  420.                                     if (numberofleatherhelms > 0)
  421.                                     {
  422.                                         Console.WriteLine("Leather Helm      = 5 Gold    x {0}", numberofleatherhelms);
  423.                                     }
  424.                                     if (numberofleatherlegs > 0)
  425.                                     {
  426.                                         Console.WriteLine("Leather Leggings  = 5 Gold    x {0}", numberofleatherlegs);
  427.                                     }
  428.                                     if (numberofleatherchest > 0)
  429.                                     {
  430.                                         Console.WriteLine("Leather Chest     = 10 Gold   x {0}", numberofleatherchest);
  431.                                     }
  432.                                     if (numberofironhelms > 0)
  433.                                     {
  434.                                         Console.WriteLine("Iron Helm         = 10 Gold   x {0}", numberofironhelms);
  435.                                     }
  436.                                     if (numberofironlegs > 0)
  437.                                     {
  438.                                         Console.WriteLine("Iron Leggings     = 10 Gold   x {0}", numberofironlegs);
  439.                                     }
  440.                                     if (numberofironchest > 0)
  441.                                     {
  442.                                         Console.WriteLine("Iron Chest        = 20 Gold   x {0}", numberofironchest);
  443.                                     }
  444.                                     string whatkindarmor = Console.ReadLine();
  445.                                     switch (whatkindarmor.ToLower())
  446.                                     {
  447.                                         case "rat tails":
  448.                                         case "rat tail":
  449.                                             if (rattails > 0)
  450.                                             {
  451.                                                 Console.WriteLine("How many would you like to sell?");
  452.                                                 int hm = int.Parse(Console.ReadLine());
  453.                                                 if (hm > rattails)
  454.                                                 {
  455.                                                     Console.WriteLine("Not enough Rat tails");
  456.                                                     break;
  457.                                                 }
  458.                                                 else
  459.                                                 {
  460.                                                     Console.WriteLine("Armorer: Thank you");
  461.                                                     rattails = rattails - hm;
  462.                                                     gold = hm * 5 + gold;
  463.                                                     break;
  464.                                                 }
  465.                                             }
  466.                                             break;
  467.                                         case "leather helm":
  468.                                         case "leather helmet":
  469.                                         case "leather helms":
  470.                                         case "leather helmets":
  471.                                             if (numberofleatherhelms > 0)
  472.                                             {
  473.                                                 Console.WriteLine("How many would you like to sell?");
  474.                                                 int hm = int.Parse(Console.ReadLine());
  475.                                                 if (hm > numberofleatherhelms)
  476.                                                 {
  477.                                                     Console.WriteLine("Not enough leather helmets");
  478.                                                     break;
  479.                                                 }
  480.                                                 else
  481.                                                 {
  482.                                                     Console.WriteLine("Armorer: Thank you");
  483.                                                     numberofleatherhelms = numberofleatherhelms - hm;
  484.                                                     gold = hm * 5 + gold;
  485.                                                     break;
  486.                                                 }
  487.                                             }
  488.                                             break;
  489.                                         case "leather leggings":
  490.                                         case "leather legging":
  491.                                         case "leather leg":
  492.                                         case "leather legs":
  493.                                             if (numberofleatherlegs > 0)
  494.                                             {
  495.                                                 Console.WriteLine("How many would you like to sell?");
  496.                                                 int hm = int.Parse(Console.ReadLine());
  497.                                                 if (hm > numberofleatherlegs)
  498.                                                 {
  499.                                                     Console.WriteLine("Not enough leather leggings");
  500.                                                     break;
  501.                                                 }
  502.                                                 else
  503.                                                 {
  504.                                                     Console.WriteLine("Armorer: Thank you");
  505.                                                     numberofleatherlegs = numberofleatherlegs - hm;
  506.                                                     gold = hm * 5 + gold;
  507.                                                     break;
  508.                                                 }
  509.                                             }
  510.                                             break;
  511.                                         case "leather chest":
  512.                                         case "leather chests":
  513.                                             if (numberofleatherchest > 0)
  514.                                             {
  515.                                                 Console.WriteLine("How many would you like to sell?");
  516.                                                 int hm = int.Parse(Console.ReadLine());
  517.                                                 if (hm > numberofleatherchest)
  518.                                                 {
  519.                                                     Console.WriteLine("Not enough leather Chests");
  520.                                                     break;
  521.                                                 }
  522.                                                 else
  523.                                                 {
  524.                                                     Console.WriteLine("Armorer: Thank you");
  525.                                                     numberofleatherchest = numberofleatherchest - hm;
  526.                                                     gold = hm * 10 + gold;
  527.                                                     break;
  528.                                                 }
  529.                                             }
  530.                                             break;
  531.                                         case "iron helm":
  532.                                         case "iron helmet":
  533.                                         case "iron helms":
  534.                                         case "iron helmets":
  535.                                             if (numberofironhelms > 0)
  536.                                             {
  537.                                                 Console.WriteLine("How many would you like to sell?");
  538.                                                 int hm = int.Parse(Console.ReadLine());
  539.                                                 if (hm > numberofironhelms)
  540.                                                 {
  541.                                                     Console.WriteLine("Not enough Iron helmets");
  542.                                                     break;
  543.                                                 }
  544.                                                 else
  545.                                                 {
  546.                                                     Console.WriteLine("Armorer: Thank you");
  547.                                                     numberofironhelms = numberofironhelms - hm;
  548.                                                     gold = hm * 10 + gold;
  549.                                                     break;
  550.                                                 }
  551.                                             }
  552.                                             break;
  553.                                         case "iron leggings":
  554.                                         case "iron legging":
  555.                                         case "iron leg":
  556.                                         case "iron legs":
  557.                                             if (numberofironlegs > 0)
  558.                                             {
  559.                                                 Console.WriteLine("How many would you like to sell?");
  560.                                                 int hm = int.Parse(Console.ReadLine());
  561.                                                 if (hm > numberofironlegs)
  562.                                                 {
  563.                                                     Console.WriteLine("Not enough Iron leggings");
  564.                                                     break;
  565.                                                 }
  566.                                                 else
  567.                                                 {
  568.                                                     Console.WriteLine("Armorer: Thank you");
  569.                                                     numberofironlegs = numberofironlegs - hm;
  570.                                                     gold = hm * 10 + gold;
  571.                                                     break;
  572.                                                 }
  573.                                             }
  574.                                             break;
  575.                                         case "iron chest":
  576.                                         case "iron chests":
  577.                                             if (numberofironchest > 0)
  578.                                             {
  579.                                                 Console.WriteLine("How many would you like to sell?");
  580.                                                 int hm = int.Parse(Console.ReadLine());
  581.                                                 if (hm > numberofironchest)
  582.                                                 {
  583.                                                     Console.WriteLine("Not enough Iron Chests");
  584.                                                     break;
  585.                                                 }
  586.                                                 else
  587.                                                 {
  588.                                                     Console.WriteLine("Armorer: Thank you");
  589.                                                     numberofironchest = numberofironchest - hm;
  590.                                                     gold = hm * 20 + gold;
  591.                                                     break;
  592.                                                 }
  593.                                             }
  594.                                             break;
  595.                                     }
  596.                                 }
  597.                                 else
  598.                                     if (armorer == "3" & questcompleted2 == 0)
  599.                                     {
  600.                                         que.Materials();
  601.                                     }
  602.                                     else
  603.                                     {
  604.                                         y = y + 1;
  605.                                         break;
  606.                                     }
  607.                         }
  608.  
  609.                     }
  610.                     if (x > 17 & x < 29 & y == 20)//if player reaches pawnshop
  611.                     {
  612.                         y = y + 1;
  613.                         if (killedmerchant == 0)
  614.                         {
  615.                             if (talkedtomerchant1 == 1 & questcompleted1 == 0)
  616.                             {
  617.                                 Console.Clear();
  618.                                 Console.SetCursorPosition(6, 11);
  619.                                 Console.WriteLine("As you step into the Pawnshop you notice there's no customers around\n");//player goes to the pawnshop
  620.                                 Thread.Sleep(4000);
  621.                                 Console.Clear();
  622.                             }
  623.                             Console.Clear();
  624.                             Console.SetCursorPosition(25, 11);
  625.                             Console.WriteLine("You enter the Pawnshop\n");
  626.                             Thread.Sleep(1500);
  627.                             Console.Clear();
  628.  
  629.                             while (alive)
  630.                             {
  631.                                 Console.WriteLine("Merchant: Hello, what can i help you with?\n");
  632.                                 Console.WriteLine("1. Buy Items");
  633.                                 Console.WriteLine("2. Sell Items");
  634.                                 if (questgiven1 == 1 & questcompleted1 == 0 & questsemicompleted1 == 0)
  635.                                 {
  636.                                     Console.WriteLine("3. Ask about the gold");//go here if quest was given by hex
  637.                                 }
  638.                                 Console.WriteLine("\nPress Enter to go back");
  639.                                 string compone = Console.ReadLine();
  640.                                 Console.Clear();
  641.                                 if (compone == "1")
  642.                                 {
  643.                                     while (alive)
  644.                                     {
  645.                                         Console.Write("Merchant: Take a look at my fine wares");//player buys items COMPLETE LATER
  646.                                         Console.ForegroundColor = ConsoleColor.Yellow;
  647.                                         Console.Write("             Current Gold: {0}\n", gold);
  648.                                         Console.ForegroundColor = ConsoleColor.White;
  649.                                         if (madedeal == 1)
  650.                                         {
  651.                                             Console.WriteLine("1. Iron Chest Plate   30 Gold");
  652.                                             Console.WriteLine("2. Iron Spear         30 Gold");
  653.                                             Console.WriteLine("\nPress Enter to go back");
  654.                                             string buycheap = Console.ReadLine();
  655.                                             if (buycheap == "1")
  656.                                             {
  657.                                                 if (gold >= 30)
  658.                                                 {
  659.  
  660.                                                     Console.WriteLine("\nWould you like to equip it?");
  661.                                                     string equipironchestc = Console.ReadLine();
  662.                                                     if (equipironchestc == "y")
  663.                                                     {
  664.                                                         arm.EquipIronChest();
  665.                                                     }
  666.                                                     Console.WriteLine("Merchant: Thank you for your business\n");
  667.                                                     numberofironchest = numberofironchest + 1;
  668.                                                     gold = gold - 30;
  669.                                                 }
  670.                                                 if (gold < 30)
  671.                                                 {
  672.                                                     Console.WriteLine("Merchant: You don't have enough gold");
  673.                                                 }
  674.                                             }
  675.                                             else
  676.                                                 if (buycheap == "2")
  677.                                                 {
  678.                                                     if (gold >= 30)
  679.                                                     {
  680.                                                         Console.WriteLine("\nWould you like to equip it?");
  681.                                                         string equipironspearc = Console.ReadLine();
  682.                                                         if (equipironspearc == "y")
  683.                                                         {
  684.                                                             wep.EquipIronSpear();
  685.                                                         }
  686.                                                         Console.WriteLine("Merchant: Thank you for your business\n");
  687.                                                         numberofironspears = numberofironspears + 1;
  688.                                                         gold = gold - 30;
  689.                                                     }
  690.                                                     if (gold < 30)
  691.                                                     {
  692.                                                         Console.WriteLine("Merchant: You don't have enough gold");
  693.                                                     }
  694.                                                 }
  695.                                                 else
  696.                                                 {
  697.                                                     break;
  698.                                                 }
  699.                                         }
  700.                                         else
  701.                                             if (madedeal == 0)
  702.                                             {
  703.                                                 Console.WriteLine("1. Iron Chest Plate   50 Gold");
  704.                                                 Console.WriteLine("2. Iron Spear         50 Gold");
  705.                                                 Console.WriteLine("\nPress Enter to go back");
  706.                                                 string buycheap = Console.ReadLine();
  707.                                                 if (buycheap == "1")
  708.                                                 {
  709.                                                     if (gold >= 50)
  710.                                                     {
  711.                                                         numberofironchest = numberofironchest + 1;
  712.                                                         gold = gold - 50;
  713.                                                         Console.WriteLine("\nWould you like to equip it?");
  714.                                                         string equipironchest = Console.ReadLine();
  715.                                                         if (equipironchest == "y")
  716.                                                         {
  717.                                                             arm.EquipIronChest();
  718.                                                         }
  719.                                                         Console.WriteLine("Merchant: Thank you for your business\n");
  720.                                                     }
  721.                                                     if (gold < 50)
  722.                                                     {
  723.                                                         Console.WriteLine("Merchant: You don't have enough gold");
  724.                                                     }
  725.                                                 }
  726.                                                 else
  727.                                                     if (buycheap == "2")
  728.                                                     {
  729.                                                         if (gold >= 50)
  730.                                                         {
  731.                                                             numberofironspears = numberofironspears + 1;
  732.                                                             gold = gold - 50;
  733.                                                             Console.WriteLine("\nWould you like to equip it? y/n");
  734.                                                             string equipironspear = Console.ReadLine();
  735.                                                             if (equipironspear == "y")
  736.                                                             {
  737.                                                                 wep.EquipIronSpear();
  738.                                                             }
  739.                                                             Console.WriteLine("Merchant: Thank you for your business\n");
  740.                                                         }
  741.                                                         if (gold < 50)
  742.                                                         {
  743.                                                             Console.WriteLine("Merchant: You don't have enough gold");
  744.                                                         }
  745.                                                     }
  746.                                                     else
  747.                                                     {
  748.                                                         break;
  749.                                                     }
  750.                                             }
  751.                                     }
  752.                                 }
  753.                                 else
  754.                                     if (compone == "2")
  755.                                     {
  756.                                         Console.WriteLine("Merchant: Sure, let's take a look.");//player sells items COMPLETE LATER
  757.                                     }
  758.                                     else
  759.                                         if (compone == "3" & questgiven1 == 1)//player asks about gold
  760.                                         {
  761.                                             if (talkedtomerchant1 == 0 & questcompleted1 == 0 & questsemicompleted1 == 0)
  762.                                             {
  763.                                                 Console.WriteLine("Merchant: uh.. I don't know what you're talking about, you must have me confused for someone else.\n");
  764.                                                 Console.WriteLine("1. I don't have time for your games, either give me the gold or die");
  765.                                                 Console.WriteLine("2. Don't worry, maybe we can work something out.");
  766.                                                 string choice = Console.ReadLine();
  767.                                                 if (choice == "1" & sword == 0)
  768.                                                 {
  769.                                                     Console.WriteLine("Merchant: Ha ha ha, You are threatening me? you look as dangerous as a duck, getout of here.");
  770.                                                     Thread.Sleep(4500);
  771.                                                     talkedtomerchant1 = 1;
  772.                                                     Console.WriteLine("\nPress Enter to continue");
  773.                                                     Console.ReadLine();
  774.                                                     Console.Clear();
  775.                                                     break;
  776.                                                 }
  777.                                                 else
  778.                                                     if (choice == "2")
  779.                                                     {
  780.                                                         Console.WriteLine("Merchant: Really? Well, i do owe him some gold but the old fart is so old i doubt he'll last more than a couple months, there's no point in paying a dying man is there?\n");
  781.                                                         Console.ForegroundColor = ConsoleColor.Red;
  782.                                                         Console.WriteLine("1. I completely agree with you.");
  783.                                                         Console.ForegroundColor = ConsoleColor.White;
  784.                                                         Console.ForegroundColor = ConsoleColor.Green;
  785.                                                         Console.WriteLine("2. Hah! so you DID owe him, pay the gold back before i tell the guards!");
  786.                                                         Console.ForegroundColor = ConsoleColor.White;
  787.                                                         string choice3 = Console.ReadLine();
  788.                                                         if (choice3 == "1")
  789.                                                         {
  790.                                                             Console.WriteLine("Merchant: You know what, you're not as bad as i thought, how about you tell old Hex you tried your best to get his gold but couldn't, and in return i'll give you a discount in all my merchandise.");
  791.                                                             Console.ForegroundColor = ConsoleColor.Red;
  792.                                                             Console.WriteLine("1. Sounds like a plan.");
  793.                                                             Console.ForegroundColor = ConsoleColor.White;
  794.                                                             Console.WriteLine("2. Forget it, i'm not dealing with such a cold hearted person.");
  795.                                                             string choicethree = Console.ReadLine();
  796.                                                             Console.Clear();
  797.                                                             if (choicethree == "1")
  798.                                                             {
  799.                                                                 Console.WriteLine("Merchant: Great, i'll give you 25 gold just for incentive.");
  800.                                                                 gold = gold + 25;
  801.                                                                 Console.WriteLine("\nPress Enter to continue");
  802.                                                                 Console.ReadLine();
  803.                                                                 Console.Clear();
  804.                                                                 questsemicompleted1 = 1;
  805.                                                                 talkedtomerchant2 = 1;
  806.                                                                 karma = karma - 1;
  807.                                                                 Console.Clear();
  808.                                                                 break;
  809.                                                             }
  810.                                                             else
  811.                                                                 if (choicethree == "2")
  812.                                                                 {
  813.                                                                     Console.WriteLine("Merchant: Suit yourself.");
  814.                                                                     Console.WriteLine("\nPress Enter to continue");
  815.                                                                     Console.ReadLine();
  816.                                                                     Console.Clear();
  817.                                                                     break;
  818.                                                                 }
  819.  
  820.                                                         }
  821.                                                         else
  822.                                                             if (choice3 == "2")
  823.                                                             {
  824.                                                                 Console.WriteLine("Merchant: Oh, fine. But you watch, in a few months he'll be gone and my gold could have been better spent elsewhere.\n");
  825.                                                                 gold = gold + 50;
  826.                                                                 karma = karma + 1;
  827.                                                                 questsemicompleted1 = 1;
  828.                                                                 talkedtomerchant1 = 1;
  829.                                                                 receivedgold = 1;
  830.                                                                 Console.ForegroundColor = ConsoleColor.Green;
  831.                                                                 Console.WriteLine("Received 50 gold");
  832.                                                                 Console.ForegroundColor = ConsoleColor.White;
  833.                                                                 Console.WriteLine("\nPress Enter to go back.");
  834.                                                                 Console.ReadLine();
  835.                                                                 Console.Clear();
  836.                                                                 break;
  837.                                                             }
  838.  
  839.                                                     }
  840.                                             }
  841.                                             if (talkedtomerchant1 == 1 & sword == 0)
  842.                                             {
  843.                                                 Console.WriteLine("Merchant: You again eh? Ha ha. hey funny guy, get out of here before you make me real mad.");
  844.                                                 break;
  845.                                             }
  846.                                             else
  847.                                                 if (talkedtomerchant1 == 1 & sword == 1)
  848.                                                 {
  849.                                                     Console.WriteLine("Merchant: You again huh? I told you, i'm not giving you, or him anything.\n");
  850.                                                     Console.ForegroundColor = ConsoleColor.Red;
  851.                                                     Console.WriteLine("1. I will not ask you again, pal.");
  852.                                                     Console.ForegroundColor = ConsoleColor.White;
  853.                                                     Console.WriteLine("2. *Quickly wield the Dagger and push him against the wall.*");
  854.                                                     string choice1 = Console.ReadLine();
  855.                                                     Console.Clear();
  856.                                                     if (choice1 == "1")
  857.                                                     {
  858.                                                         Console.WriteLine("Merchant: Good, that is all i wanted. Now get out of here.\n");
  859.                                                         Thread.Sleep(1500);
  860.                                                         Console.ForegroundColor = ConsoleColor.Cyan;
  861.                                                         Console.WriteLine("As you leave the shop and he turns around you clickly wield the dagger and thrust it in the back of his neck, killing him instantly.");
  862.                                                         Console.ForegroundColor = ConsoleColor.White;
  863.                                                         Thread.Sleep(2500);
  864.                                                         questsemicompleted1 = 1;
  865.                                                         karma = karma - 2;
  866.                                                         killedmerchant = 1;
  867.                                                         gold = gold + 50;
  868.                                                         receivedgold = 1;
  869.                                                         Console.ForegroundColor = ConsoleColor.Green;
  870.                                                         Console.WriteLine("\n\n         Received 50 gold");
  871.                                                         Console.ForegroundColor = ConsoleColor.White;
  872.                                                         Console.WriteLine("\nPress Enter to go back");
  873.                                                         Console.ReadLine();
  874.                                                         Console.Clear();
  875.                                                         break;
  876.                                                     }
  877.                                                     else
  878.                                                         if (choice1 == "2")
  879.                                                         {
  880.                                                             Console.WriteLine("Merchant: Ahhh! a mercenary! Okay here, Take the gold, please don't kill me!\n");
  881.                                                             Console.ForegroundColor = ConsoleColor.Red;
  882.                                                             Console.WriteLine("1. Kill him anyways");
  883.                                                             Console.ForegroundColor = ConsoleColor.Green;
  884.                                                             Console.WriteLine("2. Take the gold and leave");
  885.                                                             Console.ForegroundColor = ConsoleColor.White;
  886.                                                             string choice2 = Console.ReadLine();
  887.                                                             if (choice2 == "1")
  888.                                                             {
  889.                                                                 Console.WriteLine("{0}: I doubt anyone will miss you, say your final prayers.\nHeh, as if they'll help you now.", name);
  890.                                                                 questsemicompleted1 = 1;
  891.                                                                 karma = karma - 2;
  892.                                                                 gold = gold + 50;
  893.                                                                 killedmerchant = 1;
  894.                                                                 receivedgold = 1;
  895.                                                                 Console.ForegroundColor = ConsoleColor.Green;
  896.                                                                 Console.WriteLine("\n\n             Received 50 gold");
  897.                                                                 Console.ForegroundColor = ConsoleColor.White;
  898.                                                                 Console.WriteLine("\nPress Enter to go back");
  899.                                                                 Console.ReadLine();
  900.                                                                 Console.Clear();
  901.                                                                 break;
  902.                                                             }
  903.                                                             else
  904.                                                                 if (choice2 == "2")
  905.                                                                 {
  906.                                                                     Console.WriteLine("{0}: Smart choice, pleasure making your acquaintance\n", name);
  907.                                                                     questsemicompleted1 = 1;
  908.                                                                     karma = karma + 1;
  909.                                                                     gold = gold + 50;
  910.                                                                     receivedgold = 1;
  911.                                                                     Console.ForegroundColor = ConsoleColor.Green;
  912.                                                                     Console.WriteLine("\n\n         Received 50 gold");
  913.                                                                     Console.ForegroundColor = ConsoleColor.White;
  914.                                                                     Console.WriteLine("\nPress Enter to go back");
  915.                                                                     Console.ReadLine();
  916.                                                                     Console.Clear();
  917.                                                                     break;
  918.                                                                 }
  919.                                                         }
  920.                                                 }
  921.                                         }
  922.                                         else
  923.                                         {
  924.                                             Console.Clear();
  925.                                             y = y + 1;
  926.                                             break;
  927.                                         }
  928.                             }
  929.                         }
  930.                         else
  931.                             if (killedmerchant == 1)
  932.                             {
  933.                                 Console.Clear();
  934.                                 Console.SetCursorPosition(25, 11);
  935.                                 Console.WriteLine("Guards are not letting anyone in the pawnshop.");
  936.                                 Thread.Sleep(2000);
  937.                                 Console.Clear();
  938.                             }
  939.                     }
  940.  
  941.  
  942.                     if (x > 47 & x < 60 & y == 12)//if player reaches Sun's Inn
  943.                     {
  944.                         if (receivedgold == 1)
  945.                         {
  946.                             Console.Clear();
  947.                             Console.SetCursorPosition(25, 11);
  948.                             Console.WriteLine("I should go back and talk to hex");
  949.                             Thread.Sleep(1500);
  950.                             Console.Clear();
  951.                             y = y + 1;
  952.                             break;
  953.                         }
  954.                         Console.Clear();
  955.                         Console.SetCursorPosition(25, 11);
  956.                         Console.WriteLine("You step into Sun's Inn.\n");
  957.                         Thread.Sleep(1500);
  958.                         Console.Clear();
  959.                         while (alive)
  960.                         {
  961.                             Console.WriteLine("1. Ask for a bed");
  962.                             if (questcompleted4 == 0)
  963.                             {
  964.                                 Console.WriteLine("2. Talk to suspicious man");
  965.                             }
  966.                             if (killedguard == 0)
  967.                             {
  968.                                 Console.WriteLine("3. Talk to guard");
  969.                             }
  970.                             Console.WriteLine("\nPress Enter to go back");
  971.                             string bar = Console.ReadLine();
  972.                             Console.Clear();
  973.                             if (bar == "1")
  974.                             {
  975.                                 Console.WriteLine("Welcome to Sun's Inn, a bed costs 10 gold.");
  976.                                 Console.WriteLine("1. Pay");
  977.                                 Console.WriteLine("2. Decline");
  978.                                 string barone = Console.ReadLine();
  979.                                 if (barone == "1")
  980.                                 {
  981.                                     if (gold >= 10)
  982.                                     {
  983.                                         Console.WriteLine("\n Thank you. Hope you have a nice stay.");
  984.                                         pla.Sleep();
  985.                                         Console.Clear();
  986.                                         gold = gold - 10;
  987.                                     }
  988.                                     else
  989.                                         if (gold < 10)
  990.                                         {
  991.                                             Console.WriteLine("You don't have enough gold.");
  992.                                         }
  993.                                 }
  994.                             }
  995.  
  996.                             else
  997.                                 if (bar == "2" & questgiven6 == 1)
  998.                                 {
  999.                                     Console.WriteLine("Man: Do what i told you. Visit Kosh in Stone City and tell him the password.");
  1000.                                     Thread.Sleep(1500);
  1001.                                     break;
  1002.                                 }
  1003.                             if (bar == "2" & questcompleted4 == 0)
  1004.                             {
  1005.                                 if (questgiven5 == 1 & questcompleted5 == 0)
  1006.                                 {
  1007.                                     Console.WriteLine("Man: Don't let him see you talking to me or he'll know, stupid. Get out of here");
  1008.                                     Thread.Sleep(1500);
  1009.                                     break;
  1010.                                 }
  1011.                                 if (playerlevel < 2)
  1012.                                 {
  1013.                                     Console.WriteLine("Man: I don't even know you and I can already tell you've never fought once in   your life, I don't speak to the likes of you");
  1014.                                     Thread.Sleep(3500);
  1015.                                 }
  1016.                                 if (playerlevel >= 2)
  1017.                                 {
  1018.                                     que.Assasination();
  1019.                                 }
  1020.                             }
  1021.                             else
  1022.                                 if (bar == "3" & questcompleted5 == 0)
  1023.                                 {
  1024.                                     if (playerlevel < 2)
  1025.                                     {
  1026.                                         Console.WriteLine("Guard: Keep moving, peasant.");
  1027.                                         Thread.Sleep(1500);
  1028.  
  1029.                                     }
  1030.                                     if (playerlevel >= 2)
  1031.                                     {
  1032.                                         que.HelpingHand();
  1033.                                     }
  1034.                                 }
  1035.                                 else
  1036.                                 {
  1037.                                     y = y + 1;
  1038.                                     break;
  1039.                                 }
  1040.                         }
  1041.                     }
  1042.                     if (x < 2)//if player wants to go back
  1043.                     {
  1044.                         Console.Clear();
  1045.                         Console.SetCursorPosition(25, 11);
  1046.                         Console.WriteLine("You walk back to Shang's Gates");
  1047.                         Thread.Sleep(1500);
  1048.                         Console.Clear();
  1049.                         x = 50;
  1050.                         y = 11;
  1051.                         location = 1;
  1052.                         cit.Shang();
  1053.                     }
  1054.                 }
  1055.             }
  1056.         }
  1057.  
  1058.  
  1059.         public void Stonecity()
  1060.         {
  1061.             while (alive)
  1062.             {
  1063.                 mov.Action();
  1064.                 if (location == 5)
  1065.                 {
  1066.                     if (x > 27 & x < 42 & y == 4)//bad omen inn
  1067.                     {
  1068.                         y = y + 1;
  1069.                         Console.Clear();
  1070.                         Console.SetCursorPosition(25, 11);
  1071.                         Console.Write("You step inside Bad Omen Inn\n");
  1072.                         Thread.Sleep(1500);
  1073.                         Console.Clear();
  1074.  
  1075.                         while (alive)
  1076.                         {
  1077.                             Console.WriteLine("1. Ask for a bed");
  1078.                             Console.WriteLine("2. Buy Items");
  1079.                             Console.WriteLine("\n Press Enter to go back");
  1080.                             string inn = Console.ReadLine();
  1081.                             Console.Clear();
  1082.                             if (inn == "1")
  1083.                             {
  1084.                                 while (alive)
  1085.                                 {
  1086.                                     Console.WriteLine("There's a bed available for 10 gold, would you like to take it?  y/n");
  1087.                                     string ask = Console.ReadLine();
  1088.                                     if (ask == "y")
  1089.                                     {
  1090.                                         if (gold >= 10)
  1091.                                         {
  1092.                                             pla.Sleep();
  1093.                                             break;
  1094.                                         }
  1095.                                         else
  1096.                                         {
  1097.                                             Console.WriteLine("You do not have enough gold\n");
  1098.                                             break;
  1099.                                         }
  1100.                                     }
  1101.                                     else
  1102.                                         if (ask == "n")
  1103.                                         {
  1104.                                             break;
  1105.                                         }
  1106.                                 }
  1107.                             }
  1108.                             else
  1109.                                 if (inn == "2")
  1110.                                 {
  1111.                                     while (alive)
  1112.                                     {
  1113.                                         Console.Write("Take a look at my wares");
  1114.                                         Console.ForegroundColor = ConsoleColor.Yellow;
  1115.                                         Console.Write("         Current gold {0}\n", gold);
  1116.                                         Console.ForegroundColor = ConsoleColor.White;
  1117.                                         Console.WriteLine("1. Potions           10 gold each");
  1118.                                         Console.WriteLine("2. Strength Potion   35 gold each");
  1119.                                         Console.WriteLine("\nPress Enter to go back");
  1120.                                         string innbuy = Console.ReadLine();
  1121.                                         if (innbuy == "1")
  1122.                                         {
  1123.                                             Console.WriteLine("How many would you like?");
  1124.                                             int howm = int.Parse(Console.ReadLine());
  1125.                                             if (gold >= howm * 10)
  1126.                                             {
  1127.                                                 Console.WriteLine("{0} Potion(s) purchased\n", howm);
  1128.                                                 gold = gold - howm * 10;
  1129.                                                 potions = potions + howm;
  1130.                                             }
  1131.                                             else
  1132.                                             {
  1133.                                                 Console.WriteLine("Not enough money");
  1134.                                             }
  1135.                                         }
  1136.                                         else
  1137.                                             if (innbuy == "2")
  1138.                                             {
  1139.                                                 Console.WriteLine("How many would you like?");
  1140.                                                 int howm = int.Parse(Console.ReadLine());
  1141.                                                 if (gold >= howm * 35)
  1142.                                                 {
  1143.                                                     Console.WriteLine("{0} Strength Potion(s) purchased\n", howm);
  1144.                                                     gold = gold - howm * 35;
  1145.                                                     strengthpotions = strengthpotions + howm;
  1146.                                                 }
  1147.                                                 else
  1148.                                                 {
  1149.                                                     Console.WriteLine("Not enough money");
  1150.                                                 }
  1151.                                             }
  1152.                                             else
  1153.                                                 break;
  1154.                                     }
  1155.                                 }
  1156.                                 else
  1157.                                 {
  1158.                                     break;
  1159.                                 }
  1160.                         }
  1161.                     }
  1162.                     if (x > 1 & x < 15 & y == 10)//town square
  1163.                     {
  1164.                         Console.Clear();
  1165.                         Console.SetCursorPosition(25, 11);
  1166.                         Console.Write("You walk towards Town Square\n");
  1167.                         Thread.Sleep(1500);
  1168.                         Console.Clear();
  1169.                         location = 6;
  1170.                         x = 60;
  1171.                         y = 10;
  1172.                         cit.Stonecity();
  1173.                     }
  1174.  
  1175.  
  1176.  
  1177.  
  1178.                     if (x > 57 & x < 68 & y == 10)//castle
  1179.                     {
  1180.                         Console.Clear();
  1181.                         Console.SetCursorPosition(6, 11);
  1182.                         Console.Write("As you walk towards the Castle you're in awe at its magnificence");
  1183.                         Thread.Sleep(1500);
  1184.                         Console.Clear();
  1185.                         location = 7;
  1186.                         x = 15;
  1187.                         y = 10;
  1188.                         cit.Stonecity();
  1189.                     }
  1190.  
  1191.                     if (x > 32 & x < 40 & y == 20)//back
  1192.                     {
  1193.                         Console.Clear();
  1194.                         Console.SetCursorPosition(25, 11);
  1195.                         Console.Write("You Venture Into the Wild");
  1196.                         Thread.Sleep(1500);
  1197.                         Console.Clear();
  1198.                         location = 3;
  1199.                         x = 23;
  1200.                         y = 6;
  1201.                         ma.SoutheastWarren();
  1202.                     }
  1203.  
  1204.                 }
  1205.  
  1206.                 if (location == 6)
  1207.                 {
  1208.                     if (x > 17 & x < 32 & y == 6)
  1209.                     {
  1210.                         y = y + 1;
  1211.                         Console.Clear();
  1212.                         Console.SetCursorPosition(25, 11);
  1213.                         Console.WriteLine("You enter the Weapon Shop\n");
  1214.                         Thread.Sleep(1500);
  1215.                         Console.Clear();
  1216.                         Console.WriteLine("Blacksmith: Welcome.\n");
  1217.                         while (alive)
  1218.                         {
  1219.                             Console.WriteLine("1. Buy Weapons.");
  1220.                             Console.WriteLine("2. Sell Weapons.");
  1221.                             Console.WriteLine("\nPress Enter to go back");
  1222.                             string blacksmith = Console.ReadLine();
  1223.                             Console.Clear();
  1224.                             if (blacksmith == "1")
  1225.                             {
  1226.                                 Console.Write("Blacksmith: Take a look at my merchandise            ");
  1227.                                 Console.ForegroundColor = ConsoleColor.Yellow;
  1228.                                 Console.Write("Current gold: {0}\n", gold);
  1229.                                 Console.ForegroundColor = ConsoleColor.White;
  1230.                                 Console.WriteLine("1. Iron Spear       attack: +1  strength: +5     35 gold\n");
  1231.                                 Console.WriteLine("2. Bronze Sword     attack: +0  strength: +7    40 gold");
  1232.  
  1233.                                 string black = Console.ReadLine();
  1234.                                 if (black == "1" & gold >= 35)
  1235.                                 {
  1236.                                     gold = gold - 35;
  1237.                                     numberofironspears = numberofironspears + 1;
  1238.                                     Console.WriteLine("Blacksmith: Would you like to equip it?  y/n");
  1239.                                     string equipask = Console.ReadLine();
  1240.                                     if (equipask == "y")
  1241.                                     {
  1242.                                         wep.EquipIronSpear();
  1243.                                     }
  1244.                                     Console.WriteLine("Blacksmith: Thank you for your business.\n");
  1245.                                 }
  1246.                                 else
  1247.                                     if (black == "1" & gold < 35)
  1248.                                     {
  1249.                                         Console.WriteLine("Blacksmith: You don't have enough money.");
  1250.                                         Thread.Sleep(1000);
  1251.                                         Console.Clear();
  1252.                                     }
  1253.                                     else
  1254.                                         if (black == "2" & gold >= 40)
  1255.                                         {
  1256.                                             numberofbronzeswords = numberofbronzeswords + 1;
  1257.                                             gold = gold - 40;
  1258.                                             Console.WriteLine("Blacksmith: Would you like to equip it?  y/n");
  1259.                                             string equipswordask = Console.ReadLine();
  1260.                                             if (equipswordask == "y")
  1261.                                             {
  1262.                                                 wep.EquipBronzeSword();
  1263.                                             }
  1264.                                             Console.WriteLine("Blacksmith: Thank you for your business.\n");
  1265.  
  1266.                                         }
  1267.                                         else
  1268.                                             if (black == "2" & gold < 40)
  1269.                                             {
  1270.                                                 Console.WriteLine("Blacksmith: You don't have enough money.");
  1271.                                                 Thread.Sleep(1000);
  1272.                                                 Console.Clear();
  1273.                                             }
  1274.                             }
  1275.  
  1276.  
  1277.  
  1278.                             else
  1279.                                 if (blacksmith == "2")
  1280.                                 {
  1281.                                     Console.Write("Blacksmith: Let's take a look at what you have.          ");
  1282.                                     Console.ForegroundColor = ConsoleColor.Yellow;
  1283.                                     Console.Write("Current gold: {0}\n", gold);
  1284.                                     Console.ForegroundColor = ConsoleColor.White;
  1285.                                     Console.WriteLine("\nType the name of the Item you wish to sell, Or Press Enter to go back");
  1286.                                     Console.WriteLine("_________________________________________________________________________");
  1287.                                     if (numberofbronzedaggers > 0)
  1288.                                     {
  1289.                                         Console.WriteLine("Bronze Dagger =  10 Gold     x {0}", numberofbronzedaggers);
  1290.                                     }
  1291.                                     if (numberofbronzeswords > 0)
  1292.                                     {
  1293.                                         Console.WriteLine("Bronze Sword  =  20 Gold     x {0}", numberofbronzeswords);
  1294.                                     }
  1295.                                     if (numberofironspears > 0)
  1296.                                     {
  1297.                                         Console.WriteLine("Iron Spear    =  15 Gold     x {0}", numberofironspears);
  1298.                                     }
  1299.                                     string sellweaponone = Console.ReadLine();
  1300.                                     switch (sellweaponone.ToLower())
  1301.                                     {
  1302.                                         case "bronze dagger":
  1303.                                             if (numberofbronzedaggers > 0)
  1304.                                             {
  1305.                                                 Console.WriteLine("How many would you like to sell?");
  1306.                                                 int hm = int.Parse(Console.ReadLine());
  1307.                                                 if (hm > numberofbronzedaggers)
  1308.                                                 {
  1309.                                                     Console.WriteLine("Not enough bronze daggers");
  1310.                                                     break;
  1311.                                                 }
  1312.                                                 else
  1313.                                                 {
  1314.                                                     Console.WriteLine("Blacksmith: Thank you");
  1315.                                                     numberofbronzedaggers = numberofbronzedaggers - hm;
  1316.                                                     gold = hm * 10 + gold;
  1317.                                                     break;
  1318.                                                 }
  1319.                                             }
  1320.                                             break;
  1321.                                         case "bronze sword":
  1322.                                             if (numberofbronzeswords > 0)
  1323.                                             {
  1324.                                                 Console.WriteLine("How many would you like to sell?");
  1325.                                                 int hm = int.Parse(Console.ReadLine());
  1326.                                                 if (hm > numberofbronzeswords)
  1327.                                                 {
  1328.                                                     Console.WriteLine("Not enough bronze swords");
  1329.                                                     break;
  1330.                                                 }
  1331.                                                 else
  1332.                                                 {
  1333.                                                     Console.WriteLine("Blacksmith: Thank you");
  1334.                                                     numberofbronzeswords = numberofbronzeswords - hm;
  1335.                                                     gold = hm * 20 + gold;
  1336.                                                     break;
  1337.                                                 }
  1338.                                             }
  1339.                                             break;
  1340.                                         case "iron spear":
  1341.                                             if (numberofironspears > 0)
  1342.                                             {
  1343.                                                 Console.WriteLine("How many would you like to sell?");
  1344.                                                 int hm = int.Parse(Console.ReadLine());
  1345.                                                 if (hm > numberofironspears)
  1346.                                                 {
  1347.                                                     Console.WriteLine("Not enough spears");
  1348.                                                     break;
  1349.                                                 }
  1350.                                                 else
  1351.                                                 {
  1352.                                                     Console.WriteLine("Blacksmith: Thank you");
  1353.                                                     numberofironspears = numberofironspears - hm;
  1354.                                                     gold = hm * 15 + gold;
  1355.                                                     break;
  1356.                                                 }
  1357.                                             }
  1358.                                             break;
  1359.                                     }
  1360.                                     wep.CheckForWeapon();
  1361.                                 }
  1362.                                 else
  1363.                                 {
  1364.                                     break;
  1365.                                 }
  1366.                         }
  1367.                     }
  1368.  
  1369.                     if (x > 17 & x < 30 & y == 17)//armor shop
  1370.                     {
  1371.                         y = y + 1;
  1372.                         Console.Clear();
  1373.                         Console.SetCursorPosition(25, 11);
  1374.                         Console.Write("You enter the Armor Shop\n");
  1375.                         Thread.Sleep(1500);
  1376.                         Console.Clear();
  1377.                         Console.WriteLine("Armorer: Welcome.\n");
  1378.                         while (alive)
  1379.                         {
  1380.                             Console.WriteLine("1. Buy Armor.");
  1381.                             Console.WriteLine("2. Sell Armor.");
  1382.                             Console.WriteLine("\nPress Enter to go back");
  1383.                             string armorer = Console.ReadLine();
  1384.                             Console.Clear();
  1385.                             if (armorer == "1")
  1386.                             {
  1387.                                 Console.Write("Armorer: Take a look at my merchandise.           ");
  1388.                                 Console.ForegroundColor = ConsoleColor.Yellow;
  1389.                                 Console.Write("Current gold: {0}\n", gold);
  1390.                                 Console.ForegroundColor = ConsoleColor.White;
  1391.                                 Console.WriteLine("1. Iron Helm          30 gold");
  1392.                                 Console.WriteLine("2. Iron Chest Armor   50 gold");
  1393.                                 Console.WriteLine("3. Iron Leggings      30 gold");
  1394.                                 Console.WriteLine("\nPress Enter to go back");
  1395.                                 string buyarmor = Console.ReadLine();
  1396.                                 if (buyarmor == "1" & gold >= 30)
  1397.                                 {
  1398.                                     Console.WriteLine("Armorer: Would you like to equip it?    y/n");
  1399.                                     string equipask1 = Console.ReadLine();
  1400.                                     if (equipask1 == "y")
  1401.                                     {
  1402.                                         arm.EquipIronHelm();
  1403.                                     }
  1404.                                     gold = gold - 30;
  1405.                                     numberofironhelms = numberofironhelms + 1;
  1406.                                     Console.WriteLine("Armorer: Thank you for your business\n");
  1407.                                 }
  1408.                                 else
  1409.                                     if (buyarmor == "1" & gold < 30)
  1410.                                     {
  1411.                                         Console.WriteLine("Armorer: You don't have enough money.");
  1412.                                         Thread.Sleep(1000);
  1413.                                         Console.Clear();
  1414.                                     }
  1415.                                     else
  1416.                                         if (buyarmor == "2" & gold >= 50)
  1417.                                         {
  1418.                                             Console.WriteLine("Armorer: Would you like to equip it?    y/n");
  1419.                                             string equipask2 = Console.ReadLine();
  1420.                                             if (equipask2 == "y")
  1421.                                             {
  1422.                                                 arm.EquipIronChest();
  1423.                                             }
  1424.                                             gold = gold - 50;
  1425.                                             numberofironchest = numberofironchest + 1;
  1426.                                             Console.WriteLine("Armorer: Thank you for your business\n");
  1427.                                         }
  1428.                                         else
  1429.                                             if (buyarmor == "2" & gold < 50)
  1430.                                             {
  1431.                                                 Console.WriteLine("Armorer: You don't have enough money.");
  1432.                                                 Thread.Sleep(1000);
  1433.                                                 Console.Clear();
  1434.                                             }
  1435.                                             else
  1436.                                                 if (buyarmor == "3" & gold >= 30)
  1437.                                                 {
  1438.                                                     Console.WriteLine("Armorer: Would you like to equip it?    y/n");
  1439.                                                     string equipask3 = Console.ReadLine();
  1440.                                                     if (equipask3 == "y")
  1441.                                                     {
  1442.                                                         arm.EquipIronLeg();
  1443.                                                     }
  1444.                                                     gold = gold - 30;
  1445.                                                     numberofironlegs = numberofironlegs + 1;
  1446.                                                     Console.WriteLine("Armorer: Thank you for your business\n");
  1447.                                                 }
  1448.                                                 else
  1449.                                                     if (buyarmor == "3" & gold < 30)
  1450.                                                     {
  1451.                                                         Console.WriteLine("Armorer: You don't have enough money.");
  1452.                                                         Thread.Sleep(1000);
  1453.                                                         Console.Clear();
  1454.                                                     }
  1455.                             }
  1456.                             else
  1457.                                 if (armorer == "2")
  1458.                                 {
  1459.                                     Console.WriteLine("Armorer: What would you like to sell?");
  1460.                                     Console.WriteLine("\nType the name of the Item you wish to sell, Or Press Enter to go back");
  1461.                                     Console.WriteLine("_________________________________________________________________________");
  1462.  
  1463.                                     if (numberofleatherhelms > 0)
  1464.                                     {
  1465.                                         Console.WriteLine("Leather Helm      = 5 Gold    x {0}", numberofleatherhelms);
  1466.                                     }
  1467.                                     if (numberofleatherlegs > 0)
  1468.                                     {
  1469.                                         Console.WriteLine("Leather Leggings  = 5 Gold    x {0}", numberofleatherlegs);
  1470.                                     }
  1471.                                     if (numberofleatherchest > 0)
  1472.                                     {
  1473.                                         Console.WriteLine("Leather Chest     = 10 Gold   x {0}", numberofleatherchest);
  1474.                                     }
  1475.                                     if (numberofironhelms > 0)
  1476.                                     {
  1477.                                         Console.WriteLine("Iron Helm         = 10 Gold   x {0}", numberofironhelms);
  1478.                                     }
  1479.                                     if (numberofironlegs > 0)
  1480.                                     {
  1481.                                         Console.WriteLine("Iron Leggings     = 10 Gold   x {0}", numberofironlegs);
  1482.                                     }
  1483.                                     if (numberofironchest > 0)
  1484.                                     {
  1485.                                         Console.WriteLine("Iron Chest        = 20 Gold   x {0}", numberofironchest);
  1486.                                     }
  1487.                                     string whatkindarmor = Console.ReadLine();
  1488.                                     switch (whatkindarmor.ToLower())
  1489.                                     {
  1490.                                         case "leather helm":
  1491.                                         case "leather helmet":
  1492.                                         case "leather helms":
  1493.                                         case "leather helmets":
  1494.                                             if (numberofleatherhelms > 0)
  1495.                                             {
  1496.                                                 Console.WriteLine("How many would you like to sell?");
  1497.                                                 int hm = int.Parse(Console.ReadLine());
  1498.                                                 if (hm > numberofleatherhelms)
  1499.                                                 {
  1500.                                                     Console.WriteLine("Not enough leather helmets");
  1501.                                                     break;
  1502.                                                 }
  1503.                                                 else
  1504.                                                 {
  1505.                                                     Console.WriteLine("Blacksmith: Thank you");
  1506.                                                     numberofleatherhelms = numberofleatherhelms - hm;
  1507.                                                     gold = hm * 5 + gold;
  1508.                                                     break;
  1509.                                                 }
  1510.                                             }
  1511.                                             break;
  1512.                                         case "leather leggings":
  1513.                                         case "leather legging":
  1514.                                         case "leather leg":
  1515.                                         case "leather legs":
  1516.                                             if (numberofleatherlegs > 0)
  1517.                                             {
  1518.                                                 Console.WriteLine("How many would you like to sell?");
  1519.                                                 int hm = int.Parse(Console.ReadLine());
  1520.                                                 if (hm > numberofleatherlegs)
  1521.                                                 {
  1522.                                                     Console.WriteLine("Not enough leather leggings");
  1523.                                                     break;
  1524.                                                 }
  1525.                                                 else
  1526.                                                 {
  1527.                                                     Console.WriteLine("Blacksmith: Thank you");
  1528.                                                     numberofleatherlegs = numberofleatherlegs - hm;
  1529.                                                     gold = hm * 5 + gold;
  1530.                                                     break;
  1531.                                                 }
  1532.                                             }
  1533.                                             break;
  1534.                                         case "leather chest":
  1535.                                         case "leather chests":
  1536.                                             if (numberofleatherchest > 0)
  1537.                                             {
  1538.                                                 Console.WriteLine("How many would you like to sell?");
  1539.                                                 int hm = int.Parse(Console.ReadLine());
  1540.                                                 if (hm > numberofleatherchest)
  1541.                                                 {
  1542.                                                     Console.WriteLine("Not enough leather Chests");
  1543.                                                     break;
  1544.                                                 }
  1545.                                                 else
  1546.                                                 {
  1547.                                                     Console.WriteLine("Blacksmith: Thank you");
  1548.                                                     numberofleatherchest = numberofleatherchest - hm;
  1549.                                                     gold = hm * 10 + gold;
  1550.                                                     break;
  1551.                                                 }
  1552.                                             }
  1553.                                             break;
  1554.                                         case "iron helm":
  1555.                                         case "iron helmet":
  1556.                                         case "iron helms":
  1557.                                         case "iron helmets":
  1558.                                             if (numberofironhelms > 0)
  1559.                                             {
  1560.                                                 Console.WriteLine("How many would you like to sell?");
  1561.                                                 int hm = int.Parse(Console.ReadLine());
  1562.                                                 if (hm > numberofironhelms)
  1563.                                                 {
  1564.                                                     Console.WriteLine("Not enough Iron helmets");
  1565.                                                     break;
  1566.                                                 }
  1567.                                                 else
  1568.                                                 {
  1569.                                                     Console.WriteLine("Blacksmith: Thank you");
  1570.                                                     numberofironhelms = numberofironhelms - hm;
  1571.                                                     gold = hm * 10 + gold;
  1572.                                                     break;
  1573.                                                 }
  1574.                                             }
  1575.                                             break;
  1576.                                         case "iron leggings":
  1577.                                         case "iron legging":
  1578.                                         case "iron leg":
  1579.                                         case "iron legs":
  1580.                                             if (numberofironlegs > 0)
  1581.                                             {
  1582.                                                 Console.WriteLine("How many would you like to sell?");
  1583.                                                 int hm = int.Parse(Console.ReadLine());
  1584.                                                 if (hm > numberofironlegs)
  1585.                                                 {
  1586.                                                     Console.WriteLine("Not enough Iron leggings");
  1587.                                                     break;
  1588.                                                 }
  1589.                                                 else
  1590.                                                 {
  1591.                                                     Console.WriteLine("Blacksmith: Thank you");
  1592.                                                     numberofironlegs = numberofironlegs - hm;
  1593.                                                     gold = hm * 10 + gold;
  1594.                                                     break;
  1595.                                                 }
  1596.                                             }
  1597.                                             break;
  1598.                                         case "iron chest":
  1599.                                         case "iron chests":
  1600.                                             if (numberofironchest > 0)
  1601.                                             {
  1602.                                                 Console.WriteLine("How many would you like to sell?");
  1603.                                                 int hm = int.Parse(Console.ReadLine());
  1604.                                                 if (hm > numberofironchest)
  1605.                                                 {
  1606.                                                     Console.WriteLine("Not enough Iron Chests");
  1607.                                                     break;
  1608.                                                 }
  1609.                                                 else
  1610.                                                 {
  1611.                                                     Console.WriteLine("Blacksmith: Thank you");
  1612.                                                     numberofironchest = numberofironchest - hm;
  1613.                                                     gold = hm * 20 + gold;
  1614.                                                     break;
  1615.                                                 }
  1616.                                             }
  1617.                                             break;
  1618.                                     }
  1619.                                 }
  1620.                                 else
  1621.                                 {
  1622.                                     break;
  1623.                                 }
  1624.                         }
  1625.                     }
  1626.  
  1627.  
  1628.                     if (x > 60 & x < 70 & y == 11)//kosh's house
  1629.                     {
  1630.  
  1631.  
  1632.  
  1633.                     }
  1634.  
  1635.                     if (x > 40 & x < 50 & y == 17)//magic shop
  1636.                     {
  1637.                         Console.Clear();
  1638.                         Console.SetCursorPosition(25, 11);
  1639.                         Console.Write("You enter the Magic Shop\n");
  1640.                         Thread.Sleep(1500);
  1641.                         Console.Clear();
  1642.  
  1643.                     }
  1644.  
  1645.                     if (x >= 68)//go back
  1646.                     {
  1647.                         Console.Clear();
  1648.                         Console.SetCursorPosition(25, 11);
  1649.                         Console.Write("You Return To Stone City Gates");
  1650.                         Thread.Sleep(1500);
  1651.                         Console.Clear();
  1652.                         location = 5;
  1653.                         x = 17;
  1654.                         y = 10;
  1655.                         cit.Stonecity();
  1656.                     }
  1657.  
  1658.                 }
  1659.  
  1660.                 if (location == 7)
  1661.                 {
  1662.                     if (x > 39 & x < 45 & y == 7)
  1663.                     {
  1664.                         if (guardisout == 0)
  1665.                         {
  1666.                             Console.Clear();
  1667.                             Console.WriteLine("Guard: Hold it right there! The King is not hosting any public gatherings at the moment, therefore i'll have to ask you to leave.");
  1668.                             Console.WriteLine("1. How does 50 gold sound to you?");
  1669.                             Console.WriteLine("2. I don't have time for this. Get out of my way or pay the consequences.");
  1670.                             string actioncastle = Console.ReadLine();
  1671.                             if (actioncastle == "1")
  1672.                             {
  1673.                                 if (gold >= 50)
  1674.                                 {
  1675.                                     Console.WriteLine("Guard: Well we are underpaid.. You seem harmless enough, i'll let you in.");
  1676.                                     gold = gold - 50;
  1677.                                     guardisout = 1;
  1678.                                 }
  1679.                                 else
  1680.                                 {
  1681.                                     Console.WriteLine("Guard: You don't even have the gold. Get out of here.");
  1682.                                 }
  1683.                             }
  1684.                             else
  1685.                                 if (actioncastle == "2")
  1686.                                 {
  1687.                                     Console.WriteLine("Guard: You think you can hang with the likes of me? Very well then, prepare to battle!");
  1688.                                     Thread.Sleep(1500);
  1689.                                     fight = 3;
  1690.                                     bat.Battle();
  1691.                                 }
  1692.                         }
  1693.                     }
  1694.                     if (x <= 2)
  1695.                     {
  1696.                         Console.Clear();
  1697.                         Console.SetCursorPosition(25, 11);
  1698.                         Console.Write("You Walk back to Stone City's Gates");
  1699.                         Thread.Sleep(1500);
  1700.                         Console.Clear();
  1701.                         location = 5;
  1702.                         x = 55;
  1703.                         y = 10;
  1704.                         cit.Stonecity();
  1705.  
  1706.                     }
  1707.                 }
  1708.  
  1709.             }
  1710.         }
  1711.     }
  1712. }
Advertisement
Add Comment
Please, Sign In to add comment