Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   Fixing BBS (https://postpacific.mmorpg-game.online/showthread.php?t=5633)

Shawnmb 03.09.2006 21:16

Fixing BBS
 
Fixing the “Memo” tab:

Problem: Missing table.

Fix:
Code:

USE [lin2comm]
GO
/****** Object:  Table [dbo].[user_memo]    Script Date: 08/22/2006 07:55:34 ******/
/****** Shawnmb******/

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[user_memo](
        [memo_id] [int] IDENTITY(1,1) NOT NULL,
        [insert_time] [datetime] NOT NULL CONSTRAINT [DF_user_memo_insert_time]  DEFAULT (getdate()),
        [world_id] [int] NOT NULL,
        [char_id] [int] NOT NULL,
        [char_name] [nvarchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
        [account_id] [int] NOT NULL,
        [account_name] [nvarchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
        [memo_title] [nvarchar](128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
        [memo_text] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
        [deleted] [tinyint] NOT NULL CONSTRAINT [DF_user_memo_deleted]  DEFAULT ((0))
) ON [PRIMARY]

Make sure board_worldname is updated.

--------------

Fixing the “Region” tab:

Problem: Missing data from board_list

Fix: In board_list there is a column named “location”. Setting Location to 0 makes the board section universal. Any number other than 0 is matched with the “bbs=” line in setting.txt. Note that race bans (example below) apply to the regional tab.

Example:

In setting.txt: (Snippets)

point_name=[darkelf_town]
banned_race={elf;[elf_town]}
bbs=3

point_name=[elf_town]
banned_race={darkelf;[darkelf_town]}
bbs=4

Light elves in darkelf_town would be redirected to the Regional BBS for elf_town, while Dark Elves in elf_town would be redirected to the Regional BBS for darkelf_town.

Location Data:
Regional - Talking Island Territory 1
Regional - Gludin/Gludio Territory 2
Regional - Dark Elf Territory 3
Regional - Elf Territory 4
Regional - Dion Territory 5
Regional - Giran Territory 6
Regional - Neutral Zone Territory 7
Regional - Orc Territory 8
Regional - Dwarf Territory 9
Regional - Oren 10
Regional - Hunters Villiage 11
Regional - Innadril Territory 12
Regional - Aden Territory 13
Regional - Rune Territory 14
Regional - Goddard Territory 15

--------------

Fixing the “Title” dropdown box:

Problem: When posting the “Title” dropdown box is empty, which prevents you from posting.

Fix: The contents of the dropdown box are basically called “Keywords”. This can be fixed by properly creating the table in SQL.
In board_list there is a “keyword_type” column (int). This column has to be matched to board_keyword (field_type).

Example:

In lin2comm.dbo.board_list:

Board name: Example
Keyword Type: 0

In lin2comm.dbo.board_keyword:
field_key: “Post”
field_desc: “Post”
field_type: 0
field_order: 0
field_id: (identity)

field_key: “Re:”
field_desc: “Reply”
field_type: 0
field_order: 1
field_id: (identity)

--------------

Creating new sections:

Example (SQL):

Code:

USE [lin2comm]
GO

DECLARE        @return_value int

EXEC        @return_value = [dbo].[lin_MakeBoard]
                @parent_bid = 0,
                @name = N'Test Board',
                @description = N'Woot',
                @type = 4,
                @admin = N'admin',
                @permission = 2,
                @world_id = 1,
                @keyword = 0,
                @location = 0,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

SELECT        'Return Value' = @return_value

GO

Explanation of parameters:

@parent_bid – Used to create sub forums (?) ID of “parent” board. 0 for no parent.
@name – Name of the board
@description – Description of the board
@type – 1 (System) 4 (User)
@admin – Displayed admin name
@permission – 2 (Read Only) 4 (Read / Post) 12 (Read / Post / Reply) 255 (Advanced)
@world_id – World ID (tied to lin2comm.dbo.board_worldname ?)
@keyword – Explained above, Keyword_type
@location – Explained above, Regional or 0 for universal
@classid – Unchecked
@pledge_id – Unchecked
@page_size – Posts displayed per page

--------------

Adding board moderators:
(This was quickly added)
Open board_rest table

char_id = Moderators character ID
pledge_id = Leave this at 0
bid = bid number of the section for which this character is moderator (board_list)
world_id = Generally set to 1
permission = 255 to give them a full permission set
rest_id is an identity, leave it alone.


If you have any further questions or need help, just ask.

Thalone 03.09.2006 21:31

very nice share

Shawnmb 04.09.2006 00:16

Jeez 50+ views and only one response, Thanks Thal ^^

djvogans 04.09.2006 00:52

congrats my friend ..i know how much time u spend on it :)

paul 04.09.2006 01:49

I just read it :p

Thanks shawn this is good work.

Stazis 04.09.2006 04:46

SMB is quiet hard worker - he does not make a sound when he works - but when he finish - wooow - he says amazing things
thanks SMB - most of this was usefull even for me.

Shawnmb 04.09.2006 05:04

Argh now those kind of thanks are overkill :<

<3 though ^^
I hope you all find this useful :)

SlayerX 04.09.2006 05:06

U WORK GOOD ADMIN
10x

Kenjiro 04.09.2006 07:06

Great, thx a lot!

kgptzac 04.09.2006 07:08

09/04/2006 02:05:xx.xx4, Error sql: EXEC lin_GetIntro 1, 1 (0)
09/04/2006 02:05:xx.xx4, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_GetIntro'.

what's that? :(

Shawnmb 04.09.2006 07:21

Do you get that on the comm server application?

ShinHawk 04.09.2006 07:27

nice stuff, worked perfectly, thanks ^^

vol4 04.09.2006 08:06

Quote:

Originally Posted by kgptzac (Post 66355)
09/04/2006 02:05:xx.xx4, Error sql: EXEC lin_GetIntro 1, 1 (0)
09/04/2006 02:05:xx.xx4, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_GetIntro'.

what's that? :(

may be your lin2clancomm not have tables?


to all:
I have problem. Created TEST board, set permission to Read/Write/Post. When i'm trying to new post, i can't select Title and get message "Please make an entry in the field".

sorry for english...

Shawnmb 04.09.2006 08:26

"Fixing the “Title” dropdown box:"....

vol4 04.09.2006 08:42

Quote:

Originally Posted by Shawnmb (Post 66371)
"Fixing the “Title” dropdown box:"....

i'm stupid. thanks...

MuNLoK 04.09.2006 12:43

Full Working DBComm Script.

(Forum Structure from Retail server).

http://rapidshare.de/files/31918577/...ripts.rar.html

vol4 04.09.2006 13:23

I have already made it:) But thanks!

palace 04.09.2006 17:56

Favorite and Region have problem (can not find BBs)
Thank for share is perfect

aralyon 04.09.2006 19:17

Nice share, I'l try it, when I finish with petition :)

palace 04.09.2006 21:18

I am trying to put an announcement and when it accepts so that it places it it says to me: Please make entry in the field. that it can be that

Shawnmb 04.09.2006 23:36

Quote:

Originally Posted by palace (Post 66423)
Favorite and Region have problem (can not find BBs)
Thank for share is perfect

Fix for that is also outlined in the main post ^^

palace 05.09.2006 19:11

to update line

INSERT INTO board_keyword ( field_key, field_desc, field_type, field_order ) VALUES ( 'Announcements', 'Information', 2, 1 )
INSERT INTO board_keyword ( field_key, field_desc, field_type, field_order ) VALUES ( 'Update', 'Patch', 3, 2)

---------------------------------------------------

EXEC lin_MakeBoard 2, N'Official Announcements', N'General Information', 4, N'Admin', 0, 1, 2, 0, 0, 0, 12
EXEC lin_MakeBoard 2, N'Update Information', N'Patch Notes', 4, N'Admin', 0, 1, 3, 0, 0, 0, 12

palace 05.09.2006 20:22

Fixing the “Region” tab:

some person can explain or show a photo of which there is to make exactly to repair the error. it is the only that I need. and profit not to understand that part. Thanks

Shawnmb 05.09.2006 23:05

Quote:

Originally Posted by palace (Post 66562)
Fixing the “Region” tab:

some person can explain or show a photo of which there is to make exactly to repair the error. it is the only that I need. and profit not to understand that part. Thanks

Try this, this script should insert all the regional stuff into your board_list table. I haven't tested it but there's no reason it shouldn't work. Please report any problems or innaccuracies with it (typed location and names back in by hand, so you never know where I might have messed up, hehe)

SQL File: http://codemonkeh.com/Lineage2/Inser...;Lin2Comm].sql

Code paste:

Code:

/* Shawnmb */
USE [lin2comm]

DECLARE @RegionParentBid int

/* The Bid ID of the parent forum for the regional boards */
/* Change to fit your setup */
Set @RegionParentBid = '1'

/* Using MadeBoard stored procedures to add the regional boards */
EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Talking Island Territory',
                @description = N'Talking Island Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 1,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Gludin/Gludio Territory',
                @description = N'Gludio Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 2,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Dark Elf Territory',
                @description = N'Dark Elven Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 3,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Elf Territory',
                @description = N'Elven Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 4,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Dion Territory',
                @description = N'Dion Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 5,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Giran Territory',
                @description = N'Giran Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 6,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Neutral Zone Territory',
                @description = N'DMZ Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 7,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Orc Territory',
                @description = N'Orc Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 8,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Dwarf Territory',
                @description = N'Dwarf Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 9,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Oren',
                @description = N'Oren Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 10,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Hunters Villiage',
                @description = N'Hunters Villiage Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 11,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Innadril Territory',
                @description = N'Heine Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 12,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Aden Territory',
                @description = N'Aden Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 13,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Rune Territory',
                @description = N'Rune Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 14,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

EXEC        [dbo].[lin_MakeBoard]
                @parent_bid = @RegionParentBid,
                @name = N'Regional - Goddard Territory',
                @description = N'Goddard Regional Board',
                @type = 4,
                @admin = N'admin',
                @permission = 12,
                @world_id = 1,
                @keyword = 0,
                @location = 15,
                @classid = 0,
                @pledge_id = 0,
                @page_size = 11

GO


palace 06.09.2006 00:12

Ufffffffffffffffffffffff thank you very much friend, is perfect. Try some works exelente. Tomorrow I inform to him into any other error. I put the usuary photo and all Db together so that all can take advantage of it. Exelente and thank you very much. Excuse my english

Kenjiro 06.09.2006 11:22

Great, thanks a lot!

aero77 06.09.2006 13:22

Thanks for share!!! :)

