Exemplo 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();
        }
Exemplo 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();
        }