This will decrease players exp who are getting close to the rollover point. This only happens when the server is restarted and if you have it setup to delete not owned items upon startup in cached. I just put in any number for the Exp values, so you might want to check what value is max level 78 and use that instead of the 1900000000
Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
/********************************************
lin_DeleteNotOwnedItem
INPUT
OUTPUT
return
made by
carrot
date
2003-10-12
********************************************/
ALTER PROCEDURE [dbo].[lin_DeleteNotOwnedItem]
AS
SET NOCOUNT ON
DELETE user_item WHERE char_id = 0 OR item_type = 0
-- 2 billion rollover fix
UPDATE user_data SET Exp=1900000000 where Exp >=2000000000
DECLARE @ToDeleteCharacter CURSOR
DECLARE @char_id INT
SET @ToDeleteCharacter = CURSOR FAST_FORWARD FOR
SELECT char_id
FROM user_data
WHERE account_id > 0 AND temp_delete_date IS NOT NULL AND DATEDIFF ( dd , temp_delete_date , GETDATE()) >= 7
OPEN @ToDeleteCharacter
FETCH FROM @ToDeleteCharacter INTO @char_id
WHILE @@FETCH_STATUS = 0
BEGIN
EXEC lin_deleteChar @char_id
FETCH NEXT FROM @ToDeleteCharacter INTO @char_id
END
CLOSE @ToDeleteCharacter
DEALLOCATE @ToDeleteCharacter
exec dbo.lin_CleanUpGhostData