The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
So Close!
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: So Close!
I never used this old bulletin board, but looking at the bulletin board code you can find some useful info

this is what happens when the client send the packet 0x71 to create an new message on bulletin board:
https://github.com/Sphereserver/Source/b....cpp#L1188

basically the bulletin board is an virtual container. The bulletin board is the main container itself, and messages are itens inside this container. This packet just create the message item 0eb0, fill some info on this item, and bounce it inside the bulletin board container

so translating this C++ code into sphere code it will be something like this
Code:
SERV.NEWITEM 0eb0
SRC.ACT.ATTR=attr_move_never
SRC.ACT.MORE1=<SERV.TIME>
SRC.ACT.LINK=<UID>
SRC.ACT.NAME=<NAME>
SRC.ACT.AUTHOR=<NAME>
SRC.ACT.BODY0=text line 0 here
SRC.ACT.BODY1=text line 1 here
SRC.ACT.BODY2=text line 2 here, etc //max lines allowed = 32 (0 ~ 31)
SRC.ACT.CONT=[bulletin board UID here]
PS: this message item must be placed inside the container item that must have TYPE=t_bboard to be considerend an bulletin board

and since bulletin board is an container and you're using an custom container, maybe it will be a good idea set TDATA2=82 to make it open the bulletin board gump when you dclick on this "container"
01-23-2017 11:13 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Coruja's post
Post Reply 


Messages In This Thread
So Close! - x77x - 01-21-2017, 08:31 AM
RE: So Close! - x77x - 01-21-2017, 11:01 PM
RE: So Close! - t9king - 01-23-2017, 09:31 AM
RE: So Close! - Coruja - 01-23-2017 11:13 AM
RE: So Close! - Anarch Cassius - 01-23-2017, 12:06 PM
RE: So Close! - x77x - 01-26-2017, 11:01 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)