///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Lockpicking // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; using System.Linq; using Phoenix.Runtime; namespace Scripts.Lockpicking { public class Lockpicking { [Executable] public void lockpicking() { UO.WaitTargetCancel(); UO.AddObject("truhla"); while (UO.Count(0x14FB) > 0) { UO.WaitTargetObject(Aliases.GetObject("truhla")); UO.UseType(0x14FB); Journal.WaitForText("zamek odolal"); UO.DeleteJournal(); UO.Wait(500); } UO.Wait(500); } } }