Guild bulletin

04/30/2014 18:41 Wolfy.#1
Anyone knows what handles the announcement board? A packet type, subtype? This:

[Only registered and activated users can see links. Click Here To Register...]

And um i tried changing the bulletin with npc with the text input like when you create guild and write guild name and it gives the bulletin like this:

[Only registered and activated users can see links. Click Here To Register...]

Why is that so?
Can't the ~ be replaced some way with spaces?
04/30/2014 20:45 Aceking#2
Yes its a packet.
I don't have access to a source right now, but off the top of my head it is either the guild packet, or npc dialog packet?
It has a subtype specifically for the bulletin.

I will check once I get home and have access to the source.
04/30/2014 20:52 Korvacs#3
Quote:
Originally Posted by Aceking View Post
Yes its a packet.
I don't have access to a source right now, but off the top of my head it is either the guild packet, or npc dialog packet?
It has a subtype specifically for the bulletin.

I will check once I get home and have access to the source.
Its neither of those, but you tried I guess.
04/30/2014 21:03 Aceking#4
Quote:
Originally Posted by Korvacs View Post
Its neither of those, but you tried I guess.
Chat packet :)

Subtype 2111 is what will set the message when you write it into the bulletin.

Subtype 2004 is what will display the message

I said it was off the top of my head as I didn't have access to a source.
04/30/2014 21:35 Wolfy.#5
Wait what are you talking, i can't really understand ><. So chat subtype 2111 is for changing the bulletin within the guild board?
04/30/2014 21:44 Aceking#6
Quote:
Originally Posted by Wolfy. View Post
Wait what are you talking, i can't really understand ><. So chat subtype 2111 is for changing the bulletin within the guild board?
When you write a new bulletin in the guild window, it will send subtype 2111 to the server requesting that the bulletin be updated.

Your code should change the bulletin in the database, and then send a chat packet with subtype 2004 and the new bulletin to all members to update their bulletin.
04/30/2014 21:59 Korvacs#7
Quote:
Originally Posted by Aceking View Post
When you write a new bulletin in the guild window, it will send subtype 2111 to the server requesting that the bulletin be updated.

Your code should change the bulletin in the database, and then send a chat packet with subtype 2004 and the new bulletin to all members to update their bulletin.
What version is this for, because that's not how it works on lower versions.

Edit: Oh sorry subtype, gotcha!
04/30/2014 22:07 Wolfy.#8
5165, tried something look what now :v :

[Only registered and activated users can see links. Click Here To Register...]

when i try to change:

[Only registered and activated users can see links. Click Here To Register...]

everything is wrong here. :awesome:
04/30/2014 22:15 Aceking#9
Quote:
Originally Posted by Wolfy. View Post
5165, tried something look what now :v :

[Only registered and activated users can see links. Click Here To Register...]

when i try to change:

[Only registered and activated users can see links. Click Here To Register...]

everything is wrong here. :awesome:
Well all the .ToString is doing is converting the variable type to a string? The variable type being a byte array.

Subtype 2111 should check to make sure the sender is guild leader etc, then change the guild bulletin to be the message contained in the packet.

It will then send the chat packet to all guild members with subtype 2004 containing the new guild bulletin as the message.

So I don't know how your source works, but subtype 2111 needs to read a string from the buffer/byte array and set the bulletin to be that string.

And then you send the packet back with subtype 2004 containing the bulletin as a string/message at the correct offset.

Im sure your source already has chat functioning. Just look to see how it pulls/adds strings from/to the buffer/byte array and use the same methods here.
04/30/2014 22:20 Wolfy.#10
The last one, very good idea i will try it, about the checks guild leader etc... Will do that, first to make sure it changes it.

Yay!

[Only registered and activated users can see links. Click Here To Register...]