Jump to content
  • 0

How to get events to run in sql database


Achmed

Question

I have tried to get events running in my sql database to remove destroyed vehicles, dead players and also set the stock level to 10 every morning at 9am.

 

creating the events is not a problem but they dont appear to be running.

 

Can someone tell me what i need to do to get them running? I am running a VIlayer server not dedicated so cant do bat files etc.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

How have you done this?

 

The epoch event system doesn't use the database at all (there is a hive call but its to get the current time from the system). That's not to say the mission file itself couldn't use the database in some way.

Link to comment
Share on other sites

  • 0

I use these to remove broken vehicles and update trader stock in Navicat, called at server restart using .\SQL\bin\mysql.exe --user=******* --password=******--host=127.0.0.1 --port=***** --database=dayz_epoch --execute="call pMain()"

 

Obviously you would have to edit that to suit your database parameters and if you can't access the startup file then this is of no use.

UPDATE `traders_data` SET qty=99 WHERE  qty<99
DELETE
    FROM object_data
    WHERE Damage = '1'

I call these both from a procedure called pMain, contents of which are

BEGIN


    CALL pCleanup();
    CALL refill;


END
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...