SphereCommunity
So Close! - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: So Close! (/Thread-So-Close)



So Close! - x77x - 01-21-2017 08:31 AM

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!? =)


RE: So Close! - x77x - 01-21-2017 11:01 PM

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?


RE: So Close! - t9king - 01-23-2017 09:31 AM

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


RE: So Close! - Coruja - 01-23-2017 11:13 AM

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/blob/8b1b2e64fc266eb87006e6beefa8c297f67c1c29/src/network/receive.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"


RE: So Close! - Anarch Cassius - 01-23-2017 12:06 PM

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.


RE: So Close! - x77x - 01-26-2017 11:01 PM

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