///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: DarkSkull // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; namespace Phoenix.Scripts { public class Nekromancer { [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)) { UO.UseObject(World.Player.Serial); UO.Wait(50); skull.Use(); if (!ew.Wait(5000)) { ScriptErrorException.Throw("Nemuzu oblect Dark skull, konec scriptu."); return; } UO.Say(0x042E,World.Player.Name +" IVM prosim"); UO.Wait(100); UOCharacter jezditko = new UOCharacter(Aliases.GetObject("konicek_nasedani")); if (jezditko.Exist) { jezditko.Use(); } else { UO.Print("Jezditko nebylo nastaveno !"); } } } 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"); } } } }