Created
February 25, 2016 03:31
-
-
Save DarkLotus/39c6f8cd966c53972d2d to your computer and use it in GitHub Desktop.
uonet example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using uoNet; | |
| namespace uoNetExample | |
| { | |
| class Program | |
| { | |
| public static uoNet.UO UO = new uoNet.UO(); | |
| static void Main(string[] args) | |
| { | |
| if (!UO.Open()) { Console.WriteLine("UO.dll Unable to Connect to Game"); return; } // Attempts to open UO.DLL and connect to client. | |
| Console.WriteLine("uoNet Activated, Connected with CharName: " + UO.CharName); // All client variables can be accessed in this manner UO.VarName | |
| UO.UseSkill(Skill.AnimalTaming); | |
| UO.Target(2000); | |
| UO.EventMacro(22, 0); | |
| Thread.Sleep(8000); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment