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); }
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; }