///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: DarkSkull // ///////////////////////////////////////////////////////////////////////// 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_1779638116 { [Executable] public void DarkSkull() { if (World.Player.Backpack.AllItems.Count(0x1F0B) > 0) { UOItem skull = World.Player.Backpack.AllItems.FindType(0x1F0B); using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(skull)) { skull.Use(); if (!ew.Wait(5000)) { ScriptErrorException.Throw("Nemuzu oblect Dark skull, konec scriptu."); return; } } } else { UO.PrintObject(World.Player.Serial, 0x0025, "Nemas Dark Skull"); } if (World.Player.Backpack.AllItems.Count(0x1451) > 0) { UOItem skull = World.Player.Backpack.AllItems.FindType(0x1451); using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(skull)) { skull.Use(); if (!ew.Wait(5000)) { ScriptErrorException.Throw("Nemuzu oblect necro helmu, konec scriptu."); return; } } } else { UO.PrintObject(World.Player.Serial, 0x0025, "Nemas necro helmu"); } } } }