private void OnBuySharedStashSlots(RequestBuySharedStashSlotsMessage requestBuySharedStashSlotsMessage) { // TODO: Take that money away ;) _owner.Attributes[GameAttribute.Shared_Stash_Slots] += 14; _owner.Attributes.SendChangedMessage(_owner.InGameClient, _owner.DynamicID); _stashGrid.ResizeGrid(_owner.Attributes[GameAttribute.Shared_Stash_Slots] / 7, 7); }
private void OnBuySharedStashSlots(RequestBuySharedStashSlotsMessage requestBuySharedStashSlotsMessage) { // TODO: Take that money away ;) _owner.Attributes[GameAttribute.Shared_Stash_Slots] += 14; _owner.Attributes.BroadcastChangedIfRevealed(); _stashGrid.ResizeGrid(_owner.Attributes[GameAttribute.Shared_Stash_Slots] / 7, 7); }
private void OnBuySharedStashSlots(RequestBuySharedStashSlotsMessage requestBuySharedStashSlotsMessage) { int amount = 10000; if (_stashGrid.Rows % 10 == 0) { if (_stashGrid.Rows / 10 - 1 >= _stashBuyValue.Length) return; amount = _stashBuyValue[_stashGrid.Rows / 10 - 1]; } if (GetGoldAmount() >= amount) { RemoveGoldAmount(amount); _owner.Attributes[GameAttribute.Shared_Stash_Slots] += 14; _owner.Attributes.BroadcastChangedIfRevealed(); _stashGrid.ResizeGrid(_owner.Attributes[GameAttribute.Shared_Stash_Slots] / 7, 7); } }