Register for your free account! | Forgot your password?

You last visited: Today at 15:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Guild bulletin

Discussion on Guild bulletin within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Wolfy.'s Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
Guild bulletin

Anyone knows what handles the announcement board? A packet type, subtype? This:



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:



Why is that so?
Can't the ~ be replaced some way with spaces?
Wolfy. is offline  
Old 04/30/2014, 20:45   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
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.
Aceking is offline  
Old 04/30/2014, 20:52   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
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.
Korvacs is offline  
Old 04/30/2014, 21:03   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
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.
Aceking is offline  
Old 04/30/2014, 21:35   #5
 
Wolfy.'s Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
Wait what are you talking, i can't really understand ><. So chat subtype 2111 is for changing the bulletin within the guild board?
Wolfy. is offline  
Old 04/30/2014, 21:44   #6
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
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.
Aceking is offline  
Old 04/30/2014, 21:59   #7


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
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!
Korvacs is offline  
Old 04/30/2014, 22:07   #8
 
Wolfy.'s Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
5165, tried something look what now :v :



when i try to change:



everything is wrong here.
Wolfy. is offline  
Old 04/30/2014, 22:15   #9
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Quote:
Originally Posted by Wolfy. View Post
5165, tried something look what now :v :



when i try to change:



everything is wrong here.
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.
Aceking is offline  
Old 04/30/2014, 22:20   #10
 
Wolfy.'s Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
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!

Wolfy. is offline  

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.