Difference between revisions of "Guilds"

From SWGANH Wiki
Jump to: navigation, search
Line 23: Line 23:
 
:*The server then creates the guild adding the guild to the database and generating a unique id for the guild. The server then creates a guild chat room. A system message is then sent to the player telling them they successfully created the guild. '''SERVER SENDS''' <u>DeltasMessage</u> with ''GILD3 vID4'' that inserts the guilds tag and id into the guild list for the server. '''SERVER SENDS''' <u>DeltasMessage</u> with ''CREO6 vID10'' that places the <tag> next to the player's name. '''SERVER SENDS''' chat room packets that puts the player into the guild chat. On the server side it sets full rights to this player as they are the guild creator.
 
:*The server then creates the guild adding the guild to the database and generating a unique id for the guild. The server then creates a guild chat room. A system message is then sent to the player telling them they successfully created the guild. '''SERVER SENDS''' <u>DeltasMessage</u> with ''GILD3 vID4'' that inserts the guilds tag and id into the guild list for the server. '''SERVER SENDS''' <u>DeltasMessage</u> with ''CREO6 vID10'' that places the <tag> next to the player's name. '''SERVER SENDS''' chat room packets that puts the player into the guild chat. On the server side it sets full rights to this player as they are the guild creator.
  
:*Player cli
+
 
  
 
'''Step3: Inviting members'''
 
'''Step3: Inviting members'''
  
:*Player brings up guild terminal's radial and sever checks to see if there are any sponsored members yet. If finds that there are none and returns the "create guild" radial. '''SERVER SENDS''' <u>ObjController 147h</u> with ''[http://paste.swganh.org/viewp.php?id=20070706003617-5864114147d0228ad16c0dcb317713de These Options]''. NOTE: The sponsored button is mission because no one has been sponsored yet.
+
:*Player brings up guild terminal's radial and sever checks to see if there are any sponsored members. It finds that there are none and returns the "create guild" radial. '''SERVER SENDS''' <u>ObjController 147h</u> with ''[http://paste.swganh.org/viewp.php?id=20070706003617-5864114147d0228ad16c0dcb317713de These Options]''. NOTE: The sponsored button is mission because no one has been sponsored yet.

Revision as of 23:41, 5 July 2007

A short guide from the packet perspective on to how to tie the many systems of the swg client together to achieve guilds.


Step1: The Setup

When each player zones into a region regardless if they are part of a guild or not they get the GILD 3. It contains a list of all the guild id and tags for every guild on the server. This packet can sometimes get very large but its used so that when someone has a guild tag displayed you see it. How this works is that when a player is a member of a guild there is a variable in the CREO6 that contains the id of the guild they belong too. It uses the information in the GILD3 to know what tag to display next to their name.


Step2: Creating the guild

  • Player brings up guild terminal's radial and sever checks to see if it has been associated with a guild yet. If finds that it has not and returns the "create guild" radial. SERVER SENDS ObjController 147h with OptionID 7(EXAMINE) and OptionID 185 (@guild:menu_create).
  • Player clicks on "create guild". CLIENT SENDS ObjectMenuSelectMessage with button id 185.
  • The SERVER SENDS SuiCreatePageMessage:Script.inputBox onGuildCreateNameResponse. This displays a small box to the player asking them to enter a name for their guild.
  • Player enters a name and presses the OK button. CLIENT SENDS SuiEventNotification with the window ID and the submitted name.
  • The server then quickly checks to make sure no other guilds exist with this name and that it doesn't contain any profanity or starwars faction names. Everything checks out and the SERVER SENDS SuiCreatePageMessage:Script.inputBox onGuildCreateAbbrevResponse. This displays a small box to the player asking them to enter a <tag> for their guild(max 5 characters).
  • Player enters a tag and presses the OK button. CLIENT SENDS SuiEventNotification with the window ID and the submitted tag.
  • The server then creates the guild adding the guild to the database and generating a unique id for the guild. The server then creates a guild chat room. A system message is then sent to the player telling them they successfully created the guild. SERVER SENDS DeltasMessage with GILD3 vID4 that inserts the guilds tag and id into the guild list for the server. SERVER SENDS DeltasMessage with CREO6 vID10 that places the <tag> next to the player's name. SERVER SENDS chat room packets that puts the player into the guild chat. On the server side it sets full rights to this player as they are the guild creator.


Step3: Inviting members

  • Player brings up guild terminal's radial and sever checks to see if there are any sponsored members. It finds that there are none and returns the "create guild" radial. SERVER SENDS ObjController 147h with These Options. NOTE: The sponsored button is mission because no one has been sponsored yet.