public static void OrnateAxeofGarrouStrength() { UOItem axe = World.Player.FindType(0x2D28, 0x06F4); if (!axe.Exist) { axe = World.Player.FindType(0x2D28); } if (axe.Exist) { if (axe.Color == 0x06F4) { Targeting.CancelClientTarget(); Targeting.ResetTarget(); axe.Use(); UO.WaitTargetSelf(); World.Player.PrintMessage("[ Sekyra STR ]"); } else { World.Player.PrintMessage("[ Sekyra neni nabita ]", MessageType.Warning); } } else { World.Player.PrintMessage("[ Neni Sekyra ]", MessageType.Error); } }
//--------------------------------------------------------------------------------------------- public static void EquipSlotWeapon(SlotItem sl, string printAlias) { if (sl.IsEmpty) { return; } UOItem slotItem = new UOItem(sl.Serial); if (!slotItem.Exist || slotItem.Distance > 3) { slotItem = World.Player.FindType(sl.Graphic, sl.Color); } if (Fighter.CheckCurrentWeapon(true)) { if (!(slotItem.Layer == Layer.LeftHand || slotItem.Layer == Layer.RightHand)) { slotItem.Use(); Game.Wait(100); if (UIManager.CurrentState != UIManager.State.Ready) { Targeting.CancelClientTarget(); Targeting.ResetTarget(); } if (!String.IsNullOrEmpty(printAlias)) { World.Player.PrintMessage("[ " + printAlias + " ]"); } } if (!World.Player.Layers[Layer.LeftHand].Exist) { UOItem shield = Fighter.Current.GetSlotItem("__LastShield"); if (!shield.Exist) { Fighter.Current.SwitchShield(); } else { shield.Use(); } } } }
public static void MachetteofLightshield() { UOItem machette = World.Player.FindType(0x2D29, 0x042C); if (!machette.Exist) { machette = World.Player.FindType(0x2D29); } if (machette.Exist) { if (machette.Color == 0x042C) { Targeting.CancelClientTarget(); Targeting.ResetTarget(); machette.Use(); UO.WaitTargetSelf(); World.Player.PrintMessage("[ Maceta IJS ]"); Game.Wait(250); if (!World.Player.Layers[Layer.LeftHand].Exist) { UOItem shield = Fighter.Current.GetSlotItem("__LastShield"); if (!shield.Exist) { Fighter.Current.SwitchShield(); } else { shield.Use(); } } } else { World.Player.PrintMessage("[ Maceta neni nabita ]", MessageType.Warning); } } else { World.Player.PrintMessage("[ Neni Maceta ]", MessageType.Error); } }