But i cant make messages in general BBS! :( Console write - you cant write... bla bla bla. I update all table - and in board_rest maked 255 permission and id of char. - But some shit =( What i do wrong?

palace 06.09.2006 16:52

each section is handled by 1 different person that it has the privileges. see

Fixing the “Title” dropdown box:

Problem: When posting the “Title” dropdown box is empty, which prevents you from posting.

Fix: The contents of the dropdown box are basically called “Keywords”. This can be fixed by properly creating the table in SQL.
In board_list there is a “keyword_type” column (int). This column has to be matched to board_keyword (field_type).

palace 06.09.2006 19:15

Update Tables
 
Dont is my work (UPDATE TABLES)

COMPLETE: Top and Region

Credit: Shawnmb, MuNLoK

Remember: Delete all old data base lin2comm.

Adding board moderators:
(This was quickly added)
Open board_rest table

Example: 1

Chard_id= you num pj
pledge = 0
did = 4 (event)
word_id=1
permision=255

Example: 2

Chard_id= you num pj
pledge = 0
did=5 (official announcement)
word_id=1
permision=255

Example: 3
Chard_id= you num pj
pledge = 0
did=6 (updata patch)
word_id=1
permision=255

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
lin2comm_update.rar — 18648 байт

aero77 06.09.2006 20:01

Great! Thanks!!!!!!!!!! :)

Shawnmb 07.09.2006 01:22

Quote:

Originally Posted by palace (Post 66664)
Dont is my work (UPDATE TABLES)

COMPLETE: Top and Region

Credit: Shawnmb, MuNLoK

Remember: Delete all old data base lin2comm.

Adding board moderators:
(This was quickly added)
Open board_rest table

Example: 1

Chard_id= you num pj
pledge = 0
did = 4 (event)
word_id=1
permision=255

Example: 2

Chard_id= you num pj
pledge = 0
did=5 (official announcement)
word_id=1
permision=255

Example: 3
Chard_id= you num pj
pledge = 0
did=6 (updata patch)
word_id=1
permision=255

Nice work, but I don't understand your thinking in file #6 under " KeyWord - Lin2Comm", could you explain? ^_^

palace 07.09.2006 13:08

I number them to the front of lin2comm do not symbolize anything. I take an order to place all dbscript, not to be mistaken. All my script is placed in 1 single folder. You can change to them I number them by your necessities, or to their order.

Shawnmb 07.09.2006 19:28

Yeah but why are you inserting location names into the keywords table? (That's what I remember from when I looked at it, I'm at class so I can't double check) ^_^

palace 07.09.2006 20:19

region nonsingle indicates the region where is the PJ.have a Write button, to write, it works just as all, it is used single to write your memos but referring to localition where you are. I could not access to all regions where she leaves title. single gives the region me where she found me

when he has time check please same you within the game in case there are erros, single I I fix what you bd. when you try to write. said that did not find the route. For that reason I did it by you.

GMan 08.09.2006 09:37

Thanks man, great share

now just need to figure out the clan DB side, i used most of the same syuff from here but theres a few things special for clan tables it seems that the clans "table_list" is auto filled in with 2 "forums" when they go in there but it uses keywords 4 and 5, does anyone here have an official account that can check to see what should be in all the drop downs thanks, also a screen shot of the main forum would be nice, i would like to see whow its layed out

Shawnmb 09.09.2006 00:14

I just used "Post" as I did on the main forums, but changed, as you said the keyword ID to 4/5, worked great.

palace 09.09.2006 01:36

please i dont undertand post gman, please help me. for repair db. thank

Stavr 12.09.2006 08:32

What kind of "Title" drop-list?
When i try to wrote some post it alweys empy (empty list). And becose it some errore message poping up. As result: no posts =(

Can any help to fix it?

Sorry for my bad english

IVB 12.09.2006 09:15

Quote:

Originally Posted by Stavr (Post 67125)
What kind of "Title" drop-list?
When i try to wrote some post it alweys empy (empty list). And becose it some errore message poping up. As result: no posts =(

Can any help to fix it?

Sorry for my bad english

Look in 1st post:

Quote:

Creating new sections:

Example (SQL):

GMan 12.09.2006 09:49

anyoneknow what each permission type is on board_list?

i added all the boards, and gave myself moderator rights on all the forums but when i try to write in the updates section i get "You do not have write permission"

i would like something there (admins, GM any kinda builder lvl ) can start topics and users can reply

Thanks


All times are GMT. The time now is 22:55.