Jump to content
  • 0

Help with Replenish stock and cleanup damaged vehicles!


Evention

Question

Hello

 

I have finally got my server setup and i thank you guys for taking your time in helping me. But there is one thing i need help with which is with the replenish stock and cleanup damaged vehicles. Where do i find this My.ini file i have found one in XAMPP which takes me to a word document is this the correct file.? And if it is how do i go about installing this because i'm new to doing epoch servers and i have only done normal dayz servers.

 

Cheers :)  

Replenish stock and cleanup damaged vehicles

http://dayzepoch.com/wiki/index.php?title=Server_Installation_Instructions_Extended

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You will going to have to add the events in your database.

 

For example execute this query to set up vehicle clean up once a day:

CREATE EVENT removeDamagedVehicles
    ON SCHEDULE EVERY 1 DAY
    COMMENT 'Removes damaged vehicles'
    DO
      DELETE FROM `object_data` WHERE Damage = 1; 

When you execute the following SQL you'll set up a event to restock the traders once a day when the stock of an item is zero.

CREATE EVENT updateStockDaily
    ON SCHEDULE EVERY 1 DAY
    COMMENT 'Updates out of stock vendors'
    DO
      UPDATE `traders_data` SET qty=10 WHERE qty=0 AND afile<>'trade_any_vehicle' AND afile<>'trade_any_boat'; 

Ofcourse you could make this code to run more than once a day.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...