I apologize if this is not the right place to ask, but... menu

User Tag List

Results 1 to 1 of 1
  1. #1
    owen654321's Avatar Member
    Reputation
    9
    Join Date
    Mar 2017
    Posts
    39
    Thanks G/R
    4/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I apologize if this is not the right place to ask, but...

    Do the TurboHUD plugin interfaces allow enumeration of SNO Groups? For instance if I wanted to query the Scene sno group to retrieve nav cells, I might do:

    Code:
    Ptr<SNOGroupStorage<Scene>> ptrGroup = ctx.DataSegment.SNOGroupStorage[(int)SnoGroupId.Scene].Cast<SNOGroupStorage<Scene>>();
    SNOGroupStorage<Scene> ptrGroup.Dereference();
    
        var foundScenes =
                        snoGroupManager1.Container
                            .Where(o =>
                            {
                                if (o.ID != -1 && o.SNOType == SNOType.Scene) 
                                {
                                    o.TakeSnapshot();
                                    try
                                    {
                                        if (o.PtrValue.IsInvalid)
                                            return false;
                                        var sc = o.PtrValue.Dereference();
                                        if (o.ID == mainId)
                                        {
                                            var foundIt = sceneSnos.FirstOrDefault(oo => oo.SSceneID == mainId);
                                            if (foundIt != null)
                                            {
                                                scenes.Add(new Tuple<Enigma.D3.MemoryModel.Core.Scene, Enigma.D3.Assets.Scene>(foundIt, sc));
                                                AlreadySeen[foundIt.SSceneID] = true;
                                                return true;
                                            }
                                        }
                                        var found = sceneSnos.Where(oo => oo.ID != -1 && oo.SceneSNO == sc.x000_Header.x00_SnoId).ToList();
                                        if (found.Count > 0)
                                        {
                                            foreach (var f in found)
                                            {
                                                scenes.Add(new Tuple<Enigma.D3.MemoryModel.Core.Scene, Enigma.D3.Assets.Scene>(f, sc));
                                                AlreadySeen[f.SSceneID] = true;
                                            }
                                         
                                            return true;
                                        }
                                    }
                                    catch (Exception ex)
                                    {
                                        Log.Add(ex.ToString(), nameof(LogSettings.Default));
                                    }
                                    finally
                                    {
                                        o.FreeSnapshot();
                                    }
                                }
                                return false;
                            }).ToList();
    I'm looking for some way to get ahold of the SNO groups from the TurboHUD plugin framework. Any help would be appreciated!

    I apologize if this is not the right place to ask, but...

Similar Threads

  1. Bot making [This is not the bot you're looking for]
    By Feriantil in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 03-22-2013, 07:50 AM
  2. Alpha Ironforge request (Hopefully this is in the right spot)
    By Drewan in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 10-16-2012, 02:56 PM
  3. Not sure if this is in the right place to ask this...
    By rasputinbnet in forum Diablo 3 Bots Questions & Requests
    Replies: 1
    Last Post: 06-20-2012, 06:00 PM
  4. ATTENTION: This is not a helpfull thing to say!
    By FNOG in forum World of Warcraft Emulator Servers
    Replies: 19
    Last Post: 10-31-2007, 12:19 PM
All times are GMT -5. The time now is 08:26 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search