///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: LockPiking // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; using System.Linq; using Phoenix.Communication; using Phoenix.Runtime; using Phoenix.Runtime.Reflection; namespace Scripts.DarkParadise { public class ultima_smoce_net_1779634706 { [Executable] public static void lock_train() { UO.PrintInformation("Lock Train Secure"); UO.Wait(300); UO.PrintInformation("Targetni tu starovekou truhlu!"); UOItem truhla = new UOItem(UIManager.TargetObject()); UO.Wait(500); UO.PrintInformation("Targetni BAG s Lockpicky!"); UOItem lockpick = new UOItem(UIManager.TargetObject()); UO.Wait(500); aaaa: while (UO.Count(0x14fb) >= 1) { UO.DeleteJournal(); opakuj: do { UO.DeleteJournal(); UO.WaitTargetObject(truhla.Serial); UO.UseType(0x14fb); UO.Wait(2000); } while (UO.InJournal("attempt to unlock")); if (UO.InJournal("item cannot be")) { UO.WaitTargetObject(truhla.Serial); UO.UseType(0x100e); } UO.Wait(2000); goto opakuj; } if(UO.Count(0x14fb) == 0) { UOItem oss = new UOItem(lockpick.AllItems.FindType(0x14fb)); UO.MoveItem(oss.Serial,100,World.Player.Backpack); UO.Print("beru si locky s pytle 100ks"); UO.Wait(1000); } goto aaaa; } } }