Aller au contenu

Photo

Things I never understood


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
MagicalWisps

MagicalWisps
  • Members
  • 2 messages

Over the years I've worked on this game I have learned a lot about how to do things, but I am still having trouble wrapping my head around certain issues.

 

I have successfully setup a PW world (Followed MarshalV's videos)

I have setup Haks (merged 2DAs)

So I am not a complete Noob.

I am not a good scripter, nor do I understand MYSQL databases (I use Lilac's scripting tool)

 

 

My questions are:

 

1. When a player tries to log on with someone else's account name, How do I stop them from being able to hijack?

 

2. What are a few key/cool things I need to do with the database? (I have it setup like Marshal V did in his videos)

 

3. Are there any good frameworks that I could build upon?

 

 

Thanks in advance,

 

Magical Wisps



#2
Psionic-Entity

Psionic-Entity
  • Members
  • 195 messages

1. The way I got around this was storing the CD key on character creation, then booting and logging if any other CD key ever tried logging in with that PC.

 

2. Off the top of my head, location saving and persistent quests are the two big advantages to using a DB.

 

3. HCR2 if you aren't using it has a very good overall setup.



#3
SPC_Berry

SPC_Berry
  • Members
  • 1 messages

 

 

1. The way I got around this was storing the CD key on character creation, then booting and logging if any other CD key ever tried logging in with that PC.

 Would you be kind enough to show me how to do the scripting to make this work?



#4
Psionic-Entity

Psionic-Entity
  • Members
  • 195 messages

 Would you be kind enough to show me how to do the scripting to make this work?

 

1. You need to have a database set up for your PW.

2. Pick a variable that will store a player's CD key, say PC_KEY.

3. On PC loaded (the module event script), add a line that gets this variable from database.

4. Add a line that gets the player's current public CD key. Basically this is a hash of their actual CD key down to eight characters.

5. If the variable is empty then add the CD key to the database as PC_KEY.

6. If the variable is not empty and disagrees with the public key, boot the player along with a message saying that they logged in with the wrong key.