Skip to content

Instantly share code, notes, and snippets.

@DarkLotus
Created February 25, 2016 03:31
Show Gist options
  • Select an option

  • Save DarkLotus/39c6f8cd966c53972d2d to your computer and use it in GitHub Desktop.

Select an option

Save DarkLotus/39c6f8cd966c53972d2d to your computer and use it in GitHub Desktop.
uonet example
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