public override async Task <bool> CombatBuffLvL40() { if (await Ultima.SummonChocobo()) { return(true); } if (await Invigorate()) { return(true); } if (await InternalRelease()) { return(true); } if (await BloodForBlood()) { return(true); } if (await LegSweep()) { return(true); } if (await Jump()) { return(true); } if (await SpineshatterDive()) { return(true); } return(await MercyStroke()); }
public override async Task <bool> CombatBuffLvL22() { if (await Ultima.SummonChocobo()) { return(true); } if (await Invigorate()) { return(true); } if (await RagingStrikes()) { return(true); } if (await InternalRelease()) { return(true); } if (await HawksEye()) { return(true); } if (await MiserysEnd()) { return(true); } return(await Bloodletter()); }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await LucidDreaming()) { return(true); } if (await RoyalRoad()) { return(true); } if (await Redraw()) { return(true); } if (await Undraw()) { return(true); } if (await Spread()) { return(true); } if (await Draw()) { return(true); } return(await Protect()); }
public override async Task <bool> CombatBuffLvL38() { if (await Ultima.SummonChocobo()) { return(true); } if (await Invigorate()) { return(true); } if (await ShoulderTackle()) { return(true); } if (await InternalRelease()) { return(true); } if (await BloodForBlood()) { return(true); } if (await SteelPeak()) { return(true); } if (await Haymaker()) { return(true); } return(await MercyStroke()); }
public MapDetails(Ultima.Map currmap, Point point) { InitializeComponent(); this.Icon = FiddlerControls.Options.GetFiddlerIcon(); this.TopMost = true; Tile currtile = currmap.Tiles.GetLandTile(point.X, point.Y); richTextBox.AppendText(String.Format("X: {0} Y: {1}\n\n", point.X, point.Y)); richTextBox.AppendText("LandTile:\n"); richTextBox.AppendText(String.Format("{0}: 0x{1:X} Altitute: {2}\n\n", Ultima.TileData.LandTable[currtile.ID].Name, currtile.ID, currtile.Z)); HuedTile[] currStatics = currmap.Tiles.GetStaticTiles(point.X, point.Y); richTextBox.AppendText("Statics:\n"); foreach (HuedTile currstatic in currStatics) { ushort id = (ushort)currstatic.ID; richTextBox.AppendText(String.Format("{0}: 0x{1:X} Hue: {2} Altitute: {3}\n", Ultima.TileData.ItemTable[id].Name, id, currstatic.Hue, currstatic.Z)); } }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await ShoulderTackle()) { return(true); } if (await ElixirField()) { return(true); } if (await HowlingFist()) { return(true); } if (await SteelPeak()) { return(true); } if (await ForbiddenChakra()) { return(true); } return(await Haymaker()); }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await Darkside()) { return(true); } if (await BloodWeapon()) { return(true); } if (await Plunge()) { return(true); } if (await Reprisal()) { return(true); } if (await LowBlow()) { return(true); } if (await SaltedEarth()) { return(true); } return(await MercyStroke()); }
protected override async void OnStartup(StartupEventArgs e) { CreateMutex(e); Utility.CreateFileFromResource(Constants.ConfigFilePath, Constants.ConfigResource); MainWindow = new MainWindow(); var window = new LauncherUpdate_View(); window.Show(); await Task.Delay(2000); if (await Launcher.CheckForUpdate()) { await Launcher.BeginUpdates(); } else { window.Close(); MainWindow.Show(); } Ultima.InitializePath(); Razor.InitializePath(); if (Ultima.IsInstalled()) { Updates.InitializeUpdates(); } }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await HissatsuGuren()) { return(true); } if (await HissatsuKyuten()) { return(true); } if (await HissatsuSeigan()) { return(true); } if (await HissatsuShinten()) { return(true); } if (await Invigorate()) { return(true); } return(await Ageha()); }
public override async Task <bool> PreCombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } return(await WanderersMinuet()); }
public override async Task <bool> CombatBuffLvL6() { if (await Ultima.SummonChocobo()) { return(true); } return(await ClericStance()); }
public override async Task <bool> PreCombatBuffLvL30() { if (await Ultima.SummonChocobo()) { return(true); } return(await KissOfTheViper()); }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } return(await BrutalSwing()); }
public override async Task <bool> PreCombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } return(await GaussBarrel()); }
public override async Task <bool> CombatBuffLvL6() { if (await Ultima.SummonChocobo()) { return(true); } return(await FightOrFlight()); }
public override async Task <bool> PreCombatBuffLvL8() { if (await Ultima.SummonChocobo()) { return(true); } return(await Protect()); }
public override async Task <bool> PreCombatBuffLvL4() { if (await Ultima.SummonChocobo()) { return(true); } return(await Transpose()); }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } return(await LegSweep()); }
public override async Task <bool> CombatBuffLvL6() { if (await Ultima.SummonChocobo()) { return(true); } return(await KissOfTheWasp()); }
public override async Task <bool> CombatBuffLvL4() { if (await Ultima.SummonChocobo()) { return(true); } return(await RagingStrikes()); }
public override async Task <bool> CombatBuffLvL10() { if (await Ultima.SummonChocobo()) { return(true); } return(await Haymaker()); }
public override async Task <bool> PreCombatBuffLvL22() { if (await Ultima.SummonChocobo()) { return(true); } return(await FistsOfEarth()); }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await GaussBarrel()) { return(true); } if (await RookAutoturret()) { return(true); } if (await BishopAutoturret()) { return(true); } if (await Reload()) { return(true); } if (await QuickReload()) { return(true); } if (await Hypercharge()) { return(true); } if (await GaussRound()) { return(true); } if (await RapidFire()) { return(true); } if (await Wildfire()) { return(true); } if (await Ricochet()) { return(true); } if (await Blank()) { return(true); } if (await HeadGraze()) { return(true); } return(await Heartbreak()); }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await WanderersMinuet()) { return(true); } if (await Invigorate()) { return(true); } if (await RagingStrikes()) { return(true); } if (await HawksEye()) { return(true); } if (await BloodForBlood()) { return(true); } if (await InternalRelease()) { return(true); } if (await Barrage()) { return(true); } if (await FlamingArrow()) { return(true); } if (await Sidewinder()) { return(true); } if (await BluntArrow()) { return(true); } if (await MiserysEnd()) { return(true); } if (await RainOfDeath()) { return(true); } return(await Bloodletter()); }
public MapClearStatics(FiddlerControls.Map parent, Ultima.Map map) { MapParent = parent; Map = map; InitializeComponent(); this.Icon = FiddlerControls.Options.GetFiddlerIcon(); numericUpDownX1.Maximum = map.Width; numericUpDownX2.Maximum = map.Width; numericUpDownY1.Maximum = map.Height; numericUpDownY2.Maximum = map.Height; }
public MapDiffInsert(Ultima.Map currmap) { InitializeComponent(); this.Icon = FiddlerControls.Options.GetFiddlerIcon(); workingmap = currmap; numericUpDownX1.Maximum = workingmap.Width; numericUpDownX2.Maximum = workingmap.Width; numericUpDownY1.Maximum = workingmap.Height; numericUpDownY2.Maximum = workingmap.Height; this.Text = String.Format("Map Diff Insert ID:{0}",workingmap.FileIndex); }
public override async Task <bool> CombatBuffLvL12() { if (await Ultima.SummonChocobo()) { return(true); } if (await InternalRelease()) { return(true); } return(await BrutalSwing()); }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await ShroudOfSaints()) { return(true); } return(await Protect()); }
public override async Task <bool> PreCombatBuffLvL15() { if (await Ultima.SummonChocobo()) { return(true); } if (await Summon()) { return(true); } return(await SummonII()); }
public override async Task <bool> PreCombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await ShieldOath()) { return(true); } return(await SwordOath()); }
public static async void InitializeUpdates() { string url = String.Empty; if (Config.GetSetting("EnableTreeHack") == "False" || string.IsNullOrEmpty(Config.GetSetting("EnableTreeHack"))) { url = Ultima.IsUOP() ? Constants.UOPDownload : Constants.MULDownload; } else { url = Ultima.IsUOP() ? Constants.UOPTreeHackDownload : Constants.MULTreeHackDownload; } var doc = await GetUpdates(url); if (doc != null) { Instance = ((Updates)Utility.MapXmlDocToClass(typeof(Updates), doc)); } foreach (var update in Instance.UpdatesCollection.ToArray()) { string path = Path.Combine(update.Location, update.DisplayName); if (File.Exists(path)) { var localhash = Utility.Md5Checksum(path); if (localhash == update.Hash.ToLower()) { Instance.UpdatesCollection.Remove(update); } else { update.Status = AssemblyStatus.Outdated; } } else { update.Status = AssemblyStatus.Outdated; } } if (Instance.UpdatesCollection.Count > 0) { EventController.InvokeUpdatesRetrieved(); if (Config.GetSetting("UpdateOnStart") == "True") { Update_All(); } } }
public override async Task <bool> CombatBuff() { if (await Ultima.SummonChocobo()) { return(true); } if (await Invigorate()) { return(true); } if (await BloodOfTheDragon()) { return(true); } if (await BattleLitany()) { return(true); } if (await BloodForBlood()) { return(true); } if (await InternalRelease()) { return(true); } if (await PowerSurge()) { return(true); } if (await LegSweep()) { return(true); } if (await Geirskogul()) { return(true); } if (await Jump()) { return(true); } if (await DragonfireDive()) { return(true); } if (await SpineshatterDive()) { return(true); } return(await MercyStroke()); }
public static void Update_All() { if (!Ultima.IsUORunning()) { foreach (var updateobj in Instance.UpdatesCollection) { if (!updateobj.IsActive) { Update(updateobj); } } } }
public MapReplace(Ultima.Map currmap) { InitializeComponent(); this.Icon = FiddlerControls.Options.GetFiddlerIcon(); workingmap = currmap; numericUpDownX1.Maximum = workingmap.Width; numericUpDownX2.Maximum = workingmap.Width; numericUpDownY1.Maximum = workingmap.Height; numericUpDownY2.Maximum = workingmap.Height; numericUpDownToX1.Maximum = workingmap.Width; numericUpDownToY1.Maximum = workingmap.Height; this.Text = String.Format("MapReplace ID:{0}",workingmap.FileIndex); comboBoxMapID.BeginUpdate(); comboBoxMapID.Items.Add(new R_FeluccaOld()); comboBoxMapID.Items.Add(new R_Felucca()); comboBoxMapID.Items.Add(new R_Trammel()); comboBoxMapID.Items.Add(new R_Ilshenar()); comboBoxMapID.Items.Add(new R_Malas()); comboBoxMapID.Items.Add(new R_Tokuno()); comboBoxMapID.Items.Add(new R_TerMur()); comboBoxMapID.EndUpdate(); comboBoxMapID.SelectedIndex = 0; }
public Tile(Ultima.Tile land) { this.Type = land.ID; this.Z = land.Z; }
private void GenerateFacet(Ultima.FacetGenAlgorithm alg) { GenerateFacet(currmap, alg); }
private void GenerateFacet(Ultima.Map map, Bitmap bitmap) { Cursor.Current = Cursors.WaitCursor; Ultima.Facet facet = new Ultima.Facet(map.FileIndex, bitmap); string FileName = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase, String.Format("facet0{0}.mul", map.FileIndex)); facet.Save(FileName); Cursor.Current = Cursors.Default; MessageBox.Show(String.Format("Facet0{0} был создан и сохранен: {1}", map.FileIndex, FileName), "Сохраненно", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); }
private static void GetAverageZ( Ultima.Map map, int x, int y, ref int z, ref int avg, ref int top ) { try { int zTop = map.Tiles.GetLandTile( x, y ).Z; int zLeft = map.Tiles.GetLandTile( x, y + 1 ).Z; int zRight = map.Tiles.GetLandTile( x + 1, y ).Z; int zBottom = map.Tiles.GetLandTile( x + 1, y + 1 ).Z; z = zTop; if ( zLeft < z ) z = zLeft; if ( zRight < z ) z = zRight; if ( zBottom < z ) z = zBottom; top = zTop; if ( zLeft > top ) top = zLeft; if ( zRight > top ) top = zRight; if ( zBottom > top ) top = zBottom; if ( Math.Abs( zTop - zBottom ) > Math.Abs( zLeft - zRight) ) avg = (int)Math.Floor( (zLeft + zRight) / 2.0 ); else avg = (int)Math.Floor( (zTop + zBottom) / 2.0 ); } catch { } }
public ModArea(Ultima.Map map, int sx, int sy, int ex, int ey, Dictionary<ushort, ushort> toConvLand, Dictionary<ushort, ushort> toConvStatic) { area = new RectangleArea(map, sx, sy, ex, ey); ConvertDictLand = toConvLand; ConvertDictStatic = toConvStatic; }
public MapReplaceTiles(Ultima.Map map) { InitializeComponent(); Map = map; }
public RectangleArea(Ultima.Map map, int sx, int sy, int ex, int ey) : this() { if(map == null) return; if(sx < 0 || sx > map.Width) sx = 0; if(sy < 0 || sy > map.Height) sy = 0; if(ex < startx || ex > map.Width) ex = sx; if(ey < starty || ey > map.Height) ey = sy; startx = sx; starty = sy; endx = ex; endy = ey; }
public static bool Format(Point p, Ultima.Map map, ref int xLong, ref int yLat, ref int xMins, ref int yMins, ref bool xEast, ref bool ySouth) { if (map == null) return false; int x = p.X, y = p.Y; int xCenter, yCenter; int xWidth, yHeight; if (!ComputeMapDetails(map, x, y, out xCenter, out yCenter, out xWidth, out yHeight)) return false; double absLong = (double)((x - xCenter) * 360) / xWidth; double absLat = (double)((y - yCenter) * 360) / yHeight; if (absLong > 180.0) absLong = -180.0 + (absLong % 180.0); if (absLat > 180.0) absLat = -180.0 + (absLat % 180.0); bool east = (absLong >= 0), south = (absLat >= 0); if (absLong < 0.0) absLong = -absLong; if (absLat < 0.0) absLat = -absLat; xLong = (int)absLong; yLat = (int)absLat; xMins = (int)((absLong % 1.0) * 60); yMins = (int)((absLat % 1.0) * 60); xEast = east; ySouth = south; return true; }
public MapCombine(Ultima.Map currmap) { InitializeComponent(); textBoxPath0.Text = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; }
private Map(int index, Ultima.Map mapObject) { m_Index = index; m_MapObject = mapObject; }
public static bool ComputeMapDetails(Ultima.Map map, int x, int y, out int xCenter, out int yCenter, out int xWidth, out int yHeight) { xWidth = 5120; yHeight = 4096; if (map == Ultima.Map.Trammel || map == Ultima.Map.Felucca) { if (x >= 0 && y >= 0 && x < 5120 && y < map.Height) { xCenter = 1323; yCenter = 1624; } else if (x >= 5120 && y >= 2304 && x < 6144 && y < map.Height) { xCenter = 5936; yCenter = 3112; } else { xCenter = 0; yCenter = 0; return false; } } else if ( x >= 0 && y >= 0 && x < map.Width && y < map.Height ) { xCenter = 1323; yCenter = 1624; } else { xCenter = map.Width / 2; yCenter = map.Height / 2; return false; } return true; }