public static void PickSearchLocation(SearchPage scroll, string DungeonNow, Mobile from) { string thisWorld = "the Land of Sosaria"; string thisPlace = "the Dungeon of Doom"; Map thisMap = Map.Trammel; int aCount = 0; ArrayList targets = new ArrayList(); foreach (Item target in World.Items.Values) { if (target is SearchBase && (DifficultyLevel.GetDifficultyLevel(target.Location, target.Map) <= GetPlayerInfo.GetPlayerDifficulty(from))) { string tWorld = Worlds.GetMyWorld(target.Map, target.Location, target.X, target.Y); Region region = Region.Find(target.Location, target.Map); targets.Add(target); aCount++; } } aCount = Utility.RandomMinMax(1, aCount); int xCount = 0; for (int i = 0; i < targets.Count; ++i) { xCount++; if (xCount == aCount) { Item finding = ( Item )targets[i]; thisWorld = Worlds.GetMyWorld(finding.Map, finding.Location, finding.X, finding.Y); thisMap = finding.Map; thisPlace = Server.Misc.Worlds.GetRegionName(finding.Map, finding.Location); } } string Word1 = "Legends"; switch (Utility.RandomMinMax(1, 4)) { case 1: Word1 = "Rumors"; break; case 2: Word1 = "Myths"; break; case 3: Word1 = "Tales"; break; case 4: Word1 = "Stories"; break; } string Word2 = "lost"; switch (Utility.RandomMinMax(1, 4)) { case 1: Word2 = "kept"; break; case 2: Word2 = "seen"; break; case 3: Word2 = "taken"; break; case 4: Word2 = "hidden"; break; } string Word3 = "deep in"; switch (Utility.RandomMinMax(1, 4)) { case 1: Word3 = "within"; break; case 2: Word3 = "somewhere in"; break; case 3: Word3 = "somehow in"; break; case 4: Word3 = "far in"; break; } string Word4 = "centuries ago"; switch (Utility.RandomMinMax(1, 4)) { case 1: Word4 = "thousands of years ago"; break; case 2: Word4 = "decades ago"; break; case 3: Word4 = "millions of years ago"; break; case 4: Word4 = "many years ago"; break; } string sMessage = scroll.SearchDungeon = thisPlace; scroll.SearchWorld = thisWorld; scroll.DungeonMap = thisMap; string EntranceLocation = Worlds.GetAreaEntrance(scroll.SearchDungeon, scroll.DungeonMap); string OldMessage = "<br><br><br><br><br><br>" + scroll.SearchMessage; scroll.SearchMessage = scroll.SearchItem + "<br><br>" + Word1 + " tell of the " + scroll.SearchItem + " being " + Word2 + " " + Word3; scroll.SearchMessage = scroll.SearchMessage + " " + scroll.SearchDungeon + " " + Word4 + " by " + QuestCharacters.QuestGiver() + "."; scroll.SearchMessage = scroll.SearchMessage + " in " + scroll.SearchWorld + " at the below sextant coordinates.<br><br>" + EntranceLocation + OldMessage; scroll.InvalidateProperties(); }