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 16.02.2005, 06:53   #1
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default [MOD] bbs stuff...

Quote:
1) run SQL server enterprise manager
2) open SQL analyze query
3) under lin2comm database -> stored procedures
4) open the dbo.lin_MakeBoard

parent_bid=0 (if you want make a sub bbs)
name=your bbs name
location=0
description=your bbs description
type=1 system bbs / 4 player bbs
admin=admin of the bbs
permission=0 no show/ 4 post only / 8 reply only / 12 post & reply / 255 adv mode
pledge_id=0 (if you want the bbs for clan put the clan id(pledge_id) into it, check it out in pledge table under lin2world databse)
world_id=your world_id(check it in your ini's file)
page_size=1~20(11)
keyword=0

ok, done..clan bbs not working lol
haha it does work.. just require some more changes to the db
anyway.. good work to hicks
Digital is offline  
Old 16.02.2005, 07:58   #2
spoter
Архивный участник
 
Join Date: Feb 2005
Posts: 46
Default

In game user online status in u bbs, for job it - create sheluded task in sql agent .. start this script for 1 min...
Nice it?
Quote:
declare @table_name nvarchar(64)
declare @sql nvarchar(1024)
set @table_name = 'Insert_U_TableA_name(Board_6)'
set @sql = 'DROP TABLE [dbo].['+@table_name+']'
exec (@sqlj
-- begin tran
set @sql = ' CREATE TABLE [dbo].[' + @table_name + '] ( '
+' [root_bid] [int] IDENTITY (1, 1) NOT NULL , '
+' [thread_order] [smallint] NOT NULL , '
+' [bid] [int] NOT NULL , '
+' [step] [smallint] NULL , '
+' [parent_bid] [int] NOT NULL , '
+' [char_id] [int] NULL , '
+' [char_name] [nvarchar] (50) , '
+' [account_id] [int] NULL , '
+' [account_name] [nvarchar] (50) , '
+' [world_id] [smallint] NULL , '
+' [title] [nvarchar] (128) , '
+' [content] [nvarchar] (3000) , '
+' [post_date] [datetime] NULL , '
+' [modify_date] [datetime] NULL , '
+' [read_count] [int] NULL , '
+' [status] [int] NULL, '
+' [ip] [nvarchar] (20), '
+' [comment_cnt] [smallint] NULL , '
+' [keyword] [nvarchar] (20) '
+') ON [PRIMARY] '
exec (@sql)

set @sql = ' ALTER TABLE [dbo].[' + @table_name + '] WITH NOCHECK ADD '
+' CONSTRAINT [DF_' + @table_name + '_thread_order] DEFAULT (0) FOR [thread_order], '
+' CONSTRAINT [DF_' + @table_name + '_parent_bid] DEFAULT (0) FOR [parent_bid],'
+' CONSTRAINT [DF_' + @table_name + '_step] DEFAULT (0) FOR [step],'
+' CONSTRAINT [DF_' + @table_name + '_world_id] DEFAULT (1) FOR [world_id],'
+' CONSTRAINT [DF_' + @table_name + '_post_date] DEFAULT (getdate()) FOR [post_date],'
+' CONSTRAINT [DF_' + @table_name + '_read_count] DEFAULT (0) FOR [read_count], '
+' CONSTRAINT [DF_' + @table_name + '_status] DEFAULT (0) FOR [status], '
+' CONSTRAINT [DF_' + @table_name + '_comment_cnt] DEFAULT (0) FOR [comment_cnt] '
exec (@sql)



set @sql = 'INSERT INTO [dbo].['+@table_name+'] (parent_bid,bid,world_id, title) select 1,R1.char_id,1,R1.char_name from ( select char_name,char_id from lin2world.dbo.user_data where login>logout) as R1'

exec (@sql)
Sorry for my eng...
US&Eng - дерьмо.
Russian&China forever %-)
spoter is offline  
Old 16.02.2005, 08:02   #3
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

wooo good job spoter!

yeah really good stuff.. donated 10 cash to spoter for good work
Digital is offline  
Old 16.02.2005, 10:40   #4
paul
Архивный участник
 
Join Date: Feb 2005
Posts: 390
Default

Verrryyy nice
paul is offline  
Old 17.02.2005, 20:55   #5
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

He he thanks to me - bad bad spoter =)
I do not mention if you use it without copyrights - enjoy
Stazis is offline  
Old 18.02.2005, 03:21   #6
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

lol hey stazis!
Digital is offline  
Old 18.02.2005, 05:29   #7
spoter
Архивный участник
 
Join Date: Feb 2005
Posts: 46
Default

Quote:
Originally Posted by Stazis
He he thanks to me - bad bad spoter =)
I do not mention if you use it without copyrights - enjoy
Oh sorry but this posted 2-3 mons ago.. and forgotten you sorry...
realy sorry

