01-06-2006, 09:44 PM
Originally posted by Dragoons Master
Very simple tutorial. I was testing my server on a P2(455Mhz) and it was veery lagued, but thats not the point. When I tried to create an account from my website account creation, it taked sooo long creating it, so I maded a veeery simple modification, and now it creates the account praticly instantly.
It just saves the player you are using(PlayerNum), so do this:
ONLY SERVER SIDE
modDatabase:
Sub SavePlayer:
Replace:
with:
and replace:
with:
This will make the server saves only the char you had played, and on the account creation, it will save only the account information(3 or 4 lines) xD
Simple and usefull.
Very simple tutorial. I was testing my server on a P2(455Mhz) and it was veery lagued, but thats not the point. When I tried to create an account from my website account creation, it taked sooo long creating it, so I maded a veeery simple modification, and now it creates the account praticly instantly.
It just saves the player you are using(PlayerNum), so do this:
ONLY SERVER SIDE
modDatabase:
Sub SavePlayer:
Replace:
Code:
For I = 1 To MAX_CHARS
with:
Code:
For I = 1 To MAX_CHARS
If Player(Index).CharNum = I Then
Code:
Next I
Code:
End If
Next I
This will make the server saves only the char you had played, and on the account creation, it will save only the account information(3 or 4 lines) xD
Simple and usefull.