sidarta

suricate seboso
Initiate
ServUO Version
Publish 57
Ultima Expansion
Time Of Legends
I’m setting up a small shard and would like to know how users could register through a registration page, collecting data such as email, name, and other necessary information to support and manage a potential shard.
 
The easiest and fastest way is to create a registration form on the website and store the data in a website or server side database.

When player is attempting to connect to a game, if ServUO doesn't find such an account, it accesses the database. If one exists, ServUO first creates it and then connects to the server.

However, you'll need to ensure database security on the server side. For example, restrict access to only those from the IP address where ServUO is located.
 
You can also serve a registration page directly from the shard itself; Spin up an HttpListener on a different port and have it serve a registration.html page from the local /web folder.

The listener can also handle form submissions for processing the user's input and creating the account - it's just a case of deserializing the input values and using them to create the account, with the Email property then being set on the newly created account object.

You'll need to push the registration through the same logic that auto account creation uses, to ensure that things like IP limits, bans, etc, are honoured properly.

When you have your page set up, simply use an <iframe> on your website to display the registration form from your shard's http://<IP>:<PORT>
 

Donations

Total amount
$80.00
Goal
$500.00

Shards

Back