///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Bishop Hat by Bernard Williams // ///////////////////////////////////////////////////////////////////////// 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_1779635064 { [Executable] public void BishopHat() { UOItem capka = World.Player.Backpack.Items.FindType(0x1DB9 , 0x0BB0); UOItem helma = World.Player.Backpack.Items.FindType(0x1412 , UOColor.Invariant); if (capka.Exist) { capka.Use(); UO.Print("+30 hp"); } else { if (World.Player.Hits > 30) { helma.Use(); UO.Print("-30 hp"); } } } } }