Skip to content

Latest commit

 

History

History
71 lines (60 loc) · 5.24 KB

File metadata and controls

71 lines (60 loc) · 5.24 KB
RealmCrafter: Community Edition Documentation

Packets.bb

This module contains the following constants:


P_... (constant)

This list of constants gives IDs for each type of network packet sent or received within the engine. Packet uses are as follows:

  • P_CreateAccount - Request from the client to create a new account
  • P_VerifyAccount - Request from the client to verify an account username/password and return available characters
  • P_FetchCharacter - Request from the client to retrieve full information for a particular character
  • P_CreateCharacter - Request from the client to create a new character
  • P_DeleteCharacter - Request from the client to delete an existing character
  • P_ChangePassword - Request from the client to change the password on an account (not implemented)
  • P_FetchActors - Request from the client to retrieve details of all actors in the game (also retrieves items etc.)
  • P_FetchItems - Request from the client to retrieve details of all items in the game (unused)
  • P_ChangeArea - Request from the client to move to a different zone
  • P_FetchUpdateFiles - Request from the client for a list of the latest game data files
  • P_NewActor - Sent to the client whenever a new actor instance enters the zone
  • P_StartGame - Request from the client to enter the game with a specified character
  • P_ActorGone - Sent to the client whenever an actor instance leaves the zone
  • P_StandardUpdate - Standard actor instance update packet, sent in both directions
  • P_InventoryUpdate - Item added to/removed from inventory, or being picked up/dropped, sent in both directions
  • P_ChatMessage - Sent to the client to display chat text, usually either from another player or a script
  • P_WeatherChange - Sent to the client whenever the current weather for the zone changes
  • P_AttackActor - Sent to the server to request an attack against a target, or to the client to display an attack between any two actor instances
  • P_ActorDead - Sent to the client when an actor dies but does not leave the zone (only used for NPC death)
  • P_RightClick - Sent to the server when the player attempts to interact with an actor instance
  • P_Dialog - Dialog creation/deletion/update instruction sent to the client, or a reply sent back to the server
  • P_StatUpdate - Sent to the client with a new value for one of the player's attributes
  • P_QuestLog - Sent to the client when the player's quest log is updated
  • P_GoldChange - Sent to the client to update the player's money
  • P_NameChange - Sent to the client to update any character's name
  • P_KnownSpellUpdate - Sent to the client when the player learns or loses an ability
  • P_SpellUpdate - Sent to the server to request memorisation or firing of an ability
  • P_CreateEmitter - Sent to the client to create an emitter, usually from a script
  • P_Sound - Sent to the client to play a sound, usually from a script
  • P_AnimateActor - Sent to the client to play an animation on any character
  • P_ActionBarUpdate - Sent to the client at login with the current action bar contents, and to the server when they change during play
  • P_XPUpdate - Sent to the client when the player's XP level changes
  • P_ScreenFlash - Sent to the client to display a fullscreen effect
  • P_Music - Sent to the client to play a music file, usually from a script
  • P_OpenTrading - Sent to the client to initiate trade mode, and back to the server to signal completion
  • P_ActorEffect - Sent to the client when an actor effect is added, removed or updated
  • P_Projectile - Sent to the client when a new projectile is created
  • P_PartyUpdate - Sent to the client when the members of the player's party change
  • P_AppearanceUpdate - Sent to the client when a character changes clothes, face etc.
  • P_CloseTrading - Sent to the client when trading mode is completed (player-player trading)
  • P_UpdateTrading - Sent to the client when trading mode is updated (player-player trading)
  • P_SelectScenery - Sent to the server to request 'trading' with an ownable scenery object
  • P_ItemScript - Sent to the server when a player attempts to use an item instance
  • P_EatItem - Sent to the server when a player attempts to eat an item instance
  • P_ItemHealth - Sent to the client when the health of an item instance changes
  • P_Jump - Sent to the server when the player jumps, and from the server to all clients when any character in the zone jumps
  • P_Dismount - Sent to the server to request to dismount from a rideable actor instance
  • P_FloatingNumber - Sent to the client to create a new ClientCombat->FloatingNumber
  • P_RepositionActor - Sent to the client when an actor teleports to a new spot, usually from a script
  • P_Speech - Sent to the client to play an actor speech sound effect
  • P_ProgressBar - Sent to the client when a progress bar is created, deleted or updated
  • P_BubbleMessage - Sent to the client to create a new Interface->Bubble
  • P_ScriptInput - Sent to the client when a text input dialog is created, and back to the server with the player's text