public void Equip() { if (shield.Serial != 0x00 && !(shield.Layer == Layer.LeftHand)) { shield.Equip(); } if (weapon.Serial != 0x00) { weapon.Equip(); } }
public void bandage() { Serial tmpp = Aliases.GetObject("laststatus"); if (!Heal(15)) { if (tmpp != World.Player.Serial) { Aliases.SetObject("laststatus", tmpp); } else { Aliases.SetObject("laststatus", 0xFFFFFFF); } return; } UOItem tmp = new UOItem(Aliases.GetObject("ActualWeapon")); UOItem tmps = new UOItem(Aliases.GetObject("ActualShield")); if (tmps.Layer != Layer.LeftHand) { tmps.Use(); } if (tmp.Layer != Layer.LeftHand) { if (World.Player.Mana == World.Player.MaxMana) { tmp.Equip(); } else { World.Player.WaitTarget(); tmp.Use(); } if (tmpp != World.Player.Serial) { Aliases.SetObject("laststatus", tmpp); } else { Aliases.SetObject("laststatus", 0xFFFFFFF); } } }
public void DressOnly() { UOItem tmp; foreach (Serial s in set) { if (s == set[0]) { continue; } tmp = new UOItem(s); if (tmp.Layer == Layer.LeftHand || tmp.Layer == Layer.RightHand) { tmp.Equip(); } else { tmp.Use(); } } }
public void Dress(UOItem dropBag) { dropBagl = dropBag; UOItem tmp; checkAndStore(); foreach (Serial s in set) { if (s == set[0]) { continue; } tmp = new UOItem(s); if (tmp.Layer == Layer.LeftHand || tmp.Layer == Layer.RightHand) { tmp.Equip(); } else { tmp.Use(); } } checkAndStore_(); }