Jump to content
  • 0

Find Vehicles in database whose keys were lost


lorneagle

Question

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

  • 0

I'm not sure about your users, but mine store keys in safes and go pvp.. Your script would delete their vehicles which is a bad idea IMO :)

Unless you also check object_data table for existing keys.

 

If you go through the php files from nightmares hivetools you'll find the functions that you need to convert from integer to keycode and viceversa.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...