ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: Blacklisted on February 10, 2018, 12:53:03 PM

Title: C# open gump
Post by: Blacklisted on February 10, 2018, 12:53:03 PM
I started playing UO again and I was thinking of automating the buying of regs from NPC vendors by gating around to mages shops.
I've been looking at the c# examples but cant firgure out how to open gumps can any other a small code snippet to get me started.

I've been trying to get a list of the NPC's in luna mage shop then double click on each one.
The Mobile is expecting a uint but I cant find where to get the value all the values in stealth are the wrong type


Code: [Select]
class Program
    {
        public static List<Mobile> lunaMageShopNpcs;
       
        public static Gump shopGump;     

        static void Main(string[] args)
        {
            lunaMageShopNpcs.Add(new Mobile(00000B08));
            lunaMageShopNpcs.Add(new Mobile(00000B0B));
            lunaMageShopNpcs.Add(new Mobile(00000B0A));
            lunaMageShopNpcs.Add(new Mobile(00000B0C));
           
            foreach (Mobile mobile in lunaMageShopNpcs)
            {
                mobile.DoubleClick();
                Console.WriteLine(mobile.Name);
                Console.WriteLine(mobile.Location);
            }
        }
    }

thanks.