void Core_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { WorldObject container = CoreManager.Current.WorldFilter[e.ItemGuid]; if (container == null) { return; } // Do not loot housing chests if (container.Name == "Storage") { return; } if (container.ObjectClass == ObjectClass.Corpse) { return; } // Only loot chests and vaults, etc... if (container.Name.Contains("Chest") || container.Name.Contains("Vault") || container.Name.Contains("Reliquary")) { Start(); } } catch { } }
void Core_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { currentOpenContainer = CoreManager.Current.WorldFilter[e.ItemGuid]; if (currentOpenContainer == null) { return; } // Do not log housing chests if (currentOpenContainer.Name == "Storage") { return; } if (currentOpenContainer.ObjectClass == ObjectClass.Corpse) { currentOpenContainerIsSingleUseChest = false; Start(); } else if (currentOpenContainer.Name.Contains("Chest") || currentOpenContainer.Name.Contains("Vault") || currentOpenContainer.Name.Contains("Reliquary")) { currentOpenContainerIsSingleUseChest = true; chestItemsLogged.Clear(); Start(); } } catch { } }
void Current_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { if (!Settings.SettingsManager.ItemInfoOnIdent.Enabled.Value) { return; } WorldObject container = CoreManager.Current.WorldFilter[e.ItemGuid]; if (container == null) { return; } // Do not ident items housing chests if (container.Name == "Storage") { return; } Start(); } catch (Exception ex) { Debug.LogException(ex); } }
private void Current_ContainerOpened(object sender, ContainerOpenedEventArgs e) { if (e.ItemGuid != 0) { aco_chest_container = e.ItemGuid; action_completed = true; current_state = STEELBOT_STATE.DELAY1; CoreManager.Current.Actions.AddChatText("Container opened: " + aco_chest_container.ToString(), 5); } }
void Current_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { if (!Settings.SettingsManager.ItemInfoOnIdent.Enabled.Value) return; WorldObject container = CoreManager.Current.WorldFilter[e.ItemGuid]; if (container == null) return; // Do not ident items housing chests if (container.Name == "Storage") return; Start(); } catch (Exception ex) { Debug.LogException(ex); } }
void Current_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { WorldObject container = CoreManager.Current.WorldFilter[e.ItemGuid]; if (container == null) { return; } // Do not loot housing chests if (container.Name == "Storage") { return; } if (container.ObjectClass == ObjectClass.Corpse) { if (Settings.SettingsManager.Looting.AutoLootCorpses.Value) { Start(); return; } if (Settings.SettingsManager.Looting.AutoLootMyCorpses.Value && container.Name == "Corpse of " + CoreManager.Current.CharacterFilter.Name) { Start(); return; } } // Only loot chests and vaults, etc... if (Settings.SettingsManager.Looting.AutoLootChests.Value && (container.Name.Contains("Chest") || container.Name.Contains("Vault") || container.Name.Contains("Reliquary"))) { Start(); return; } } catch (Exception ex) { Debug.LogException(ex); } }
void Core_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { WorldObject container = CoreManager.Current.WorldFilter[e.ItemGuid]; if (container == null) return; // Do not loot housing chests if (container.Name == "Storage") return; if (container.ObjectClass == ObjectClass.Corpse) return; // Only loot chests and vaults, etc... if (container.Name.Contains("Chest") || container.Name.Contains("Vault") || container.Name.Contains("Reliquary")) Start(); } catch { } }
void Current_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { if (!Settings.SettingsManager.CorpseTracker.Enabled.Value) { return; } if (e.ItemGuid == 0) { return; } for (int i = 0; i < trackedItems.Count; i++) { if (trackedItems[i].Id == e.ItemGuid) { TrackedCorpse trackedItem = trackedItems[i]; if (trackedItem.Opened) { return; } trackedItem.Opened = true; if (ItemChanged != null) { ItemChanged(trackedItem); } break; } } } catch (Exception ex) { Debug.LogException(ex); } }
void Current_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { WorldObject container = CoreManager.Current.WorldFilter[e.ItemGuid]; if (container == null) return; // Do not loot housing chests if (container.Name == "Storage") return; if (container.ObjectClass == ObjectClass.Corpse) { if (Settings.SettingsManager.Looting.AutoLootCorpses.Value) { Start(); return; } if (Settings.SettingsManager.Looting.AutoLootMyCorpses.Value && container.Name == "Corpse of " + CoreManager.Current.CharacterFilter.Name) { Start(); return; } } // Only loot chests and vaults, etc... if (Settings.SettingsManager.Looting.AutoLootChests.Value && (container.Name.Contains("Chest") || container.Name.Contains("Vault") || container.Name.Contains("Reliquary"))) { Start(); return; } } catch (Exception ex) { Debug.LogException(ex); } }
private void LootContainerOpened(object sender, ContainerOpenedEventArgs e) { try { if(e.ItemGuid == 0) {return;} if(AetherObjects.Collection[e.ItemGuid].Values(ALongValueKeys.Burden) == 6000) {return;} if(LastLootTime == DateTime.MinValue) { LastLootTime = DateTime.Now; Core.RenderFrame += LootContainerDelay; } } catch(Exception ex){LogError(ex);} }
private void LootContainerOpened(object sender, ContainerOpenedEventArgs e) { try { if(Core.WorldFilter[e.ItemGuid] == null){return;} if(Core.WorldFilter[e.ItemGuid].Values(LongValueKey.Burden) == 0) {return;} if(Core.WorldFilter.GetByContainer(e.ItemGuid).Count == 0) { WriteToChat("Loot Tapback hit"); LastLootContainer = e.ItemGuid; Core.RenderFrame += LootContainerDelay; } WriteToChat("Passed into Loot Container"); LootByContainer(e.ItemGuid); } catch(Exception ex){LogError(ex);} }
private void CorpseTrackerContainerOpened(object sender, ContainerOpenedEventArgs e) { try { if(e.ItemGuid == 0) {return;} int ctIndex = CorpseTrackingList.FindIndex(x => x.Id == e.ItemGuid); if(ctIndex >= 0) { CorpseTrackingList[ctIndex].notify = false; UpdateCorpseHud(); } }catch(Exception ex){LogError(ex);} }
private void Storage_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try { if (e.ItemGuid == 0) { return; } if (AetherObjects.Collection[e.ItemGuid].Name != "Storage") { return; } mCurrentStoragePendingIds = new HashSet<int>(); mCurrentStorage = GetServerStorageFromLocker(@GearFiles.ServerKey, e.ItemGuid); if (!AetherObjects.Collection[e.ItemGuid].HasIdData || mCurrentStorage.OwnerName == String.Empty) { mCurrentStoragePendingIds.Add(e.ItemGuid); Core.Actions.RequestId(e.ItemGuid); } else { mCurrentStorage.OwnerName = @AetherObjects.Collection[mCurrentStorage.StorageChestGUID].Values(AStringValueKeys.FullDescription).Trim().Substring(9); mCurrentStorage.ChestKey = @mCurrentStorage.OwnerName + @"'s Storage"; mCurrentStorage.LastUpdateTime = DateTime.Now.ToString(); } if (StorageRenderTime == DateTime.MinValue) { StorageRenderTime = DateTime.Now; Core.RenderFrame += StorageContainerTapback; } } catch (Exception ex) { LogError(ex); } }
void Core_ContainerOpened(object sender, ContainerOpenedEventArgs e) { try{ CoreManager.Current.Actions.RequestId(e.ItemGuid); WorldObject container = CoreManager.Current.WorldFilter[e.ItemGuid]; if (container == null || container.Id == 0) { return; } else if (container.Name.Contains("Storage")) { Excluded_GUIDs.Add(container.Id); return; } else if(!Excluded_GUIDs.Contains(container.Id)) { // Blacklist corpses of self if (container.Name.Contains(Core.CharacterFilter.Name)) { Excluded_GUIDs.Add(container.Id); return; } else { // Log everything but storage if (container.ObjectClass == ObjectClass.Corpse && !Excluded_GUIDs.Contains(container.Id)) { // Only log kills from self, omit corpses of self and corpses of others and other's kills. if (container.Values(StringValueKey.FullDescription).Contains(Core.CharacterFilter.Name)) { LogContainers(container); return; } else { if(!Excluded_GUIDs.Contains(container.Id)) {Excluded_GUIDs.Add(container.Id);} return; } } else if(container.ObjectClass == ObjectClass.Container) //don't blacklist chests { LogContainers(container); return; } } } } catch{} return; }