Ejemplo n.º 1
0
        public static string MakeThisTask()
        {
            string task = null;

            if (Utility.RandomMinMax(1, 4) == 1)
            {
                string bodyName = NameList.RandomName("male");
                if (Utility.RandomBool())
                {
                    bodyName = NameList.RandomName("female");
                }

                string bodyTitle = HenchmanFunctions.GetTitle();

                switch (Utility.RandomMinMax(1, 3))
                {
                case 1: task = "corpse"; break;

                case 2: task = "remains"; break;

                case 3: task = "body"; break;
                }

                switch (Utility.RandomMinMax(1, 5))
                {
                case 1: task = "Do an autopsy on the " + task; break;

                case 2: task = "Do an examination of the " + task; break;

                case 3: task = "Look over the " + task; break;

                case 4: task = "Do a postmortem on the " + task; break;

                case 5: task = "Do a necropsy on the " + task; break;
                }

                task = task + " of " + bodyName + " " + bodyTitle;

                switch (Utility.RandomMinMax(1, 5))
                {
                case 1: task = task + " to determine the cause of death"; break;

                case 2: task = task + " to find the cause of death"; break;

                case 3: task = task + " to identify the murderer"; break;

                case 4: task = task + " to solve who the killer is"; break;

                case 5: task = task + " to see how they died"; break;
                }
            }
            else
            {
                switch (Utility.RandomMinMax(1, 4))
                {
                case 1: task = "Brew"; break;

                case 2: task = "Create"; break;

                case 3: task = "Concoct"; break;

                case 4: task = "Boil"; break;
                }

                switch (Utility.RandomMinMax(1, 5))
                {
                case 1: task = task + " an elixir"; break;

                case 2: task = task + " a potion"; break;

                case 3: task = task + " a draught"; break;

                case 4: task = task + " a mixture"; break;

                case 5: task = task + " a philter"; break;
                }

                switch (Utility.RandomMinMax(1, 4))
                {
                case 1: task = task + " with "; break;

                case 2: task = task + " using "; break;

                case 3: task = task + " mixing "; break;

                case 4: task = task + " combining "; break;
                }

                string[] sWeirds = new string[] { "ant", "ape", "baboon", "badger", "basilisk", "bear", "beaver", "beetle", "beholder", "boar", "brownie", "buffalo", "bull", "camel", "centaur", "centipede", "chimera", "cockatrice", "crocodile", "deer", "demon", "devil", "dinosaur", "djinni", "dog", "dragon", "dryad", "dwarf", "eagle", "efreet", "elemental", "elephant", "elf", "ettin", "frog", "fungi", "gargoyle", "ghast", "ghost", "ghoul", "giant", "gnoll", "gnome", "goat", "goblin", "golem", "gorgon", "griffon", "hag", "halfling", "harpy", "hell hound", "hippogriff", "hippopotamus", "hobgoblin", "horse", "hydra", "hyena", "imp", "jackal", "jaguar", "ki-rin", "kobold", "leopard", "leprechaun", "lich", "lion", "lizard", "lizardman", "lycanthrope", "lynx", "mammoth", "manticore", "mastodon", "medusa", "minotaur", "mule", "mummy", "naga", "nightmare", "ogre", "orc", "owl", "pegasus", "pixie", "porcupine", "ram", "rat", "reaper", "rhinoceros", "roc", "satyr", "scorpion", "serpent", "shadow", "skeleton", "skunk", "snake", "spectre", "sphinx", "spider", "sprite", "stag", "tiger", "titan", "toad", "troglodyte", "troll", "unicorn", "vampire", "weasel", "wight", "wisp", "wolf", "wolverine", "worm", "wraith", "wyvern", "yeti", "zombie", "zorn" };
                string   sWeird  = sWeirds[Utility.RandomMinMax(0, (sWeirds.Length - 1))];

                string[] sFluids = new string[] { "blood ", "eyes ", "skin ", "spit ", "bile ", "secretion ", "ooze ", "pus ", "droppings ", "urine ", "slime ", "salt " };
                string   sFluid  = sFluids[Utility.RandomMinMax(0, (sFluids.Length - 1))];

                string[] sTypes = new string[] { "abysmal essence ", "angelic feathers ", "animal tongues ", "ape ears ", "bat ears ", "bear hairs ", "bird beaks ", "bone powder ", "bony horns ", "cat whiskers ", "centaur fingers ", "cow eyes ", "crab meat ", "crushed gems ", "crushed stone ", "crystal shards ", "cursed leaves ", "darkness ", "dead skin ", "demonic hellfire ", "dog hairs ", "dolphin teeth ", "dragon smoke ", "dried blood ", "dryad tears ", "electricity ", "elemental powder ", "elven blood ", "enchanted frost ", "enchanted sap ", "entrails ", "fish scales ", "frog tongues ", "gargoyle horns ", "gazing eyes ", "ghostly mist ", "giant blood ", "entrails ", "gore ", "hellish smoke ", "horrid breath ", "human blood ", "hydra urine ", "illithid brains ", "imp tails ", "ink ", "insect ichor ", "ivory pieces ", "jade chunks ", "large teeth ", "leech spit ", "liquid fire ", "magical ashes ", "magical dust ", "minotaur hooves ", "mummy wraps ", "mystical air ", "mystical dirt ", "mystical mud ", "ogre thumbs ", "oil ", "oni fur ", "orcish bile ", "ostard scales ", "pig snouts ", "pixie sparkles ", "poisonous gas ", "quills ", "rat tails ", "reptile scales ", "scaly fingers ", "scorpion stingers ", "sea water ", "silver shavings ", "slime ", "sphinx fur ", "spider legs ", "sprite teeth ", "succubus pheromones ", "swamp gas ", "troll claws ", "unicorn teeth ", "vampire fangs ", "wax shavings ", "wisp light ", "wood splinters ", "worm guts ", "wyrm spit ", "wyvern poison ", "yeti claws " };
                string   sType  = sTypes[Utility.RandomMinMax(0, (sTypes.Length - 1))];

                switch (Utility.RandomMinMax(0, 3))
                {
                case 0: task = task + sWeird + " " + sFluid + "and " + sType + "into a vial of "; break;

                case 1: task = task + sWeird + " " + sFluid + "and " + sType + "into a bottle of "; break;

                case 2: task = task + sWeird + " " + sFluid + "and " + sType + "into a flask of "; break;

                case 3: task = task + sWeird + " " + sFluid + "and " + sType + "into a jar of "; break;
                }

                string[] sMixs = new string[] { "Acidic", "Summoning", "Scrying", "Obscure", "Iron", "Ghoulish", "Enfeebling", "Altered", "Secret", "Obscuring", "Irresistible", "Gibbering", "Enlarged", "Confusing", "Analyzing", "Sympathetic", "Secure", "Permanent", "Keen", "Glittering", "Ethereal", "Contacting", "Animal", "Telekinetic", "Seeming", "Persistent", "Lawful", "Evil", "Continual", "Animated", "Telepathic", "Shadow", "Phantasmal", "Legendary", "Good", "Expeditious", "Control", "Antimagic", "Teleporting", "Shattering", "Phantom", "Lesser", "Grasping", "Explosive", "Crushing", "Arcane", "Temporal", "Shocking", "Phasing", "Levitating", "Greater", "Fabricated", "Cursed", "Articulated", "Tiny", "Shouting", "Planar", "Limited", "Guarding", "Faithful", "Dancing", "Binding", "Transmuting", "Shrinking", "Poisonous", "Lucubrating", "Fearful", "Dazzling", "Black", "Undead", "Silent", "Polymorphing", "Magical", "Hallucinatory", "Delayed", "Blinding", "Undetectable", "Slow", "Prismatic", "Magnificent", "Hideous", "Fire", "Demanding", "Blinking", "Unseen", "Solid", "Programmed", "Major", "Holding", "Flaming", "Dimensional", "Vampiric", "Soul", "Projected", "Mass", "Horrid", "Discern", "Burning", "Vanishing", "Spectral", "Mending", "Hypnotic", "Floating", "Disintegrating", "Cat", "Protective", "Mind", "Ice", "Flying", "Disruptive", "Chain", "Spidery", "Prying", "Minor", "Illusionary", "Force", "Dominating", "Changing", "Warding", "Stinking", "Pyrotechnic", "Mirrored", "Improved", "Forceful", "Dreaming", "Chaotic", "Water", "Stone", "Rainbow", "Misdirected", "Incendiary", "Freezing", "Elemental", "Charming", "Watery", "Misleading", "Instant", "Gaseous", "Emotional", "Chilling", "Weird", "Storming", "Resilient", "Mnemonic", "Interposing", "Gentle", "Enduring", "Whispering", "Suggestive", "Reverse", "Moving", "Invisible", "Ghostly", "Energy", "Clenched", "Climbing", "Comprehending", "Colorful", "True", "False" };
                string   sMix  = sMixs[Utility.RandomMinMax(0, (sMixs.Length - 1))];

                string[] sEffects = new string[] { "Acid", "Tentacles", "Sigil", "Plane", "Legend", "Gravity", "Emotion", "Chest", "Alarm", "Terrain", "Simulacrum", "Poison", "Lightning", "Grease", "Endurance", "Circle", "Anchor", "Thoughts", "Skin", "Polymorph", "Lights", "Growth", "Enervation", "Clairvoyance", "Animal", "Time", "Sleep", "Prestidigitation", "Location", "Guards", "Enfeeblement", "Clone", "Antipathy", "Tongues", "Soul", "Projection", "Lock", "Hand", "Enhancer", "Cloud", "Arcana", "Touch", "Sound", "Pyrotechnics", "Lore", "Haste", "Etherealness", "Cold", "Armor", "Transformation", "Spells", "Refuge", "Lucubration", "Hat", "Evil", "Color", "Arrows", "Trap", "Sphere", "Repulsion", "Magic", "Hound", "Evocation", "Confusion", "Aura", "Trick", "Spider", "Resistance", "Mansion", "Hypnotism", "Eye", "Conjuration", "Banishment", "Turning", "Spray", "Retreat", "Mask", "Ice", "Fall", "Contagion", "Banshee", "Undead", "Stasis", "Rope", "Maze", "Image", "Fear", "Creation", "Bear", "Vanish", "Statue", "Runes", "Message", "Imprisonment", "Feather", "Curse", "Binding", "Veil", "Steed", "Scare", "Meteor", "Insanity", "Field", "Dance", "Vision", "Stone", "Screen", "Mind", "Invisibility", "Fireball", "Darkness", "Blindness", "Vocation", "Storm", "Script", "Mirage", "Invulnerability", "Flame", "Daylight", "Blink", "Wail", "Strength", "Scrying", "Misdirection", "Iron", "Flesh", "Dead", "Blur", "Walk", "Strike", "Seeing", "Missile", "Item", "Fog", "Deafness", "Body", "Wall", "Stun", "Self", "Mist", "Jar", "Force", "Death", "Bolt", "Wards", "Suggestion", "Sending", "Monster", "Jaunt", "Foresight", "Demand", "Bond", "Water", "Summons", "Servant", "Mouth", "Jump", "Form", "Disjunction", "Breathing", "Weapon", "Sunburst", "Shadow", "Mud", "Kill", "Freedom", "Disk", "Burning", "Weather", "Swarm", "Shape", "Nightmare", "Killer", "Frost", "Dismissal", "Cage", "Web", "Symbol", "Shelter", "Object", "Knock", "Gate", "Displacement", "Chain", "Wilting", "Sympathy", "Shield", "Page", "Languages", "Good", "Door", "Chaos", "Wind", "Telekinesis", "Shift", "Pattern", "Laughter", "Grace", "Drain", "Charm", "Wish", "Teleport", "Shout", "Person", "Law", "Grasp", "Dream", "Elements", "Edge", "Earth", "Dust" };
                string   sEffect  = sEffects[Utility.RandomMinMax(0, (sEffects.Length - 1))];

                task = task + sMix + " " + sEffect;
            }

            return(task);
        }
