Hi I have a server I host on Vilayer and am trying to get the setDamageOnAge query to work in the data base.
I have placed down some test building and when I run the event
UPDATE `Object_DATA` SET `Damage`=0.2 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 1 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )
It does not seem to do anything. I can see the buildings in the database, but when the query is ran it affects 0 rows and the items remain @ 0 damage.
I have this set up on my local test server and it works fine. I am using Navicat lite
Can any one help me please?
PS. what is the difference between an "event" & a "query"?
Question
Mat43
Hi I have a server I host on Vilayer and am trying to get the setDamageOnAge query to work in the data base.
I have placed down some test building and when I run the event
It does not seem to do anything. I can see the buildings in the database, but when the query is ran it affects 0 rows and the items remain @ 0 damage.
I have this set up on my local test server and it works fine. I am using Navicat lite
Can any one help me please?
PS. what is the difference between an "event" & a "query"?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now