How to on finding the position of a vendor sell button option in ExileApi menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Williamwillbera's Avatar Member
    Reputation
    2
    Join Date
    Jun 2019
    Posts
    7
    Thanks G/R
    5/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to on finding the position of a vendor sell button option in ExileApi

    Hi!
    I could not find an easy way to find out the position (if any) for the vendor sell button option, so I thought Id just share how I solved it in case it could benefit anyone.
    My solution might be a very bad way to solve it, in that case I would love to hear how it should be done.

    The sell button (when visible on the screen) is located deep within the IngameUIElements children. I therefore added the following lines to the IngameUIElements file.
    Of course you can just implement the logic in your own plugin instead as well.

    Code:
            public Element VendorPanel => GetChildAtIndex(21);
            public Element VendorPanelOptions => VendorPanel?.GetChildAtIndex(6)?.GetChildAtIndex(0)?.GetChildAtIndex(2);
            public Element VendorPanelSellOption
            {
                get
                {
                    if (VendorPanelOptions?.Children != null)
                    {
                        foreach (var optionElement in VendorPanelOptions.Children)
                        {
                            if (optionElement.Children != null)
                            {
                                foreach (var innerOptionElement in optionElement.Children)
                                {
                                    if (innerOptionElement.Text?.ToLower().Contains("sell item") == true)
                                    {
                                        return innerOptionElement;
                                    }
                                }
                            }
                        }
                    }
                    return null;
                }
            }

    How to on finding the position of a vendor sell button option in ExileApi

Similar Threads

  1. [Guide] How to easily find the Long-Forgotten Hippogryph
    By HunterHero in forum World of Warcraft Guides
    Replies: 60
    Last Post: 01-10-2017, 07:02 PM
  2. [PvP] How to use Cooking & The Curiousity of Lowbies to Flag and Gank them.
    By ArBar in forum World of Warcraft Guides
    Replies: 4
    Last Post: 05-15-2013, 12:52 AM
  3. [Mage Blink] How to get under the Isle of Thunder as a mage
    By Dark Guild in forum World of Warcraft Exploration
    Replies: 3
    Last Post: 03-30-2013, 03:02 PM
  4. How to get into the business of reselling games?
    By declensions in forum Community Chat
    Replies: 0
    Last Post: 09-07-2012, 09:49 PM
  5. [Guide] How to Get into "The Ring of Valor" Patch 2.4.3
    By Tw3ek in forum World of Warcraft Exploration
    Replies: 5
    Last Post: 07-25-2008, 01:23 PM
All times are GMT -5. The time now is 06:57 AM. 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