///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Hid skok // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Diagnostics; using Phoenix.Communication; using Phoenix.Configuration; using Phoenix.WorldData; using Phoenix.Runtime; using Phoenix; using System.Timers; using System.Windows.Forms; namespace Phoenix.Pluginsd { public class Misca { [Executable] public void hidkrokE() { UO.DeleteJournal(); UO.Say("Jdeme na to!"); UO.UseSkill("Hiding"); UO.Wait(2250); if (Journal.Contains("You have hidden yourself well")) { UO.Say("Nepovedlo...RE-PETE"); } else { UO.Say(",step East"); UO.Print("Skok proveden"); } } [Executable] public void hidkrokN() { UO.DeleteJournal(); UO.Say("Jdeme na to!"); UO.UseSkill("Hiding"); UO.Wait(2250); if (Journal.Contains("You have hidden yourself well")) { UO.Say("Nepovedlo...RE-PETE"); } else { UO.Say(",step North"); UO.Print("Skok proveden"); } } [Command] public void step(Direction dir) { byte[] data = new byte[7]; data[0] = 0x2; data[1] = (byte)dir; data[2] = WalkHandling.NextSequence; Core.SendToServer(data, true); UO.Wait(200); } [ClientMessageHandler(0xC0)] public CallbackResult asdf(byte[] b, CallbackResult c) { return CallbackResult.Eat; } } public enum Direction : byte { North, Northeast, East, Southeast, South, Southwest, West, Northwest } }