In order to keep the object_data table of my server clean I want to write a script that removes locked vehicles from the database if the corresponding key was lost.
My idea ist to scan the Inventory of objects (object_data) and alive survivors (character_data) for keys.
So the key looks like this: ItemKeyBlack2352
Now my question is: How do I establish the link between an entry in object_data (the vehicle) and the key. Is it some kind of hash on objectID? What does the Integer value appended to ItemKeyBlack refer to?
Question
lorneagle
Hey everyone
In order to keep the object_data table of my server clean I want to write a script that removes locked vehicles from the database if the corresponding key was lost.
My idea ist to scan the Inventory of objects (object_data) and alive survivors (character_data) for keys.
So the key looks like this: ItemKeyBlack2352
Now my question is: How do I establish the link between an entry in object_data (the vehicle) and the key. Is it some kind of hash on objectID? What does the Integer value appended to ItemKeyBlack refer to?
Can anyone help me out?
Thank you so much
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now