CharMode
CCharMode char select, slot management, packets
| Address | Size | Name | Description |
|---|---|---|---|
| 0x00C9C360 | 883 | CCharMode__ConnectToMapServer | Initializes game state and sends CZ_ENTER2 (0x0436) packet to map server with account ID and auth credentials. |
| 0x00CAD530 | 3257 | CCharMode__OnDisconnect_ShowReason | Handles character server disconnect by reading reason code, disconnecting, and displaying localized error message via dialog. |
| 0x00CAE2B0 | 232 | CCharMode__SetHotkeySlotValue | Sets hotkey slot value in red-black tree; allocates new node if slot key doesn't exist, stores value at offset +0x14 |
| 0x00CAE3D0 | 318 | CCharMode__StoreCharData | Copies character data to global slot buffers (0 or 1) and dispatches UI update event 0x8f via vtable callback. |
| 0x00CAE510 | 580 | CCharMode__UpdateHotkeyIcons | Updates hotkey bar icon states by iterating red-black tree, skipping IDs 0x377-0x379, calling HandleEntitySpawn with bitmask-filtered enabled states. |
| 0x00CAE800 | 906 | CCharMode__InsertOrUpdateCharInfo | Inserts or updates character info in red-black tree map by char ID; allocates 0x218-byte node and copies stats/equipment/guild data from source struct. |
| 0x00CAEB90 | 506 | CCharMode__OnRankingList | Displays ranking leaderboard with 10 entries from packet, formats as ranked list with separator lines, shows player's own score. |
| 0x00CAEDC0 | 263 | CCharMode__OnMakeCharResult | Handles character creation response packet, stores character/account data on success (code 0) or displays error dialog for failure codes (2/3/4/default). |
| 0x00CAEED0 | 234 | CCharMode__OnMakeChar2Result | Handles character creation result for alternate classes; stores char data on success or displays error dialog based on result code. |
| 0x00CAEFE0 | 227 | CCharMode__OnDeleteCharResult | Processes character deletion server response: success stores IDs and opens window 0x113, error code 2 shows msg 0xbd7, else shows msg 0x996. |
| 0x00CAF0E0 | 561 | CItemOwner__ProcessItemListUpdate | Processes and validates items from inventory list, filtering by equipment type and adding valid items to shop/display structure. |
| 0x00CAF320 | 930 | CCharMode__OnCharSelectResponse | Processes character selection response packet, sets character option flags from packet bits 0-10, stores char ID, validates map restrictions. |
| 0x00CAF730 | 280 | CCharMode__OnGuildMemberLocations | Parses guild member location packet (0x14C), stores coordinates in vector, updates minimap markers via guild ID. |
| 0x00CAF890 | 234 | CCharMode__OnCharSelectSubAction | Handles character select screen sub-actions: sends account info packet 0x9ab, toggles shop/vending windows 0x10/0x119, or opens UI windows 0x11c/0x11e/0x158. |
| 0x00CAF9B0 | 334 | CCharMode__OnExpGainDisplay | Displays experience gain notifications with type-specific formatting and colors via UI message dialog. |
| 0x00CAFB10 | 348 | CCharMode__OnGuildNoticePacket | Processes ZC_GUILD_NOTICE packet; validates length, formats guild notice text, assigns to string for display. |
| 0x00CAFD00 | 3606 | CCharMode__OnChatMessage | Processes incoming chat messages, handles friend detection, whisper routing, and updates chat logs with optional window management. |
| 0x00CB0E00 | 509 | CCharMode__OnServerCharList | Processes character server list packet, populates linked-list entries indexed by server type with ID and population data. |
| 0x00CB1000 | 494 | CCharMode__OnMapChange | Processes map change packet: updates motion recorder state, sets map coordinates, loads RSW file, and logs connection info to PingLog.txt. |
| 0x00CB19F0 | 499 | CCharMode__OnCharRenameResult | Processes character rename result packet (0x82?), displays appropriate UI dialogs/messages based on result code (0-5), opens rename window on code 3. |
| 0x00CB1D50 | 812 | CCharMode__OnPartyMemberList | Processes party member list packet (type 0=offline, 1=online), parses member data, sorts online/offline lists, displays error messages via msgstringtable. |
| 0x00CB2700 | 567 | CCharMode__OnBuyingStoreList | Processes buying store list packet, populates item entries, updates UI windows (0xb1, 0xb2, 0xb3), sets active store flag |
| 0x00CB3F10 | 2431 | CCharMode__OnNotifyError | Handles incoming error/notification packets (type 0x00-0x73), maps error codes to message string IDs, displays UI dialogs with localized error messages. |
| 0x00CB4C20 | 463 | CCharMode__OnNpcSpawn_Simple | Parses simple NPC spawn packet, extracts GID/class/coords/direction/speed/body state, initializes entity struct, adds to object manager. |
| 0x00CB4DF0 | 511 | CCharMode__OnNpcSpawn_Moving | Processes NPC spawn packet with movement; handles entity creation/removal and initiates pathfinding to destination. |
| 0x00CB5800 | 545 | CCharMode__OnNpcSpawn_WithEquip | Processes NPC spawn packet with equipment data, extracts 5 accessory slots and state byte, initializes item table. |
| 0x00CB5B30 | 528 | CCharMode__OnNpcSpawn_WithEquip_v2 | Parses NPC/player spawn packet with equipment data (v2 layout), extracts position/appearance/items, initializes entity creation. |
| 0x00CB6280 | 748 | CCharMode__OnMailboxOpen | Processes mailbox open packet; initializes mail list UI with headers, timestamps, item names, and sends notification event. |
| 0x00CB6570 | 746 | CCharMode__OnMailboxOpen_v2 | Processes mailbox packet (v2 layout), parses mail entries with timestamps, validates item IDs, updates quest list on success. |
| 0x00CB68A0 | 481 | CCharMode__OnScriptMessage | Processes incoming NPC script message packet, validates size, filters text, checks chat filter config 0x94, displays message with color 0xff9dff. |
| 0x00CC1150 | 1167 | CCharMode__OnCharListFull | Parses character list packet (0x29-byte entries), initializes equipment, extracts stats/position, handles guild data |
| 0x00D1F080 | 603 | CCharMode__HandleCharServerError | Handles character server error responses (codes 0-10), displays localized error messages via UI modal dialogs, and triggers character mode callbacks. |
| 0x00D1F4E0 | 121 | CCharMode__SendKeepAlivePacket | Sends packet 0x187 keep-alive every 12s when CCharMode is in states 7/8/0xB/0x13, includes g_accountId. |
| 0x00D1F560 | 390 | CCharMode__ResetCharData | Clears CCharMode character data: deletes tree structure, zeroes status fields, and deallocates nested string vectors. |
| 0x00D1F710 | 416 | CCharMode__SetupMapConnection | Initializes map server connection with region-specific IP/port overrides for Thai (serviceType 1/5) and Indonesian (serviceType 6) servers based on hotkey state. |
| 0x00D1FCE0 | 103 | CCharMode__GetMaxCharSlotIndex | Scans character slots to find the maximum slot index value, returning 0xFFFFFFFF if no characters exist or max index found. |
| 0x00D1FDC0 | 422 | CCharMode__RemoveCharSlot | Removes a character slot from the character selection list by compacting the character array and decrementing the slot counter. |
| 0x00D1FF70 | 169 | CCharMode__ProcessAccountInfo | Processes character server account info packet: extracts slot counts, clears character data array (0x2E7C bytes at +0x4068), stores server IP/port with byte-order conversion. |
| 0x00D20020 | 119 | CCharMode__HandleAccountInfo | Parses account info packet (0x82), extracts character slots and connection data, forwards to ProcessAccountInfo handler. |
| 0x00D20280 | 230 | CCharMode__AddCharSlot | Adds a character slot to the character selection list, copying 175-byte character data and updating slot counter and UI state. |
| 0x00D20570 | 61 | CCharMode__HandleCharRenameResult | Displays success message (0x7e1) in modal dialog when character rename succeeds (packet param+4 == 1). |
| 0x00D205B0 | 61 | CCharMode__HandleCharRenameResult2 | Handles character rename success result by displaying modal dialog with message 0x7E1 when rename packet succeeds. |
| 0x00D20A70 | 177 | CCharMode__HandleCharCreateResult | Processes character creation result packet (0x76F success/0x770 failure), displays modal dialog with appropriate message, plays sound 199, sets state 7 on failure. |
| 0x00D20B30 | 83 | CCharMode__HandleBanInfoList | Parses ban info list from packet into global buffer, storing up to N 0x18-byte ban records. |
| 0x00D20B90 | 282 | CCharMode__HandleCharListPacket | Parses character list packet, extracts server IP/port, deserializes character data (175 bytes each), validates bounds, sets mode to 0x13. |
| 0x00D20D80 | 67 | CCharMode__SendKeepAlive | Sends 0x9A1 keep-alive packets N times (N = param_1+2 count) via CConnection to maintain session. |
| 0x00D21490 | 174 | CCharMode__HandleCharDeleteCancelResult | Handles character deletion cancellation response: displays success (msg 0x762) or failure (msg 0x766) dialog, sets state 7 on failure. |
| 0x00D21540 | 264 | CCharMode__HandleCharDeleteResult | Processes character deletion result packet (cases 0-3), displays modal dialog with appropriate message, plays sound 199, sets state 7 on errors. |
| 0x00D21660 | 311 | CCharMode__HandleCharDeleteResult2 | Processes character deletion server response (packet 0x82), displays success/error dialogs, sets state to 7 on failure |
| 0x00D217B0 | 200 | CCharMode__HandleCharMoveResult | Processes character slot move server response (0x76D/0x76E messages); opens dialog and handles success/failure states. |
| 0x00D21880 | 442 | CCharMode__HandleMapStateList | Processes map state list packet (0x14-byte entries), collects entries with first field==0 into vector, sets state 0x1E on success or shows error 0x713 and state 7. |
| 0x00D21A40 | 186 | CCharMode__SetSelectedCharName | Copies character name from selected character data into output string via STL string assignment. |
| 0x00D21B40 | 121 | CCharMode__HandlePincodeStateResult | Displays pincode state result dialog (create/enter/change) based on packet byte, sets character mode state to 7. |
| 0x00D21BC0 | 223 | CCharMode__HandleDisconnectReason | Disconnects from char server and displays modal dialog with localized error message based on disconnect reason code (ban/full/expired/trade ban). |
| 0x00D21D30 | 133 | CCharMode__HandleCharSelectError | Displays character selection error dialog by mapping packet error code to localized message string, then sets mode state to 7. |
| 0x00D21DF0 | 252 | CCharMode__HandlePincodeError | Displays pincode error dialog (6 error codes mapped to messages 0x546-0x554), then sets client state based on connection status. |
| 0x00D224C0 | 114 | CCharMode__UpdateCharSlotData | Updates character slot data in UI window manager by copying character info and formatting display name, sets mode state to 7. |
No function here matches that. Search all 43,836 functions instead.