AccountServer: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
AccountServer handles all inventory-related queries and reads processed payment information. PlaySpan is the original payment backend used before NCSoft shut down City of Heroes. | AccountServer handles all inventory-related queries and reads processed payment information. PlaySpan is the original payment backend used before NCSoft shut down City of Heroes. | ||
== Configuration == | |||
=== account_server.cfg === | |||
<nowiki> | |||
ShardName | |||
ShardName Paragon | |||
ShardId 1 | |||
Address 127.0.0.1 | |||
NoXferOut | |||
NoXferIn | |||
XferDestinations None | |||
ShardEnd | |||
PlayNCAdminWebPageSecretKey Paragon | |||
MtxEnvironment Paragon | |||
MtxSecretKey Paragon | |||
MtxIOThreads 1 | |||
SqlDbName cohacc | |||
SqlLogin "Driver={SQL Server Native Client 11.0};server=localhost;database=cohacc;trusted_connection=Yes;" | |||
CatalogTimeStampTestOffsetDays 0 | |||
clientAuthTimeout 1800 | |||
ShardXfersDayMemory 14 | |||
ShardXfersAllowedInMemory 0</nowiki> | |||
== Database Schema == | == Database Schema == |
Revision as of 19:57, 1 May 2019
AccountServer handles all inventory-related queries and reads processed payment information. PlaySpan is the original payment backend used before NCSoft shut down City of Heroes.
Configuration
account_server.cfg
ShardName ShardName Paragon ShardId 1 Address 127.0.0.1 NoXferOut NoXferIn XferDestinations None ShardEnd PlayNCAdminWebPageSecretKey Paragon MtxEnvironment Paragon MtxSecretKey Paragon MtxIOThreads 1 SqlDbName cohacc SqlLogin "Driver={SQL Server Native Client 11.0};server=localhost;database=cohacc;trusted_connection=Yes;" CatalogTimeStampTestOffsetDays 0 clientAuthTimeout 1800 ShardXfersDayMemory 14 ShardXfersAllowedInMemory 0
Database Schema
An SQL dump will be bundled with future releases of code. Until then, here you go.
Table Structures
Columns are nullable unless denoted by Primary Key or Non Nullable.
account
|
game_log
|
game_transactions
|
inventory
|
mtx_log
|
product
|
product_type
|
Stored Procedures
SP_add_game_transaction
SP_add_micro_transaction
SP_add_multi_game_transaction
SP_find_or_create_account
SP_read_unsaved_game_transactions
SP_revert_game_transaction
SP_save_game_transaction
SP_update_account
Table-Valued Parameters
TVP_game_transaction
Development Notes
[2:14 PM] Searge: nice, you can also get all sku by just changing some code, int AccountGetStoreProductCount2(AccountInventorySet* invSet, const AccountProduct* pProd, bool bActive) in AccountData.c could always return 1
[2:39 PM] Searge: @Pazaz the loyalty bits set by the client when you take all of them are set to 0xFFFFFFFF7FE00F000000000000000000 in the database