Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Share] C4 Retail DB scripts. (https://postpacific.loc-online.com/showthread.php?t=5322)

IVB 07.08.2006 12:45

[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.

Battlestorm 07.08.2006 20:27

click, should be a good one when my 64bit hardware arrives :D thanks

IVB 15.09.2006 08:27

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.

HF 15.09.2006 09:24

Quote:

Originally Posted by IVB (Post 64068)
...
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 15.09.2006 09:28

Why need DB lin2user? Where it use?

Bloodust 15.09.2006 11:24

Thx, hope I can get my server work with this >>

IVB 18.09.2006 07:51

Quote:

Originally Posted by HF (Post 67433)
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 (Post 67434)
Why need DB lin2user? Where it use?

I don't know. It present in C1 and C4, so I prepare sql for it.

IVB 03.03.2007 07:50

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.

petre1980 03.03.2007 15:32

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 :D

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
0_create-db.zip — 334 байт

petre1980 03.03.2007 20:04

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


KOC2000 20.03.2007 04:50

Thanx guys.

tpuNIsher 20.03.2007 15:18

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

petre1980 20.03.2007 20:02

Yeah, agree, this post must be sticked.

tpuNIsher 24.03.2007 23:05

Quote:

Originally Posted by HF (Post 67434)
Why need DB lin2user? Where it use?

It has a lot of uses.
create Charname check [exist/not exist]
login params.. etc etc..

l1qu1dx 25.03.2007 04:05

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'.

HF 25.03.2007 09:29

Quote:

Originally Posted by tpuNIsher (Post 82207)
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.

KOC2000 25.03.2007 18:59

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

Can someone share this procedure?

tpuNIsher 25.03.2007 19:31

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.

seraphii 25.03.2007 21:16

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


All times are GMT. The time now is 15:04.