示例#1
0
        private void ReceiveObjectPropertyList(IRecvPacket packet)
        {
            ObjectPropertyListPacket p = (ObjectPropertyListPacket)packet;

            AEntity entity = EntityManager.GetObject <AEntity>(p.Serial, false);

            if (entity == null)
            {
                return; // received property list for entity that does not exist.
            }
            entity.PropertyList.Hash = p.Hash;
            entity.PropertyList.Clear();

            for (int i = 0; i < p.CliLocs.Count; i++)
            {
                string iCliLoc = UltimaData.StringData.Entry(p.CliLocs[i]);
                if (p.Arguements[i] == string.Empty)
                {
                    entity.PropertyList.AddProperty(iCliLoc);
                }
                else
                {
                    entity.PropertyList.AddProperty(constructCliLoc(iCliLoc, p.Arguements[i]));
                }
            }
        }
示例#2
0
文件: Corpse.cs 项目: nogu3ira/xrunuo
        public override void OnAosSingleClick(Mobile from)
        {
            int hue = Notoriety.GetHue(NotorietyHandlers.ComputeCorpse(from, this));
            ObjectPropertyListPacket opl = this.PropertyList;

            if (opl.Header > 0)
            {
                from.Send(new MessageLocalized(Serial, ItemID, MessageType.Label, hue, 3, opl.Header, Name, opl.HeaderArgs));
            }
        }