Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 07.08.2006, 12:45   #1
IVB
Архивный участник
 
Join Date: Jan 2006
Posts: 79
Default [Share] C4 Retail DB scripts.

This is my compilation from different sources (backups, sql files, forums, etc) to create all needed databases for C4 Retail server.

New link to version 0.4: http://rapidshare.com/files/19145409/DBScript.rar.html (updated 03 Mar 2007)

This pack have one error: missed stored procedure 'dp_getnewpayid' in lin2db - I don't find this procedure. If somebody have it - please share, I'll remake my pack.

Except this error all databases created good and tested on "live" server. All sqls are developed for SQL2K, and tested under both SQL2K and SQL2K5.

Changes from version 0.3:
Code:
  lin2world:
    altered procedure lin_CreateChar
      (added check for accordance between races and classes of created char)
  li2comm:
    slightly modified table [user_memo]
    added "insert into [board_keyword] ..." lines with "Post" and "Re:" keywords
  petition:
    added whole schema for petition system
Author of petition schema - aralyon. I'm just convert it to sql2k.
IVB is offline  
Old 07.08.2006, 20:27   #2
Battlestorm
Архивный участник
 
Join Date: Aug 2006
Posts: 21
Default

click, should be a good one when my 64bit hardware arrives thanks
Battlestorm is offline  
Old 15.09.2006, 08:27   #3
IVB
Архивный участник
 
Join Date: Jan 2006
Posts: 79
Default

Edited 1st post to replace link to version 0.4 of sql pack.

Yes, I understand that most of community don't need schemas to create "empty" databases, but I began this pack and continue working on it.
IVB is offline  
Old 15.09.2006, 09:24   #4
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by IVB View Post
...
This pack have one error: missed stored procedure 'dp_getnewpayid' in lin2db - I don't find this procedure. If somebody have it - please share, I'll remake my pack.
...
are you have worked L2Auth for C4? server module and db
HF is offline  
Old 15.09.2006, 09:28   #5
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Why need DB lin2user? Where it use?
HF is offline  
Old 15.09.2006, 11:24   #6
Bloodust
Архивный участник
 
Join Date: May 2006
Posts: 135
Default

Thx, hope I can get my server work with this >>
Bloodust is offline  
Old 18.09.2006, 07:51   #7
IVB
Архивный участник
 
Join Date: Jan 2006
Posts: 79
Default

Quote:
Originally Posted by HF View Post
are you have worked L2Auth for C4? server module and db
I have 4 different versions of L2Auth, but I can't force to work new versions. I'm using old "40504" version.

Quote:
Originally Posted by HF View Post
Why need DB lin2user? Where it use?
I don't know. It present in C1 and C4, so I prepare sql for it.
IVB is offline  
Old 03.03.2007, 07:50   #8
IVB
Архивный участник
 
Join Date: Jan 2006
Posts: 79
Default

I was asked to reupload my script pack. 1st post edited to post new link.

NO CHANGES in scripts from September 2006 - only new link on old pack.
IVB is offline  
Old 03.03.2007, 15:32   #9
petre1980
Архивный участник
 
Join Date: Jan 2007
Posts: 45
Default

You can also fix procedure lin_SetLastTaxUpdate in lin2world. Here is the corect code:

Code:
ALTER PROCEDURE dbo.lin_SetLastTaxUpdate
(
@income varchar(100),
@tax varchar(100),
@manor varchar(100)
)
AS

declare @income_ datetime
declare @tax_ datetime
declare @manor_ datetime

set @income =left(@income,5) + cast((cast(replace(substring(@income,6,2),'-','') as int) + 1) as varchar) + substring(@income, charindex ('-', @income, 6),100)
set @tax =left(@tax,5) + cast((cast(replace(substring(@tax,6,2),'-','') as int) + 1) as varchar) + substring(@tax, charindex ('-', @tax, 6),100)
set @manor =left(@manor,5) + cast((cast(replace(substring(@manor,6,2),'-','') as int) + 1) as varchar) + substring(@tax, charindex ('-', @tax, 6),100)

set @income_ = convert(datetime, @income)
set @tax_ = convert(datetime, @tax)
set @manor_ = convert(datetime, @manor)


SET NOCOUNT ON
IF EXISTS(SELECT * FROM castle_tax)
BEGIN
UPDATE castle_tax SET income_update = @income_, tax_change = @tax_, manor_reset = @manor_
END
ELSE
BEGIN
INSERT INTO castle_tax VALUES
( @income_, @tax_, @manor_)

END
and....replace...this file

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
0_create-db.zip — 334 байт
petre1980 is offline  
Old 03.03.2007, 20:04   #10
petre1980
Архивный участник
 
Join Date: Jan 2007
Posts: 45
Default

There is error in lin_GetAnnounce procedure in your lin2comm, add this at the end of procedure.

Code:
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO
petre1980 is offline  
Old 20.03.2007, 04:50   #11
KOC2000
Архивный участник
 
Join Date: Jun 2006
Posts: 100
Default

Thanx guys.
KOC2000 is offline  
Old 20.03.2007, 15:18   #12
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

This should be sticked. However, IVB, you should detailly describe on how-to for user friendliness tho anyone should know -_-

BUMPing for sticky o_o
tpuNIsher is offline  
Old 20.03.2007, 20:02   #13
petre1980
Архивный участник
 
Join Date: Jan 2007
Posts: 45
Default

Yeah, agree, this post must be sticked.
petre1980 is offline  
Old 24.03.2007, 23:05   #14
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

Quote:
Originally Posted by HF View Post
Why need DB lin2user? Where it use?
It has a lot of uses.
create Charname check [exist/not exist]
login params.. etc etc..
tpuNIsher is offline  
Old 25.03.2007, 04:05   #15
l1qu1dx
Архивный участник
 
Join Date: Mar 2007
Posts: 2
Default

had a prob with the xself file it wouldnt load up

Msg 208, Level 16, State 1, Line 3
Invalid object name 'lin2db.dbo.server'.
Msg 208, Level 16, State 1, Line 6
Invalid object name 'lin2db.dbo.ssn'.
l1qu1dx is offline  
Old 25.03.2007, 09:29   #16
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by tpuNIsher View Post
It has a lot of uses.
create Charname check [exist/not exist]
login params.. etc etc..
strange. What server module use it? I dont found no one stored procedure what use it DB.
HF is offline  
Old 25.03.2007, 18:59   #17
KOC2000
Архивный участник
 
Join Date: Jun 2006
Posts: 100
Default

l2comm error:-
03/24/2007 12:51:xx.xx2, Error sql: EXEC lin_GetPledgeList 1, 0, N'', 1 (0)

Can someone share this procedure?
KOC2000 is offline  
Old 25.03.2007, 19:31   #18
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

I used that lin_SetLastTaxUpdate from here, worked fine tbh. ( petre's fixed version that is..)

lin_getpledgeList seems fine.. maybe it didnt paste right when u were executing the query.. try see in db under stored procs if the code is right and same as that of this share.
tpuNIsher is offline  
Old 25.03.2007, 21:16   #19
seraphii
Архивный участник
 
Join Date: Jun 2006
Posts: 126
Default

Make a update, for this procedure lin_getpledgeList, and work fine.
seraphii is offline  
 


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 22:10.