Ejemplo n.º 2
0
        public static void AddCustomers(Mobile from, BaseShoppe shoppe, int customer)
        {
            string client = shoppe.Customer01;

            if (customer == 1)
            {
                client = shoppe.Customer01;
            }
            else if (customer == 2)
            {
                client = shoppe.Customer02;
            }
            else if (customer == 3)
            {
                client = shoppe.Customer03;
            }
            else if (customer == 4)
            {
                client = shoppe.Customer04;
            }
            else if (customer == 5)
            {
                client = shoppe.Customer05;
            }
            else if (customer == 6)
            {
                client = shoppe.Customer06;
            }
            else if (customer == 7)
            {
                client = shoppe.Customer07;
            }
            else if (customer == 8)
            {
                client = shoppe.Customer08;
            }
            else if (customer == 9)
            {
                client = shoppe.Customer09;
            }
            else if (customer == 10)
            {
                client = shoppe.Customer10;
            }
            else if (customer == 11)
            {
                client = shoppe.Customer11;
            }
            else if (customer == 12)
            {
                client = shoppe.Customer12;
            }

            int exist = Convert.ToInt32(GetDataElement(client, 3));

            if (from != null && exist == 0)
            {
                int repMax = (int)(GetReputation(from, shoppe) / 10);
                int repMin = (int)(repMax / 5);
                if (repMin < 10)
                {
                    repMin = 10;
                }
                if (repMin >= repMax)
                {
                    repMax = repMin + 10;
                }

                int gold = Utility.RandomMinMax(repMin, repMax);

                int fame = Utility.RandomMinMax(((int)(gold / 20)), ((int)(gold / 20) + Utility.RandomMinMax(0, 3)));
                if (fame < 5)
                {
                    fame = 5;
                }
                else if (fame > 50)
                {
                    fame = 50;
                }

                int skill = Utility.RandomMinMax(((int)((gold / 125) + 35)), ((int)((gold / 125) + 35) + Utility.RandomMinMax(0, 5)));
                if (skill < 30)
                {
                    skill = 30;
                }
                else if (skill > 120)
                {
                    skill = 120;
                }

                int tools = Utility.RandomMinMax(((int)(gold / 100)), ((int)(gold / 100) + Utility.RandomMinMax(0, 2)));
                if (tools < 1)
                {
                    tools = 1;
                }
                else if (tools > 10)
                {
                    tools = 10;
                }

                int resource = Utility.RandomMinMax(((int)(gold / 20)), ((int)(gold / 20) + Utility.RandomMinMax(0, 5)));
                if (resource < 5)
                {
                    resource = 5;
                }

                string customerName = NameList.RandomName("male");
                if (Utility.RandomBool())
                {
                    customerName = NameList.RandomName("female");
                }

                string customerTitle = HenchmanFunctions.GetTitle();

                string customerTask = Server.Items.BaseShoppe.MakeTask(shoppe);

                string finalCustomer = customerTask + "#" + customerName + " " + customerTitle + "#";
                finalCustomer = finalCustomer + "1" + "#" + gold + "#" + tools + "#" + resource + "#" + skill + "#" + fame + "";

                if (customer == 1)
                {
                    shoppe.Customer01 = finalCustomer;
                }
                else if (customer == 2)
                {
                    shoppe.Customer02 = finalCustomer;
                }
                else if (customer == 3)
                {
                    shoppe.Customer03 = finalCustomer;
                }
                else if (customer == 4)
                {
                    shoppe.Customer04 = finalCustomer;
                }
                else if (customer == 5)
                {
                    shoppe.Customer05 = finalCustomer;
                }
                else if (customer == 6)
                {
                    shoppe.Customer06 = finalCustomer;
                }
                else if (customer == 7)
                {
                    shoppe.Customer07 = finalCustomer;
                }
                else if (customer == 8)
                {
                    shoppe.Customer08 = finalCustomer;
                }
                else if (customer == 9)
                {
                    shoppe.Customer09 = finalCustomer;
                }
                else if (customer == 10)
                {
                    shoppe.Customer10 = finalCustomer;
                }
                else if (customer == 11)
                {
                    shoppe.Customer11 = finalCustomer;
                }
                else if (customer == 12)
                {
                    shoppe.Customer12 = finalCustomer;
                }
            }
        }
Ejemplo n.º 3
0
        public HenchmanItem() : base(0xE2D)
        {
            if (HenchBody > 0)
            {
            }
            else
            {
                HenchTimer = 300;
            }
            if (HenchBody > 0)
            {
            }
            else
            {
                HenchBody = Utility.RandomList(400, 400, 401);
            }
            if (HenchSpeech > 0)
            {
            }
            else
            {
                HenchSpeech = Utility.RandomDyedHue();
            }
            if (HenchTitle == null)
            {
                HenchTitle = HenchmanFunctions.GetTitle();
            }
            if (HenchHue > 0)
            {
            }
            else
            {
                HenchHue = Utility.RandomSkinHue();
            }
            if (HenchHairHue > 0)
            {
            }
            else
            {
                HenchHairHue = Utility.RandomHairHue();
            }
            if (HenchHair > 0)
            {
            }
            else
            {
                HenchHair = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2049, 0x204A);
            }

            if (HenchName == null)
            {
                if (HenchBody == 400)
                {
                    HenchName = NameList.RandomName("male");
                }
                else
                {
                    HenchName = NameList.RandomName("female");
                }
            }

            Name   = "henchman";
            Weight = 1.0;
        }