THIS posted by stazis... %-)
spoter is offline  
Old 21.02.2005, 09:36   #8
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

1) 打开 企业管理器
2) 打开 SQL 查询分析器
3) lin2comm 数据库 -> 存储过程
4) 打开 dbo.lin_MakeBoard
5) 输入如下信息(跟以前手工建帐号方法å ·®不多)
parent_bid= 0
name=你的bbs名字
location=0
description=bbs的描述
type=1 系统类BBS / 4 可发表类BBS
admin=BBS的管理者
permission=0 不显示建立新贴 / 255 显示
pledge_id=0
world_id=你的 world_id(你可以在 ini's 文件中找到)
page_size=1~20(第页显示多少贴,建议11)
keyword=0

permission=0为不显示帖子列表,4为只可ä »¥发表新文章,8为只可以回复文章,
12为即可发表,也可回复文章,只有自 己发的文章才可以修改和删除。255的è¯ �就是人人都是斑竹了。

若建立分论坛,可以设置父论坛的 type为 2

子论坛的parent_id为父论坛的bid

如果你想修改这个BBS,操作如下:

1) 打开 企业管理器 -> 数据库
2) lin2comm -> 表 -> board_list
3) 打开board_list并显示所有行
4) 这样就可以修改了(bid=bbs的id)
5) 利用bbs的id我们还可以增加对这个bbs的 公告,方法如下
6) 在lin2comm表打开board_announce并显示所有è ¡Œ
7) announce_id 为空,post_date 为空,board_id(bbs的id),title(公告标题),cont ent(公告内容)&deleted 为空
Digital is offline  
Old 17.05.2005, 06:13   #9
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

Any idea how to enable Clan Button under BBS?
I got full working normal Community but for pledge i just cant make it

Thx.
BiGBoY is offline  
Old 17.05.2005, 06:46   #10
Kane Hart
Архивный участник
 
Join Date: May 2005
Posts: 154
Default

c1 im guessing?
Kane Hart is offline  
Old 17.05.2005, 09:06   #11
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

Right
BiGBoY is offline  
Old 17.05.2005, 17:36   #12
PsychoBR
Архивный участник
 
Join Date: Mar 2005
Posts: 33
Default

Quote:
Originally Posted by spoter
In game user online status in u bbs, for job it - create sheluded task in sql agent .. start this script for 1 min...
Nice it?
Quote:
declare @table_name nvarchar(64)
declare @sql nvarchar(1024)
set @table_name = 'Insert_U_TableA_name(Board_6)'
set @sql = 'DROP TABLE [dbo].['+@table_name+']'
exec (@sqlj
-- begin tran
set @sql = ' CREATE TABLE [dbo].[' + @table_name + '] ( '
+' [root_bid] [int] IDENTITY (1, 1) NOT NULL , '
+' [thread_order] [smallint] NOT NULL , '
+' [bid] [int] NOT NULL , '
+' [step] [smallint] NULL , '
+' [parent_bid] [int] NOT NULL , '
+' [char_id] [int] NULL , '
+' [char_name] [nvarchar] (50) , '
+' [account_id] [int] NULL , '
+' [account_name] [nvarchar] (50) , '
+' [world_id] [smallint] NULL , '
+' [title] [nvarchar] (128) , '
+' [content] [nvarchar] (3000) , '
+' [post_date] [datetime] NULL , '
+' [modify_date] [datetime] NULL , '
+' [read_count] [int] NULL , '
+' [status] [int] NULL, '
+' [ip] [nvarchar] (20), '
+' [comment_cnt] [smallint] NULL , '
+' [keyword] [nvarchar] (20) '
+') ON [PRIMARY] '
exec (@sql)

set @sql = ' ALTER TABLE [dbo].[' + @table_name + '] WITH NOCHECK ADD '
+' CONSTRAINT [DF_' + @table_name + '_thread_order] DEFAULT (0) FOR [thread_order], '
+' CONSTRAINT [DF_' + @table_name + '_parent_bid] DEFAULT (0) FOR [parent_bid],'
+' CONSTRAINT [DF_' + @table_name + '_step] DEFAULT (0) FOR [step],'
+' CONSTRAINT [DF_' + @table_name + '_world_id] DEFAULT (1) FOR [world_id],'
+' CONSTRAINT [DF_' + @table_name + '_post_date] DEFAULT (getdate()) FOR [post_date],'
+' CONSTRAINT [DF_' + @table_name + '_read_count] DEFAULT (0) FOR [read_count], '
+' CONSTRAINT [DF_' + @table_name + '_status] DEFAULT (0) FOR [status], '
+' CONSTRAINT [DF_' + @table_name + '_comment_cnt] DEFAULT (0) FOR [comment_cnt] '
exec (@sql)



set @sql = 'INSERT INTO [dbo].['+@table_name+'] (parent_bid,bid,world_id, title) select 1,R1.char_id,1,R1.char_name from ( select char_name,char_id from lin2world.dbo.user_data where login>logout) as R1'

exec (@sql)
Sorry for my eng...
US&Eng - дерьмо.
Russian&China forever %-)
Its for C2???

