public override bool Interact(GamePlayer player)
        {
            if (!base.Interact(player))
            {
                return(false);
            }

            string message = "Welcome!  This vault is accessible by all characters on your account.";

            player.Out.SendMessage(message, eChatType.CT_Say, eChatLoc.CL_PopupWindow);

            ItemTemplate vaultItem = GetDummyVaultItem(player);
            AccountVault vault     = new AccountVault(player, this, player.Client.Account.Name, 0, vaultItem);

            player.ActiveInventoryObject = vault;
            //player.ActiveVault = vault;
            player.Out.SendInventoryItemsUpdate(vault.GetClientInventory(player), eInventoryWindowType.HouseVault);

            return(true);
        }
Example #2
0
        public override bool Interact(GamePlayer player)
        {
            if (!base.Interact(player))
                return false;

            string message = "Welcome!  This vault is accessible by all characters on your account.";
            player.Out.SendMessage(message, eChatType.CT_Say, eChatLoc.CL_PopupWindow);

            ItemTemplate vaultItem = GetDummyVaultItem(player);
            AccountVault vault = new AccountVault(player, this, player.Client.Account.Name, 0, vaultItem);
            player.ActiveInventoryObject = vault;
            //player.ActiveVault = vault;
            player.Out.SendInventoryItemsUpdate(vault.GetClientInventory(player), eInventoryWindowType.HouseVault);

            return true;
        }