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-nmm6 (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-nmm6 (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-nmm6 (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
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
So Close!
im trying to make a message board that will log when a player logs in...
im so close, the only problem is...

the message memory item is added ingame as a visable item...

Code:
[6395]
ID=1e5e
NAME=Online Log
//bulletin board
TYPE=106
COLOR=481
ATTR=010

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=Quest Items
DESCRIPTION=Online Bulletin Board

Code:
ON=@LOGIN
//VAR.NX=RAND(49)+1
//VAR.NY=RAND(19)+1
SRC.NEWITEM=00eb0//memitem
//SRC.ACT.TYPE=88
SRC.ACT.NAME=Online//subject
SRC.ACT.LINK=<UID>
SRC.ACT.MORE1=0ba036510//??? no idea 3 digits are the DAY
SRC.ACT.CONT=040048fe8//the message board serial
SRC.ACT.P=7,7,0//no idea, working messages arent an in game item
SRC.ACT.AUTHOR=<NAME>
SRC.ACT.BODY0=<NAME>
SRC.ACT.BODY1=was online at...
SRC.ACT.BODY2=<ACCOUNT.LASTCONNECTDATE>
SRC.ACT.TIMER=-1//~<SRC.ACT.TIMER>
SRC.ACT.ATTR=0//~<SRC.ACT.ATTR>

looking at the world file its looks correct

but the problem is...
the message memory item has to be under the message board in the worldfile save, because the message board is the container

how can i get it to bounce to the message boards container properly, to work as an actual message board post?

also
P=x,x,x

wheres this magic valt that all message board posts are saved at!? =)

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-21-2017 11:01 PM by x77x.)
01-21-2017 08:31 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #2
RE: So Close!
HOLY SHIT!

you can drag the in game message item and drop it on the message board and it will add the message!

what about

FINDCONT ???


whats the proper way to use it? example?

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-21-2017 11:02 PM by x77x.)
01-21-2017 11:01 PM
Find all posts by this user Like Post Quote this message in a reply
t9king
Apprentice
*

Posts: 10
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Jan 2017
Reputation: 0



Post: #3
RE: So Close!
Hello, I am a novice, I also use sphere 51a But many problems do not understand, you can help me Email:t9king@163.com

I have, but how to find a suitable for this sphere 51a Ultima Online
(This post was last modified: 01-23-2017 09:33 AM by t9king.)
01-23-2017 09:31 AM
Find all posts by this user Like Post Quote this message in a reply
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
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #5
RE: So Close!
And if that all seems weird, the bulletin board is one of the oldest built in systems that isn't super basic like skills or combat.

IIRC it dates back to TUS before you could even call a custom targeting cursor in script.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
01-23-2017 12:06 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Anarch Cassius's post
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #6
RE: So Close!
thats pretty much what i had, but i still need a way to bounce the item to the message board and make the ingame item go away =P

Dragons of Time 2000-2020
http://dragonsoftime.com
01-26-2017 11:01 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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