public override bool OnEquip(Mobile from) { if (from is PlayerMobile && Player.Find(from) != null && Player.Find(from).Ethic != Ethic.Hero) { from.SendMessage(54, "Only those following the path of good may use this spellbook!"); Ethic.DestoryItem(from, this); return(false); } return(true); }
public override void OnDoubleClick(Mobile from) { base.OnDoubleClick(from); if (from is PlayerMobile && Player.Find(from) != null && Player.Find(from).Ethic == Ethic.Hero) { new EthicSpellbookUI(from as PlayerMobile, null, new HeroEthic()).Send(); } else { from.SendMessage(54, "Only those following the path of good may use this spellbook!"); Ethic.DestoryItem(from, this); } }