private void ManualCheckItemForMatches(LootObject IOItem) { try { if(IOItem.Id == LastReportGUID) {return;} else{LastReportGUID = IOItem.Id;} if(IOItem.ObjectClass == AObjectClass.Scroll){CheckUnknownScrolls(ref IOItem);} if(IOItem.IOR == IOResult.unknown){CheckRare(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {TrophyHashCheckItem(ref IOItem);} if(IOItem.HasIdData && IOItem.IOR == IOResult.unknown){CheckRulesItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown && mGeneralSettings.FoundrySettings.AutoDessicateJunkLootAetheria && IOItem.Aetheriacheck) {CheckDesiccateAetheria(ref IOItem);} if(IOItem.IOR == IOResult.unknown && mGeneralSettings.GearInspectorSettings.IdentifySalvage) {CheckSalvageItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {CheckManaItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {CheckValueItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {IOItem.IOR = IOResult.nomatch;} if(mGeneralSettings.GearInspectorSettings.GSStrings) {ReportStringToChat(IOItem.GSReportString());} if(mGeneralSettings.GearInspectorSettings.AlincoStrings){ReportStringToChat(IOItem.LinkString());} }catch(Exception ex){LogError(ex);} }
private void ButlerHudList_Click(object sender, int row, int col) { try { ButlerRow = ButlerHudList[row]; int ItemGuid = Convert.ToInt32(((HudStaticText)ButlerRow[6]).Text); LootObject lo = new LootObject(AetherObjects.Collection[ItemGuid]); if(col == 0) { Host.Actions.SelectItem(lo.Id); } if(col == 1) { if(mGeneralSettings.EnabledHudSettings.bGearInspectorEnabled) { Core.Actions.SelectItem(lo.Id); Core.Actions.RequestId(lo.Id); } else { if(mGeneralSettings.GearInspectorSettings.GSStrings){HudToChat(lo.GSReportString(),2);} if(mGeneralSettings.GearInspectorSettings.AlincoStrings){HudToChat(lo.LinkString(),2);} } } if(col == 2) { Core.Actions.MoveItem(lo.Id, AetherCharacter.CharStats.Id, 0, false); } if(col == 3 && !mButlerFilters.storage) { if(Core.Actions.OpenedContainer == 0 || AetherObjects.Collection[Core.Actions.OpenedContainer].Name != "Storage") { WriteToChat("No storage container opened."); } else { Foundry_LoadAction(FoundryActionTypes.AddToStorage, lo.Id); } } if(col == 4 && !mButlerFilters.storage) { if(AetherObjects.Collection[Core.Actions.CurrentSelection].ObjectClass == AObjectClass.Npc || AetherObjects.Collection[Core.Actions.CurrentSelection].ObjectClass == AObjectClass.Player) { if(lo.Values(ALongValueKeys.EquippedSlots) > 0 || lo.Values(ALongValueKeys.Unknown10) == 56) { WriteToChat("Unequip the item first."); } else { Host.Actions.GiveItem(lo.Id, Host.Actions.CurrentSelection); } } else { WriteToChat("First select an NPC, Player, or yourself."); } } if(col == 5 && !mButlerFilters.storage) { if(AetherTrade.TradeWindow.InTrade) { Core.Actions.TradeAdd(lo.Id); } else if(AetherTrade.VendorId != 0) { if(lo.Values(ALongValueKeys.EquippedSlots) > 0 || lo.Values(ALongValueKeys.Unknown10) == 56) { WriteToChat("Unequip the item first."); } else { Core.Actions.VendorAddSellList(lo.Id); } } } } catch (Exception ex) { LogError(ex); } }
private void ValetSuitPiecesList_Click(object sender, int row, int col) { try { HudList.HudListRowAccessor ValetRow = ValetSuitPiecesList[row]; int ItemId = Convert.ToInt32(((HudStaticText)ValetRow[4]).Text); if(col == 0) { Core.Actions.SelectItem(ItemId); } if(col == 1) { int priorityindex = mValetSuit.SuitPieces.FindIndex(x => x.ItemId == ItemId); mValetSuit.SuitPieces[priorityindex].Priority++; if(mValetSuit.SuitPieces[priorityindex].Priority > 9) { mValetSuit.SuitPieces[priorityindex].Priority = 1; } } if(col == 2) { LootObject tLootObj = new LootObject(AetherObjects.Collection[ItemId]); if(mGeneralSettings.GearInspectorSettings.GSStrings){HudToChat(tLootObj.GSReportString(),2);} if(mGeneralSettings.GearInspectorSettings.AlincoStrings){HudToChat(tLootObj.LinkString(),2);} } if(col == 3) { int RemoveIndex = mValetSuit.SuitPieces.FindIndex(x => x.ItemId == ItemId); mValetSuit.SuitPieces.RemoveAt(RemoveIndex); if(mValetSuit.SuitPieces.Count == 0) { mCharacterSettings.ValetSuitList.RemoveAll(x => x.TicketStub == mValetSuit.TicketStub); } if(mCharacterSettings.ValetSuitList.Count > 0) { mValetSuit = mCharacterSettings.ValetSuitList.First(); } else { mValetSuit = null; } } UpdateValetHud(); }catch(Exception ex){LogError(ex);} }
private void ButlerHudList_Click(object sender, int row, int col) { try { ButlerRow = ButlerHudList[row]; int ItemGuid = Convert.ToInt32(((HudStaticText)ButlerRow[6]).Text); LootObject lo = new LootObject(Core.WorldFilter[ItemGuid]); if(col == 0) { Host.Actions.SelectItem(lo.Id); } if(col == 1) { try { if(GISettings.GSStrings){HudToChat(lo.GSReportString(), 2);} if(GISettings.AlincoStrings){HudToChat(lo.LinkString(),2);} }catch{} } if(col == 2) { Core.Actions.MoveItem(lo.Id, Core.CharacterFilter.Id, 0, false); } if(col == 3) { if(lo.LValue(LongValueKey.Unknown10) == 8) { if(!lo.Name.Contains("Mana Stone") || !lo.Name.Contains("Dessicant")) { Host.Actions.UseItem(lo.Id, 1); } } else { Host.Actions.UseItem(lo.Id, 0); } } if(col == 4) { if(Core.WorldFilter[Core.Actions.CurrentSelection].ObjectClass == ObjectClass.Npc || Core.WorldFilter[Core.Actions.CurrentSelection].ObjectClass == ObjectClass.Player) { if(lo.LValue(LongValueKey.EquippedSlots) > 0 || lo.LValue(LongValueKey.Unknown10) == 56) { WriteToChat("Unequip the item first."); } else { Host.Actions.GiveItem(lo.Id, Host.Actions.CurrentSelection); } } else { WriteToChat("First select an NPC, Player, or yourself."); } } if(col == 5) { if(bButlerTradeOpen) { Core.Actions.TradeAdd(lo.Id); } else if(Core.WorldFilter.OpenVendor.MerchantId != 0) { if(lo.LValue(LongValueKey.EquippedSlots) > 0 || lo.LValue(LongValueKey.Unknown10) == 56) { WriteToChat("Unequip the item first."); } else { Core.Actions.VendorAddSellList(lo.Id); } } } } catch (Exception ex) { LogError(ex); } return; }
private void ManualCheckItemForMatches(LootObject IOItem) { try { if(IOItem.Id == LastReportGUID) {return;} else{LastReportGUID = IOItem.Id;} if(IOItem.ObjectClass == ObjectClass.Scroll){CheckUnknownScrolls(ref IOItem);} if(IOItem.IOR == IOResult.unknown){CheckRare(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {TrophyListCheckItem(ref IOItem);} if(IOItem.HasIdData && IOItem.IOR == IOResult.unknown){CheckRulesItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown && GISettings.IdentifySalvage) {CheckSalvageItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {CheckManaItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {CheckValueItem(ref IOItem);} if(IOItem.IOR == IOResult.unknown) {IOItem.IOR = IOResult.nomatch;} if(GISettings.GSStrings) {ReportStringToChat(IOItem.GSReportString());} if(GISettings.AlincoStrings){ReportStringToChat(IOItem.LinkString());} }catch(Exception ex){LogError(ex);} }
private void ValetSuitPiecesList_Click(object sender, int row, int col) { try { ValetRow = ValetSuitPiecesList[row]; if(col == 0) { Core.Actions.SelectItem(Convert.ToInt32(((HudStaticText)ValetRow[3]).Text)); } if(col == 1) { LootObject tLootObj = new LootObject(Core.WorldFilter[Convert.ToInt32(((HudStaticText)ValetRow[3]).Text)]); if(GISettings.GSStrings){tLootObj.GSReportString();} if(GISettings.AlincoStrings){tLootObj.LinkString();} } if(col == 2) { GearButlerSettings.ValetSuitList[ValetCurrentSuit].SuitPieces.RemoveAll(x => x.ItemId == Convert.ToInt32(((HudStaticText)ValetRow[3]).Text)); if(GearButlerSettings.ValetSuitList[ValetCurrentSuit].SuitPieces.Count == 0) { GearButlerSettings.ValetSuitList.RemoveAll(x => x.TicketStub == ValetCurrentSuit); } if(GearButlerSettings.ValetSuitList.Count > 0 && !GearButlerSettings.ValetSuitList.Any(x => x.TicketStub == ValetCurrentSuit)) { ValetCurrentSuit = GearButlerSettings.ValetSuitList.First().TicketStub; } else { ValetCurrentSuit = 0; } } UpdateValetHud(); }catch(Exception ex){LogError(ex);} }