private void toolStripButton2_Click(object sender, EventArgs e) { if (!fischer.IsRunning) { try { EquipmentStruct equip = ffxi.Inventory.GetEquipped(); if (equip.Ammo.ItemIndex != 0 && equip.Range.ItemIndex != 0) { fischer.Start(); fischer.BaitID = ffxi.Inventory.GetItemByIndex((Bag)equip.Ammo.BagID, equip.Ammo.ItemIndex).Value.ID; fischer.RodID = ffxi.Inventory.GetItemByIndex((Bag)equip.Range.BagID, equip.Range.ItemIndex).Value.ID; fischer.Settings = settings; } } catch (Exception ex) { ErrorLog.OnError(ex); } } else { try { fischer.Stop(); } catch (Exception ex) { ErrorLog.OnError(ex); } } }
private void start() { try { fischer.Start(); } catch (Exception ex) { ErrorLog.OnError(ex); } }