public PlayerCustomizationDeed() : base(0x14F0) { Name = "a player customization deed"; Hue = 2615; m_Customization = PlayerCustomization.GetRandomCustomizationType(); }
public virtual void Activate(PlayerMobile player) { PlayerCustomizationEntry entry = PlayerEnhancementPersistance.GetCustomizationEntry(player, m_Customization); if (entry == null) { return; } PlayerCustomizationDetail details = PlayerCustomization.GetCustomizationDetail(m_Customization); if (details == null) { return; } if (entry.m_Unlocked) { player.SendMessage("You have already unlocked the player customization: " + details.m_Name + "."); return; } else { entry.m_Unlocked = true; entry.m_Active = true; player.SendMessage("You unlock the player customization for: " + details.m_Name + "."); PlayerCustomization.OnUnlockCustomization(player, m_Customization); player.PlaySound(0x0F7); player.FixedParticles(0x373A, 10, 15, 5012, 2587, 0, EffectLayer.Waist); player.CloseGump(typeof(PlayerCustomizationGump)); player.CloseGump(typeof(PlayerCustomizationConfirmationGump)); Delete(); return; } }
public override void OnSingleClick(Mobile from) { PlayerCustomizationDetail details = PlayerCustomization.GetCustomizationDetail(m_Customization); LabelTo(from, "a player customization deed: " + details.m_Name); }