public void MainLoop() { /* UO.LObjectID = (int)UOProxy.Helpers.Serial.EUOToInt("IAEUBOD"); UO.EventMacro(17, 0); while (UO.TargCurs != true) Thread.Sleep(5); UO.EventMacro(22, 0);*/ var p = new UOProxy.Packets.FromClient._0x06DoubleClick(UOProxy.Helpers.Serial.EUOToInt("IAEUBOD")); Proxy._0x6CTargetCursorCommands +=Proxy__0x6CTargetCursorCommands; Proxy.SendToServer(p); while (eventt == null) Thread.Sleep(5); var pp = new UOProxy.Packets.FromBoth._0x6CTargetCursorCommands(eventt.TargetType, eventt.CursorID, eventt.CursorType, 0, X, Y, Z, treetype); string text = BitConverter.ToString(pp.Data.ToArray(), 0, (int)pp.Data.Length); //pp.Data.Position = 0; Proxy.SendToServer(pp); return; foreach (int runebookID in Miningbooks) { for (int i = 0; i <= NumOfRunes; i++) { UO.LObjectID = runebookID; Proxy._0xDDCompressedGump +=Proxy__0xDDCompressedGump; UO.EventMacro(17, 0); while (gumpType != _runebookGumpType) Thread.Sleep(5); var px = new UOProxy.Packets.FromClient._0xB1GumpMenuSelection(gumpID, gumpType, 5 + (i*6)); // Responds to runebookgump, uses recall. Proxy.SendToServer(px); } } }
private void Proxy__0x6CTargetCursorCommands(UOProxy.Packets.FromBoth._0x6CTargetCursorCommands e) { eventt = e; }