public override void OnDoubleClick(Mobile from) { PlayerMobile pm_From = from as PlayerMobile; if (pm_From == null) { return; } if (!pm_From.Alive) { pm_From.SendMessage("You must be alive to use that."); return; } if (!IsChildOf(pm_From.Backpack)) { pm_From.SendMessage("that must be in your backpack for you to use it."); return; } PlayerEnhancementPersistance.CheckAndCreatePlayerEnhancementAccountEntry(pm_From); Activate(pm_From); }
public static void OnLogin(PlayerMobile player) { if (player == null) { return; } PlayerEnhancementPersistance.CheckAndCreatePlayerEnhancementAccountEntry(player); player.m_PlayerEnhancementAccountEntry.AuditCustomizationEntries(); player.m_PlayerEnhancementAccountEntry.AuditSpellHueEntries(); //Hoarder bool hoarder = PlayerEnhancementPersistance.IsCustomizationEntryActive(player, CustomizationType.Hoarder); if (hoarder) { if (player.BankBox != null) { if (player.BankBox.MaxItems == 125) { player.BankBox.MaxItems += 25; } } } //Bench Player bool benchPlayer = PlayerEnhancementPersistance.IsCustomizationEntryActive(player, CustomizationType.BenchPlayer); if (benchPlayer) { Account account = player.Account as Account; if (account == null) { return; } if (account.CharacterLimit == 5) { account.CharacterLimit = 6; } } }