예제 #1
0
파일: Program.cs 프로젝트: DarkLotus/UOnet
        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();
        }
예제 #2
0
파일: Program.cs 프로젝트: uotools/UOnet
        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();
        }
예제 #3
0
파일: Mining.cs 프로젝트: Crwth/UOnet
        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();
        }