eq2go/old/LoginServer/login_opcodes.hpp
2025-08-06 19:00:30 -05:00

53 lines
2.8 KiB
C++

// Copyright (C) 2007 EQ2EMulator Development Team, GPL License
#pragma once
// Core login and session management opcodes
#define OP_Login2 0x0200 // Primary login authentication
#define OP_GetLoginInfo 0x0300 // Request login information from client
#define OP_LoginInfo 0x0100 // Response with login details
#define OP_SessionId 0x0900 // Session identifier assignment
#define OP_SessionKey 0x4700 // Session key exchange
#define OP_Disconnect 0x0500 // Connection termination
#define OP_AllFinish 0x0500 // Process completion acknowledgment
#define OP_Ack5 0x1500 // Generic acknowledgment packet
// Server list and status management
#define OP_SendServersFragment 0x0D00 // Fragment of server list data
#define OP_ServerList 0x4600 // Complete server list
#define OP_RequestServerStatus 0x4800 // Request current server status
#define OP_SendServerStatus 0x4A00 // Response with server status
#define OP_Version 0x5900 // Client/server version verification
// Chat system opcodes
#define OP_Chat_ChannelList 0x0600 // Available chat channels
#define OP_Chat_JoinChannel 0x0700 // Join a chat channel
#define OP_Chat_PartChannel 0x0800 // Leave a chat channel
#define OP_Chat_ChannelMessage 0x0930 // Message to channel
#define OP_Chat_Tell 0x0a00 // Private message
#define OP_Chat_SysMsg 0x0b00 // System message
#define OP_Chat_CreateChannel 0x0c00 // Create new chat channel
#define OP_Chat_ChangeChannel 0x0d00 // Modify channel settings
#define OP_Chat_DeleteChannel 0x0e00 // Remove chat channel
#define OP_Chat_UserList 0x1000 // Users in channel
#define OP_Chat_ChannelWelcome 0x2400 // Welcome message for channel
#define OP_Chat_PopupMakeWindow 0x3000 // Create popup chat window
#define OP_Chat_GuildsList 0x5500 // Available guilds list
#define OP_Chat_GuildEdit 0x5700 // Guild modification
// Account registration and management
#define OP_RegisterAccount 0x2300 // New account creation
#define OP_Reg_GetPricing 0x1a00 // Get pricing for new account signup
//#define OP_Reg_SendPricing 0x0400 // Legacy pricing send (unused)
#define OP_Reg_SendPricing 0x1b00 // Send pricing information
#define OP_Reg_GetPricing2 0x4400 // Get pricing for re-registration
#define OP_Reg_ChangeAcctLogin 0x5100 // Change account login credentials
#define OP_ChangePassword 0x4500 // Password modification
#define OP_LoginBanner 0x5200 // Login banner display
// Billing and subscription management
#define OP_BillingInfoAccepted 0x3300 // Billing information accepted
#define OP_CheckGameCardValid 0x3400 // Validate game card
#define OP_GameCardTimeLeft 0x3600 // Remaining game card time
#define OP_AccountExpired 0x4200 // Account expiration notification
#define OP_RenewAccountBillingInfo 0x7a00 // Billing renewal information