Esempio n. 1
0
        static void Main(string[] args)
        {
            var UO = new uoNet.UO();

            if (!UO.Open(1)) { Logger.I("UO.dll Unable to Connect to Game"); return; } // Attempts to open UO.DLL and connect to client.
            if (!UO.CharName.Equals("Tenou"))
                UO.Open(2);
            Logger.I("uoNet Activated, Connected with CharName: " + UO.CharName); // All client variables can be accessed in this manner UO.VarName
            if (string.IsNullOrWhiteSpace(UO.CharName))
                return;
            var script = new RailMiner(UO);
            script.Loop();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var UO = new uoNet.UO();

            if (!UO.Open(1))
            {
                Logger.I("UO.dll Unable to Connect to Game"); return;
            }                                                                          // Attempts to open UO.DLL and connect to client.
            if (!UO.CharName.Equals("Tenou"))
            {
                UO.Open(2);
            }
            Logger.I("uoNet Activated, Connected with CharName: " + UO.CharName); // All client variables can be accessed in this manner UO.VarName
            if (string.IsNullOrWhiteSpace(UO.CharName))
            {
                return;
            }
            var script = new RailMiner(UO);

            script.Loop();
        }
Esempio n. 3
0
        public void Start(Form1 form1, uoNet.UO UO, UOProxy.UOProxy proxy)
        {
            // TODO: Complete member initialization
            this.form1 = form1;
            this.UO = UO;
            this.Proxy = proxy;

            ScriptThread = new Thread(new ThreadStart(MainLoop));
            ScriptThread.Start();
        }