Ejemplo n.º 1
0
        private static string RandomSign()
        {
            string strSignText = "*|*|*|*";

            int intRand = rand.Next(9);

            while (intRand >= 4 && booSignUsed[intRand])
            {
                intRand = rand.Next(9);
            }
            ;
            booSignUsed[intRand] = true;

            switch (intRand)
            {
            case 0:
            case 1:
            case 2: strSignText = RandomHelper.RandomString("I will", "I can", "Will", "Can") + " " +
                                  RandomHelper.RandomString("trade", "swap", "sell") +
                                  "|" + RandomHelper.RandomString("gold", "iron", "dirt", "glass", "flowers", "cake") +
                                  "|for " + RandomHelper.RandomString("obsidian", "wood", "sand",
                                                                      "coal", "stone", "cookies") +
                                  "|- " + RandomHelper.RandomString("See", "Talk to") + " " +
                                  RandomHelper.RandomLetterUpper() + "." + RandomHelper.RandomLetterUpper() + ".";
                break;

            case 3: strSignText = RandomHelper.RandomString("Church", "Order") + " of the" +
                                  "|Holy " + RandomHelper.RandomFileLine("Resources\\ChurchStartingWords.txt") +
                                  "|are meeting" +
                                  "|this " + RandomHelper.RandomDay();
                break;

            case 4: strSignText = "Lost pet|creeper. Last|seen near the|mini crater";
                break;

            case 5: strSignText = "Israphel||Wanted dead|or alive";
                break;

            case 6: strSignText = "Lost|Jaffa Cakes.|Please return|to Honeydew";
                break;

            case 7: strSignText = "|Read note " + rand.Next(500, 999) + "||";
                break;

            case 8: strSignText = "Buy one|get one|free on|gravestones!";
                break;
            }
            return(strSignText);
        }
Ejemplo n.º 2
0
        public static string RandomSign()
        {
            string strSignText = "*|*|*|*";

            switch (rand.Next(9))
            {
            case 0:
            case 1:
            case 2: strSignText = RandomHelper.RandomString("I will", "I can", "Will", "Can") + " " +
                                  RandomHelper.RandomString("trade", "swap", "sell") +
                                  "|" + RandomHelper.RandomString("gold", "iron", "dirt", "glass", "flowers", "cake") +
                                  "|for " + RandomHelper.RandomString("obsidian", "wood", "sand",
                                                                      "coal", "stone", "cookies") +
                                  "|- " + RandomHelper.RandomString("See", "Talk to") + " " +
                                  RandomHelper.RandomLetterUpper() + "." + RandomHelper.RandomLetterUpper() + ".";
                break;

            case 3: strSignText = RandomHelper.RandomString("Church", "Order") + " of the" +
                                  "|Holy " + RandomHelper.RandomString("Pickaxe", "Notch", "Herobrine", "Creeper",
                                                                       "Chicken", "Squid", "Pigman", "Bucket", "Sword") +
                                  "|are meeting" +
                                  "|this " + RandomHelper.RandomDay();
                break;

            case 4: strSignText = "Lost pet|creeper. Last|seen near the|mini crater";
                break;

            case 5: strSignText = "Israphel||Wanted dead|or alive";
                break;

            case 6: strSignText = "Lost|Jaffa Cakes.|Please return|to Honeydew";
                break;

            case 7: strSignText = "|Read note " + rand.Next(500, 999) + "||";
                break;

            case 8: strSignText = "|Squids spotted|in the sewers!|";
                break;
            }
            return(strSignText);
        }
Ejemplo n.º 3
0
        private static string RandomSign()
        {
            string strSignText = "*|*|*|*";

            int intRand;

            do
            {
                intRand = RandomHelper.Next(booSignUsed.GetLength(0));
            } while (intRand >= 5 && booSignUsed[intRand]);
            booSignUsed[intRand] = true;

            do
            {
                switch (intRand)
                {
                case 0:
                case 1: strSignText = RandomHelper.RandomString("I will", "I can", "Will", "Can") + " " +
                                      RandomHelper.RandomString("trade", "swap", "sell") +
                                      " " + RandomHelper.RandomString("gold", "iron", "dirt", "glass", "flowers", "cake") +
                                      " for " + RandomHelper.RandomString("obsidian", "wood", "sand",
                                                                          "coal", "stone", "cookies") +
                                      "~- " + RandomHelper.RandomString("See", "Talk to") + " " +
                                      RandomHelper.RandomLetterUpper() + "." + RandomHelper.RandomLetterUpper() + ".";
                    break;

                case 2: strSignText = RandomHelper.RandomString("Church", "Order") + " of the" +
                                      " Holy " + RandomHelper.RandomFileLine(Path.Combine("Resources", "ChurchNoun.txt")) +
                                      " are meeting this " + RandomHelper.RandomDay();
                    break;

                case 3: strSignText = RandomHelper.RandomString("Mrs", "Miss") + " " +
                                      RandomHelper.RandomFileLine(Path.Combine("Resources", "CityAdj.txt")) + " has lost her " +
                                      RandomHelper.RandomString("cat", "dog", "glasses", "marbles") +
                                      RandomHelper.RandomString(". Reward offered", ". Please help");
                    break;

                case 4: strSignText = RandomHelper.RandomString("Armour", "Property", "House", "Weapons", "Gold", "Bodyguard", "Pet wolf", "Books", "Tools") +
                                      " for sale~- " + RandomHelper.RandomString("See", "Talk to") + " " +
                                      RandomHelper.RandomLetterUpper() + "." + RandomHelper.RandomLetterUpper() + ".";
                    break;

                case 5: strSignText = "Lost pet creeper. Last seen near the mini crater";
                    break;

                case 6: strSignText = "Israphel~~Wanted dead~or alive";
                    break;

                case 7: strSignText = "Lost Jaffa Cakes. Please return to Honeydew";
                    break;

                case 8: strSignText = "Read note " + RandomHelper.Next(500, 999);
                    break;

                case 9: strSignText = "Buy one get one free on gravestones!";
                    break;

                case 10: strSignText = "Archery practice this " + RandomHelper.RandomDay() + " afternoon";
                    break;

                case 11: strSignText = "Seen a crime? Tell the nearest city guard";
                    break;

                case 12: strSignText = "New city law: No minors can be miners";
                    break;
                }
            } while (!IsValidSign(strSignText));
            return(strSignText);
        }