コード例 #1
0
        public static List <T> FindInContainers <T>(string[] easyUOObjectTypes, List <Serial> containersSerials, string ignoreList) where T : UOEntity
        {
            var items = new List <T>();

            foreach (var easyUOObjectType in easyUOObjectTypes) // TODO: remove duplicate objectType, if any
            {
                items.AddRange(FindInContainers <T>(EasyUOHelper.ConvertToStealthType(easyUOObjectType), containersSerials, ignoreList));
            }

            return(items);
        }
コード例 #2
0
        public RaillessMining()
        {
            this.playerMobile = PlayerMobile.GetPlayer();
            this.movingHelper = MovingHelper.GetMovingHelper();

            this.smeltWeight   = WindowsRegistry.GetValueOrDefault(@"Software\ScriptSDK.SantiagoUO\RaillessMining\" + playerMobile.Name, "SmeltWeight", 350);
            this.smelt1x1      = WindowsRegistry.GetValueOrDefault(@"Software\ScriptSDK.SantiagoUO\RaillessMining\" + playerMobile.Name, "Smelt1x1", false);
            this.bankWeight    = WindowsRegistry.GetValueOrDefault(@"Software\ScriptSDK.SantiagoUO\RaillessMining\" + playerMobile.Name, "BankWeight", 100);
            this.dropContainer = new Container(EasyUOHelper.ConvertToStealthID(WindowsRegistry.GetValue(@"Software\ScriptSDK.SantiagoUO\RaillessMining\" + playerMobile.Name, "DropContainerId")));
            this.pickaxesCount = WindowsRegistry.GetValueOrDefault(@"Software\ScriptSDK.SantiagoUO\RaillessMining\" + playerMobile.Name, "PickaxesCount", 2);
        }
コード例 #3
0
        public static List <T> Find <T>(string easyUOObjectType, uint distance) where T : UOEntity
        {
            StealthAPI.Stealth.Client.SetFindDistance(distance);

            return(FindInContainer <T>(EasyUOHelper.ConvertToStealthType(easyUOObjectType), NO_CONTAINER, null));
        }
コード例 #4
0
 public static List <T> FindInContainer <T>(string easyUOObjectType, Serial containerSerial) where T : UOEntity
 {
     return(FindInContainer <T>(EasyUOHelper.ConvertToStealthType(easyUOObjectType), containerSerial, null));
 }