コード例 #1
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 Guild.";

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

            ItemTemplate vaultItem = GetDummyVaultItem(player);
            GuildVault   vault     = new GuildVault(player, this, player.GuildName, 0, vaultItem);

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

            return(true);
        }
コード例 #2
0
ファイル: GuildVaultKeeper.cs プロジェクト: mynew4/DAoC
        public override bool Interact(GamePlayer player)
        {
            if (!base.Interact(player))
                return false;

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

            ItemTemplate vaultItem = GetDummyVaultItem(player);
            GuildVault vault = new GuildVault(player, this, player.GuildName, 0, vaultItem);
            player.ActiveInventoryObject = vault;
            //player.ActiveVault = vault;
            player.Out.SendInventoryItemsUpdate(vault.GetClientInventory(player), eInventoryWindowType.HouseVault);

            return true;
        }