Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
I don't mean the kind where you can log in with more than 1 IP, or log in with multiple characters. The problem I'm having here is being able to log in with the same character, twice!
I know I could eliminate this problem by stopping people from logging in with the same IP, but I need more security over the login procedure, and having people logging in with the same character, is not a good thing...
So please help!
Thanks.
Just run a check if that name is already online.
Are you checking for the character or the account? What exactly did you do?
When do you call this?
Maybe check for multiple accounts rather than multiple characters?
Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
I call this in the "USECHAR" section of HandleData, as that's the first place it checks after it's send the details to the server.
Being a text-based game, having multiple characters from the same account isn't an issue, which is why I need to do this with characters. I know it can be done so it's pointless saying do it with accounts since that's not what I want to do lol. I want to stop characters with the same name logging into the server, that's all. I've attempted it myself and I couldn't get it working right.
If you are using mirage, you might have to rewrite a decent amount of code for this. I removed most of that code from my engine, but I "believe" that the way it loads the account and character that it will prevent multiple characters to even be on.
If I have time I might download MS again and see if I can help.
I think that you will need to change the AccountRec cause it often checks if the "account" is in game rather than the character. Also you may need to move much of the AccountRec information into the PlayerRec.
If I understand you correctly, you plan to allow someone to create an account and create multiple characters and log more than one on at the same time? Kinda like some of the muds out there that allow you to multi?
*Note: The way the other muds do it, is they don't have "accounts" and then characters under the accounts. Instead you just have a character. And if someone wishes to multi they create multiple characters. If you don't have the programming skills to rewrite the code so that a player can have 1 account and multiple characters on at the same time. You could easily just get rid of the multiple characters and account code. And just have it so you create a character, rather than create account and then create characters. This would leave you with more character files, but it would be easy to log multiple characters in.
*If I am incorrect about anything, I apologize.
Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
That's correct Shaded. But I do wish to keep the account feature. What I'm going to do after work is just have a quick look at how it precents multiple IP's/Accounts and try and work off that since I didn't look at it before.