Achmed Posted July 5, 2013 Report Share Posted July 5, 2013 How are the vehicle keys done in the database? I have a player who suffered a glitch and died from it loosing his keys. Im wanting to see about adding the key back in the database but cant work out how the number is related to the vehicle Link to comment Share on other sites More sharing options...
Eegore Posted July 5, 2013 Report Share Posted July 5, 2013 Its waaay easier to just put the gold into their inventory and buy a new one. Link to comment Share on other sites More sharing options...
Nox Posted July 5, 2013 Report Share Posted July 5, 2013 in player inventory But you can generate it with http://dayzepoch.com/forum/index.php?/topic/338-privatehivetools-php/ Link to comment Share on other sites More sharing options...
Achmed Posted July 5, 2013 Author Report Share Posted July 5, 2013 i know its easyier to give them the gold and it can be done with the tools but if i wanted to do it with out using them tools how would i do it ;) Link to comment Share on other sites More sharing options...
fr1nk Posted July 5, 2013 Report Share Posted July 5, 2013 Isn't the 4 digits at the end of the key classname just the character ID the vehicle was purchased with? Link to comment Share on other sites More sharing options...
Achmed Posted July 5, 2013 Author Report Share Posted July 5, 2013 Isn't the 4 digits at the end of the key classname just the character ID the vehicle was purchased with? no :( if it was you would only need 1 key for all the vehicles you buy Link to comment Share on other sites More sharing options...
fr1nk Posted July 5, 2013 Report Share Posted July 5, 2013 no :( if it was you would only need 1 key for all the vehicles you buy Ah ok. See, this is why they don't let me learn how to code. I'd probably try to write a "hello world" script and end up formatting the hard drive :lol: MALUK3N and Achmed 2 Link to comment Share on other sites More sharing options...
Sinsaver Posted August 9, 2013 Report Share Posted August 9, 2013 You're better as a moderator to turn off the keys all together and rebind the vehicles to the player guid by commenting out the key process in the self fnc sqf. If you decide to keep the keys it's easier and smarter to bind the player uid to the vehicle than to start handing out gold. I got 5 requests a day to replace keys cause they "lost" it. Moved to uid binding at purchase and nothing...so nice Link to comment Share on other sites More sharing options...
evilhomer2 Posted August 9, 2013 Report Share Posted August 9, 2013 how would you go about binding the player UID to vehicles and removing the keys? im sick of working out what one of my 5 yellow keys belong to what vehicle. im a complete noob at this so i wouldnt really know what i am doing but i have managed to do things if i have the correct instructions in front of me Link to comment Share on other sites More sharing options...
269091 Posted August 27, 2013 Report Share Posted August 27, 2013 Not sure if its still of interest - but here is the way to recover a lost key: 1. Go into MySQL database and look up the vehicle id. Table is Object_DATA, field is charcterID 2. Search for that ID in the attached key definition list. So you find out the key id connected to that respective character ID. (You can get the list HERE) 3. Place the respective key in the respective players inventory via MySQL character_DATA table. Example: Character ID of vehicle is 8126. When you look up that in the list you see that a yellow key with the ID "ItemKeyYellow626" is tied to character ID 8126. Place that key in the players inventory and that was it. Doesn't solve the problem of knowing which of my yellow keys I will have to use for a certain vehicle though. Would be better if the key ID (i.e. 626) or the respective vehicle ID (i.e. 8126), ideally together with the vehicles name (i.e. SUV Blue) would be displayed with the key in inventory. But I am sure that problem will be adressed by the developers sooner or later ;-) Link to comment Share on other sites More sharing options...
Cal-Dirty Weasel Posted August 27, 2013 Report Share Posted August 27, 2013 As a service to our regular players we have offered to consolidate their keys in the database. They identify all their owned vehicles, we isolate the Vehicle ID of one of their keys, then change all of their owned vehicles to that one Vehicle ID. Done and done, one key to open all of their vehicles! I tell them to make multiple copies of that key and put them in their safe, as I won't replace lost keys anymore. If they do buy a new vehicle, they shoot me an email and I switch that vehicle as well. It has actually reduced the amount of work my admins do since implementing this system. Note: You do need a restart of the server for it to take effect. Bags2247 and Gimmic 2 Link to comment Share on other sites More sharing options...
Snstr86 Posted August 27, 2013 Report Share Posted August 27, 2013 I use this when a player needs a key made http://privatehivetools.n8m4re.de/carkey.php Link to comment Share on other sites More sharing options...
Firefly Posted August 27, 2013 Report Share Posted August 27, 2013 Anyone else having issues with keys just going missing off your tool belt? This was reported to me on the server I am an admin on but had never happened to me so thought they just dropped it. Unfortunately my LAV 25 key just disappeared on my own server. I was wondering if the multiple logging out I was doing caused it. Usually we don't replace keys or gold for vehicles but ask people to use the keymaker. Link to comment Share on other sites More sharing options...
Eisaak Posted September 8, 2013 Report Share Posted September 8, 2013 Firefly, Let me ask you this. Are you using dayz.st as your hosting company? I can't speak for all but when you use dayz.st's map admin tool. If you click on the player and add items to the inventory screen it will delete any items it doesn't understand. Crowbar, Masterlock kit, and all keys from your tool-belt. It took me several lost crowbars and a few missing keys to figure this out. If you are using this tool to add weapon, ammo, food, and supplies, simply place all the "un-registered" items listed above into your backpack before using the dayz.st map tool. As a general rule, if you see a question mark in the inventory list, it means the editor doesn't understand it and it will delete it on save. Eisaak Link to comment Share on other sites More sharing options...
PetuniaEpoch Posted September 26, 2013 Report Share Posted September 26, 2013 Hey :) Following on from your post, how possible would it be to keep the keys, but exempt the vehicle owner from needing one? - This way they can give out keys to their friends, but don't need one themselves. You're better as a moderator to turn off the keys all together and rebind the vehicles to the player guid by commenting out the key process in the self fnc sqf. If you decide to keep the keys it's easier and smarter to bind the player uid to the vehicle than to start handing out gold. I got 5 requests a day to replace keys cause they "lost" it. Moved to uid binding at purchase and nothing...so nice Link to comment Share on other sites More sharing options...
Coco-Nuts Posted November 17, 2013 Report Share Posted November 17, 2013 Hello I got a problem with the keys.... In fact sometimes, after un restart, the players can't open their cars with the right key... I mean the key doesn't work after a restart... So I have to unlock them or made a new key... Someone can help me ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now