示例#1
0
            private void UpdateBody()
            {
                switch (m_Mannequin.Race.RaceID)
                {
                case 0:     // Human
                    m_Mannequin.Body = m_Mannequin.Female ? 401 : 400;
                    break;

                case 1:     // Elf
                    m_Mannequin.Body = m_Mannequin.Female ? 606 : 605;
                    break;

                case 2:     // Gargoyle
                    m_Mannequin.Body = m_Mannequin.Female ? 667 : 666;
                    break;
                }
                Utility.AssignRandomHair(m_Mannequin);
                Utility.AssignRandomFacialHair(m_Mannequin);
                m_Mannequin.Hue = m_Mannequin.Race.RandomSkinHue();
                m_Mannequin.InvalidateProperties();
            }
示例#2
0
                public override void OnResponse(NetState sender, RelayInfo info)
                {
                    if (_Mannequin.Deleted)
                    {
                        return;
                    }

                    if (info.ButtonID == 1)
                    {
                        TextRelay text = info.GetTextEntry(0);
                        string    s    = text.Text;

                        if (s.Length > 44)
                        {
                            s = s.Substring(0, 44);
                        }

                        _Mannequin.Description = s;
                        _Mannequin.InvalidateProperties();

                        sender.Mobile.SendLocalizedMessage(1159412); // Updated
                    }
                }