Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 13.07.2007, 20:22   #1
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

I suppose it would need changing assembly code (hexing) to catch this type of errors (eg. if ( act_exp + mob_exp < act_ext ) { do something; }).
I do not have idea how to make this - do not know assembly (x32/64).
Kenjiro is offline  
Old 13.07.2007, 20:50   #2
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default fix

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
Firedaemon is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:34.