Author Topic: C# open gump  (Read 2869 times)

0 Members and 1 Guest are viewing this topic.

Offline BlacklistedTopic starter

  • Jr. Member
  • **
  • Posts: 75
  • Activity:
    0%
  • Reputation Power: 2
  • Blacklisted has no influence.
  • Respect: +13
  • Referrals: 0
    • View Profile
C# open gump
« on: February 10, 2018, 12:53:03 PM »
0
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.

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
npc.png
« Last Edit: February 10, 2018, 06:29:50 PM by Blacklisted »

Tags: