I can't recommend this fix - Armor or Weapons bought at NPC's got even more bugged, and if you relog before using a bought stack, you can't even use (at least) scrolls anymore, because the MaxLot is still on 50, but after relog, the stack is on 255.
This also affects Items created by makeitem and mob drops
Edit:
Okay, I managed to get this working, more or less. Here is my procedure:
Code:
USE [Character]
GO
/****** Object: StoredProcedure [dbo].[p_Item_SetOption] Script Date: 16.12.2018 02:43:34 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[p_Item_SetOption]
/*
Item Set Option
2004.8 By CJC
input:
see SQL
output:
@nRet 0 = OK,
? = Error code
*/ @NitemKey bigint,
@nOptionType smallint,
@nOptionData bigint,
-- Output var
@nRet int OUTPUT
AS
SET NOCOUNT ON
UPDATE tItemOptions SET nOptionData = @nOptionData
WHERE nItemKey = @NitemKey AND nOptionType = @nOptionType
IF @@ERROR <> 0 OR @@ROWCOUNT = 0
BEGIN
--Custom Start
--THIS OPTION WILL FORCE EVERY WEAPON TO 3 SOCKETS AFTER RELOG! IN MY CASE, EVERY WEAPON GOT 255 SOCKETS AND CRASHED BY LOOKING
IF @nOptionType = 523 OR @nOptionType = 524
SET @nOptiondata = 3
IF RIGHT(@nOptionType, 2) = 01
--START PUT YOUR CUSTOM AMOUNT HERE
SET @nOptionData = 50
--END PUT YOUR CUSTOM AMOUNT HERE
--Custom End
IF RIGHT(@nOptionType,2) <> 21
INSERT tItemOptions ( nItemKey, nOptionType, nOptionData )
VALUES ( @NitemKey, @nOptionType, @nOptiondata)
END
SET @nRet = @@ERROR
-- end
RETURN
This isn't the best solution, too. And there is one thing I still didn't got rid of it. I'll show it in the following screenshot. It's the Creator-thing. But anyway, have fun! Maybe you should put every stackable item (at least these you can buy) to 50 or your desired amount with a mass editor. Sockets still don't seem to work.
