Vehicles Spawning Fully Repaired

Jevans

New Member
Hi guys, i've been following the discussions on here for some time now, but never bothered making an account. But I'm having an issue now and I havent been able to find an answer in your discussions ( I may have missed it, but I haven't found one that I understand).

Basically, I'm managing a high-population server hosted my DayZ.st and people are always complaining that there arent enough vehicles, when I spawn in over 400 on every restart. Trouble being, that people always destroy the vehicles stupidly quickly. Is there a way to make the vehicles reset and respawn automatically (with full health and fuel) on every automated restart?

And if not, is there a way to make the vehicles that I manually spawn in with TSW spawn with full health and fuel? It currently takes me about 30 minutes to go through every vehicle in TSW and edit the damage and fuel to full.

Many thanks in advance to anyone that can help, I appreciate it!

Jack
 
jevans my brother this is going to change your life(I hope your sitting down):
Code:
update instance_vehicle
    set fuel=1, damage=0, parts='[]'
Run that query and in a matter of seconds every car on your map with be full refueled and repaired. If you are using the .st phpmyadmin simple open the table bliss_**** < your instance and select "SQL" paste that code above inside and press "GO". You will want to do this during a restart. I like to stop the server at restarts and spawn vehicles then repair them that way you know for sure they will all get in.

glhf

forgot to mention I do not think it is possible to do any of it automatically unless you can sweet talk .st into adding a .bat file
 
jevans my brother this is going to change your life(I hope your sitting down):
Code:
update instance_vehicle
    set fuel=1, damage=0, parts='[]'
Run that query and in a matter of seconds every car on your map with be full refueled and repaired. If you are using the .st phpmyadmin simple open the table bliss_**** < your instance and select "SQL" paste that code above inside and press "GO". You will want to do this during a restart. I like to stop the server at restarts and spawn vehicles then repair them that way you know for sure they will all get in.

glhf

forgot to mention I do not think it is possible to do any of it automatically unless you can sweet talk .st into adding a .bat file
Wow, didn't realise it was that simple.. Thanks!

So do I have to stop the server, run that query, then restart? Or can I just run the query at some point before the restart? Thanks again!
 
it is possible to run it while the server is running. it wont fix anything till rs and anything damaged prior will still be damaged as it will be over written.
 
Back
Top