I use this in Lin2comm DB???

How to set 1 minute sheduled task????

Thnx!!
PsychoBR is offline  
Old 17.05.2005, 17:53   #13
Awhite
Архивный участник
 
Join Date: May 2005
Posts: 13
Default

I was thinking..could it be possible to combine a real forum's db with l2's so that you have one forum that can be accessed in-game and from a normal browser?
Awhite is offline  
Old 17.05.2005, 18:04   #14
yellowperil
Архивный участник
 
Join Date: Mar 2005
Posts: 114
Default

well the main issue is that the c2 buttons crash the server, or the client, or both...... I dont think an SQL fix wil solve the C2 bbs.
yellowperil is offline  
Old 18.05.2005, 08:00   #15
Galadr0n
Архивный участник
 
Join Date: Apr 2005
Posts: 5
Default

Quote:
Originally Posted by spoter
In game user online status in u bbs, for job it - create sheluded task in sql agent .. start this script for 1 min...
Nice it?
Quote:
declare @table_name nvarchar(64)
declare @sql nvarchar(1024)
set @table_name = 'Insert_U_TableA_name(Board_6)'
set @sql = 'DROP TABLE [dbo].['+@table_name+']'
exec (@sqlj
-- begin tran
set @sql = ' CREATE TABLE [dbo].[' + @table_name + '] ( '
+' [root_bid] [int] IDENTITY (1, 1) NOT NULL , '
+' [thread_order] [smallint] NOT NULL , '
+' [bid] [int] NOT NULL , '
+' [step] [smallint] NULL , '
+' [parent_bid] [int] NOT NULL , '
+' [char_id] [int] NULL , '
+' [char_name] [nvarchar] (50) , '
+' [account_id] [int] NULL , '
+' [account_name] [nvarchar] (50) , '
+' [world_id] [smallint] NULL , '
+' [title] [nvarchar] (128) , '
+' [content] [nvarchar] (3000) , '
+' [post_date] [datetime] NULL , '
+' [modify_date] [datetime] NULL , '
+' [read_count] [int] NULL , '
+' [status] [int] NULL, '
+' [ip] [nvarchar] (20), '
+' [comment_cnt] [smallint] NULL , '
+' [keyword] [nvarchar] (20) '
+') ON [PRIMARY] '
exec (@sql)

set @sql = ' ALTER TABLE [dbo].[' + @table_name + '] WITH NOCHECK ADD '
+' CONSTRAINT [DF_' + @table_name + '_thread_order] DEFAULT (0) FOR [thread_order], '
+' CONSTRAINT [DF_' + @table_name + '_parent_bid] DEFAULT (0) FOR [parent_bid],'
+' CONSTRAINT [DF_' + @table_name + '_step] DEFAULT (0) FOR [step],'
+' CONSTRAINT [DF_' + @table_name + '_world_id] DEFAULT (1) FOR [world_id],'
+' CONSTRAINT [DF_' + @table_name + '_post_date] DEFAULT (getdate()) FOR [post_date],'
+' CONSTRAINT [DF_' + @table_name + '_read_count] DEFAULT (0) FOR [read_count], '
+' CONSTRAINT [DF_' + @table_name + '_status] DEFAULT (0) FOR [status], '
+' CONSTRAINT [DF_' + @table_name + '_comment_cnt] DEFAULT (0) FOR [comment_cnt] '
exec (@sql)



set @sql = 'INSERT INTO [dbo].['+@table_name+'] (parent_bid,bid,world_id, title) select 1,R1.char_id,1,R1.char_name from ( select char_name,char_id from lin2world.dbo.user_data where login>logout) as R1'

exec (@sql)
Sorry for my eng...
US&Eng - дерьмо.
Russian&China forever %-)
sry for my ignorance, but so that this is used and as it works? :?:
Galadr0n is offline  
Old 18.05.2005, 16:34   #16
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

Quote:
haha it does work.. just require some more changes to the db
anyway.. good work to hicks
Umm Digital
Can u be a little more specific please?
BiGBoY is offline  
Old 18.05.2005, 17:57   #17
Christoff
Архивный участник
 
Join Date: May 2005
Posts: 47
Default

..its has toooo many bugggggzzz...
Christoff is offline  
Old 19.05.2005, 16:19   #18
SAM
Архивный участник
 
