View Full Version : [MOD] bbs stuff...
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 :)
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?
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 %-)
wooo good job spoter! :D
yeah really good stuff.. donated 10 cash to spoter for good work :D
He he thanks to me - bad bad spoter =)
I do not mention if you use it without copyrights - enjoy
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... %-)
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 为空
Any idea how to enable Clan Button under BBS?
I got full working normal Community but for pledge i just cant make it :(
Thx.
Kane Hart
17.05.2005, 06:46
c1 im guessing?
PsychoBR
17.05.2005, 17:36
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?
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!! :D
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?
yellowperil
17.05.2005, 18:04
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.
Galadr0n
18.05.2005, 08:00
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?
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? :?:
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?
Christoff
18.05.2005, 17:57
..its has toooo many bugggggzzz...
Ingame online monitor & TOP10.
Sorry, but instruction is in russian.
LDragonL
31.05.2005, 16:45
I'll try to find out a fix for it.
Greetz
yeah cool stuff ill try it :)
diggin' this old useful topic from hell....... anything useful now @ C3 ??
or still BBS unusable?
midnight
19.11.2005, 12:28
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?
LDragonL
19.11.2005, 18:12
for C3 ?
I can't sorry...
Is Possible to make that thing in c3??? It would be very usefull... :oops:
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?
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: