Jump to content
  • 0

Wiping player items after x days


wangtangnoodle

Question

Hi, still fairly new to all of this.

Does anyone know how I could set up an event in Navicat to wipe all the items a player has put into the database, if for example they haven't logged in for 14 days?

Got server cleanup methods in place already but the number of items is still rocketing, so this method seems to be the best bet seeing as all of the players are on every day, or every two.

Thanks in advance.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Yes, built base parts, also safes and owned vehicles.

On a side note, it'd be great to have a similar code to use to make owned cars unlocked after x days of them not being manually unlocked by the owner(s). But this isn't needed half as much as the above. Thanks.

Link to comment
Share on other sites

  • 0

If you are using Heidi SQL

 

I use this syntax

 

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

 

Add this by right clicking your epoch DB and choosing Create New and then event.

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