Join Date: May 2005
Posts: 4
Default

Ingame online monitor & TOP10.
Sorry, but instruction is in russian.
SAM is offline  
Old 31.05.2005, 16:45   #19
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

I'll try to find out a fix for it.

Greetz
LDragonL is offline  
Old 31.05.2005, 18:25   #20
ThaDon
Архивный участник
 
Join Date: Apr 2005
Posts: 104
Default

yeah cool stuff ill try it
ThaDon is offline  
Old 02.08.2005, 23:25   #21
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

diggin' this old useful topic from hell....... anything useful now @ C3 ??
or still BBS unusable?
rodier is offline  
Old 19.11.2005, 12:28   #22
midnight
Архивный участник
 
Join Date: Jun 2005
Posts: 199
Default

For create admins on bbs:

lin_SetRest

char_id - Id del personaje
bid - Id del bbs
permission - Permisos: 0 no show/ 4 post only / 8 reply only / 12 post & reply / 255 adv mode
world_id - id del world


Any can explain me how to create messages for system bbs?
Alguien podria explicarme como crear mensajes para el system bbs?
midnight is offline  
Old 19.11.2005, 18:12   #23
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

for C3 ?
I can't sorry...
LDragonL is offline  
Old 01.12.2005, 19:26   #24
ArnAz
Архивный участник
 
Join Date: Dec 2005
Posts: 1
Default

Is Possible to make that thing in c3??? It would be very usefull... ops:
ArnAz is offline  
Old 01.12.2005, 23:51   #25
Nurgl
Архивный участник
 
Join Date: May 2005
Posts: 118
Default

Quote:
Originally Posted by Galadr0n
Quote:
Originally Posted by spoter
In game user online status in u bbs, for job it - create sheluded task in sql agent .. start this script for 1 min...
Nice it?
Quote:
declare @table_name nvarchar(64)
declare @sql nvarchar(1024)
set @table_name = 'Insert_U_TableA_name(Board_6)'
set @sql = 'DROP TABLE [dbo].['+@table_name+']'
exec (@sqlj
-- begin tran
set @sql = ' CREATE TABLE [dbo].[' + @table_name + '] ( '
+' [root_bid] [int] IDENTITY (1, 1) NOT NULL , '
+' [thread_order] [smallint] NOT NULL , '
+' [bid] [int] NOT NULL , '
+' [step] [smallint] NULL , '
+' [parent_bid] [int] NOT NULL , '
+' [char_id] [int] NULL , '
+' [char_name] [nvarchar] (50) , '
+' [account_id] [int] NULL , '
+' [account_name] [nvarchar] (50) , '
+' [world_id] [smallint] NULL , '
+' [title] [nvarchar] (128) , '
+' [content] [nvarchar] (3000) , '
+' [post_date] [datetime] NULL , '
+' [modify_date] [datetime] NULL , '
+' [read_count] [int] NULL , '
+' [status] [int] NULL, '
+' [ip] [nvarchar] (20), '
+' [comment_cnt] [smallint] NULL , '
+' [keyword] [nvarchar] (20) '
+') ON [PRIMARY] '
exec (@sql)

set @sql = ' ALTER TABLE [dbo].[' + @table_name + '] WITH NOCHECK ADD '
+' CONSTRAINT [DF_' + @table_name + '_thread_order] DEFAULT (0) FOR [thread_order], '
+' CONSTRAINT [DF_' + @table_name + '_parent_bid] DEFAULT (0) FOR [parent_bid],'
+' CONSTRAINT [DF_' + @table_name + '_step] DEFAULT (0) FOR [step],'
+' CONSTRAINT [DF_' + @table_name + '_world_id] DEFAULT (1) FOR [world_id],'
+' CONSTRAINT [DF_' + @table_name + '_post_date] DEFAULT (getdate()) FOR [post_date],'
+' CONSTRAINT [DF_' + @table_name + '_read_count] DEFAULT (0) FOR [read_count], '
+' CONSTRAINT [DF_' + @table_name + '_status] DEFAULT (0) FOR [status], '
+' CONSTRAINT [DF_' + @table_name + '_comment_cnt] DEFAULT (0) FOR [comment_cnt] '
exec (@sql)



set @sql = 'INSERT INTO [dbo].['+@table_name+'] (parent_bid,bid,world_id, title) select 1,R1.char_id,1,R1.char_name from ( select char_name,char_id from lin2world.dbo.user_data where login>logout) as R1'

exec (@sql)
Sorry for my eng...
US&Eng - дерьмо.
Russian&China forever %-)
sry for my ignorance, but so that this is used and as it works? :?:
PetitionD crash server :cry:
Nurgl 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 23:12.