![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jan 2006
Posts: 79
|
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
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Aug 2006
Posts: 21
|
click, should be a good one when my 64bit hardware arrives
thanks
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jan 2006
Posts: 79
|
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. |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Why need DB lin2user? Where it use?
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2006
Posts: 135
|
Thx, hope I can get my server work with this >>
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jan 2006
Posts: 79
|
I have 4 different versions of L2Auth, but I can't force to work new versions. I'm using old "40504" version.
I don't know. It present in C1 and C4, so I prepare sql for it. |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Jan 2006
Posts: 79
|
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. |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jan 2007
Posts: 45
|
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
![]() Вложения из исходного сообщения (сами файлы в копии отсутствуют): 0_create-db.zip — 334 байт |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Jan 2007
Posts: 45
|
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 |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jun 2006
Posts: 100
|
Thanx guys.
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
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 |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Jan 2007
Posts: 45
|
Yeah, agree, this post must be sticked.
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Mar 2007
Posts: 2
|
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'. |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Jun 2006
Posts: 100
|
l2comm error:-
03/24/2007 12:51:xx.xx2, Error sql: EXEC lin_GetPledgeList 1, 0, N'', 1 (0) Can someone share this procedure? |
|
|
|
|
#18 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
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. |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Jun 2006
Posts: 126
|
Make a update, for this procedure lin_getpledgeList, and work fine.
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|