From ea1b0eda7cfb526309571b07590fe83544f924aa Mon Sep 17 00:00:00 2001 From: Crypto137 Date: Tue, 10 Jan 2023 08:01:50 +0300 Subject: [PATCH 1/2] Implement a temp workaround to unlock stash tabs Tab purchasing with gold needs to be fixed properly. --- src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs | 3 ++- src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Player.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs index c6a67f1..7ac3128 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs @@ -2418,7 +2418,8 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem _owner.World.Game.GameDBSession.SessionGet(_owner.Toon.GameAccount.PersistentID).StashSize; if (slots > 0) { - _owner.Attributes[GameAttribute.Shared_Stash_Slots] = slots; + //_owner.Attributes[GameAttribute.Shared_Stash_Slots] = slots; + _owner.Attributes[GameAttribute.Shared_Stash_Slots] = 700; // HACK: Give player 10 stash tabs. Remove this when tab purchasing gets fixed. _owner.Attributes.BroadcastChangedIfRevealed(); // To be applied before loading items, to have all the space needed _stashGrid.ResizeGrid(_owner.Attributes[GameAttribute.Shared_Stash_Slots] / 7, 7); diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Player.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Player.cs index 5b0777b..da6ef2c 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Player.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Player.cs @@ -468,7 +468,6 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem Attributes[GameAttribute.Buff_Icon_Count0, 0x00033C40] = 1; Attributes[GameAttribute.Currencies_Discovered] = 0x0011FFF8; - Attributes[GameAttribute.Stash_Tabs_Purchased_With_Gold] = 5; this.Attributes[GameAttribute.Skill, 30592] = 1; this.Attributes[GameAttribute.Resource_Degeneration_Prevented] = false; @@ -622,7 +621,8 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem this.Attributes[GameAttribute.Cannot_Dodge] = false; this.Attributes[GameAttribute.Trait, 0x0000CE11] = 1; this.Attributes[GameAttribute.TeamID] = 2; - this.Attributes[GameAttribute.Stash_Tabs_Purchased_With_Gold] = 1; + this.Attributes[GameAttribute.Stash_Tabs_Purchased_With_Gold] = 5; // what do these do? + this.Attributes[GameAttribute.Stash_Tabs_Rewarded_By_Achievements] = 5; this.Attributes[GameAttribute.Backpack_Slots] = 60; this.Attributes[GameAttribute.General_Cooldown] = 0; } From 2e70fa6538c08bc3a23847552c4693f94daec96b Mon Sep 17 00:00:00 2001 From: Crypto137 Date: Tue, 10 Jan 2023 08:41:07 +0300 Subject: [PATCH 2/2] Increase default stash size --- .../BGS-Server/AccountsSystem/GameAccountManager.cs | 6 +++--- .../D3-GameServer/GSSystem/PlayerSystem/Inventory.cs | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/DiIiS-NA/BGS-Server/AccountsSystem/GameAccountManager.cs b/src/DiIiS-NA/BGS-Server/AccountsSystem/GameAccountManager.cs index 8afc7b9..7a4a30d 100644 --- a/src/DiIiS-NA/BGS-Server/AccountsSystem/GameAccountManager.cs +++ b/src/DiIiS-NA/BGS-Server/AccountsSystem/GameAccountManager.cs @@ -76,9 +76,9 @@ namespace DiIiS_NA.LoginServer.AccountsSystem ParagonLevelHardcore = 0, Experience = 7200000, ExperienceHardcore = 7200000, - StashSize = 70, - HardcoreStashSize = 70, - SeasonStashSize = 70, + StashSize = 700, // Default stash sizes should be 70 with purchasable upgrades + HardcoreStashSize = 700, + SeasonStashSize = 700, BloodShards = 0, HardcoreBloodShards = 0, BossProgress = new byte[] { 0xff, 0xff, 0xff, 0xff, 0xff }, diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs index 7ac3128..c6a67f1 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs @@ -2418,8 +2418,7 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem _owner.World.Game.GameDBSession.SessionGet(_owner.Toon.GameAccount.PersistentID).StashSize; if (slots > 0) { - //_owner.Attributes[GameAttribute.Shared_Stash_Slots] = slots; - _owner.Attributes[GameAttribute.Shared_Stash_Slots] = 700; // HACK: Give player 10 stash tabs. Remove this when tab purchasing gets fixed. + _owner.Attributes[GameAttribute.Shared_Stash_Slots] = slots; _owner.Attributes.BroadcastChangedIfRevealed(); // To be applied before loading items, to have all the space needed _stashGrid.ResizeGrid(_owner.Attributes[GameAttribute.Shared_Stash_Slots] / 7, 7);