///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Goldenscale Shield // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; namespace Phoenix.Scripts { public class asd { [Executable] public static void Goldenscale_Shield() {//by smoce UOItem hand_left = World.Player.Layers[Layer.LeftHand]; UOItem Goldenscale = World.Player.Backpack.AllItems.FindType(0x0E28, 0x049B); UOItem Goldenscale_Shield = World.Player.Backpack.AllItems.FindType(0x1B72, 0x049B); if (hand_left.Graphic == 0x1B72 && hand_left.Color == 0x049B) { Goldenscale_Shield_kontrola_stit(Goldenscale, hand_left, Goldenscale_Shield); } else { UO.Print(0x0480, "Nasazuji - Goldenscale_Shield"); Goldenscale_Shield.Equip(); Goldenscale_Shield_kontrola_stit(Goldenscale, hand_left, Goldenscale_Shield); } } public static void Goldenscale_Shield_kontrola_stit(UOItem Goldenscale, UOItem hand_left, UOItem Goldenscale_Shield) { if (Goldenscale.Exist) { Goldenscale.Use(); UO.Print(0x0480, "Targetuj koho mas supinou ozivit!!"); } else { UO.Print(0x0480, "Sundam a Nasadim - Goldenscale_Shield"); hand_left.Move(0, World.Player.Backpack); UO.Wait(100); Goldenscale_Shield.Equip(); UO.Wait(100); if (Goldenscale.Exist) { Goldenscale.Use(); UO.Print(0x0480, "Targetuj koho mas supinou ozivit!!"); } else { UO.Print(0x0480, "Nemas u sebe supinu!!"); } } } } }