Sign in to follow this  
geekm0nkey

[solved] Adding days from creation check!

2 posts in this topic

OK, so i really like @kuplion's base protection script. Found here, but I wanted to add a check so that if the base/flag is older than XX days that the protection is lifted (to prevent static flags), even limiting base spawns and virtual garage, wasn't enough to just stop flags from being planted.  So, went digging through the code and discovered something. The database captures the date/time the flag was placed, But it's never called.

Edited by geekm0nkey

Share this post


Link to post
Share on other sites

Here are the changes I made to start getting this process working. All the overrides are working, but the end result is a blank result from the call to the database.. 1st, I made a change to the exile.ini to add the field for "created_at", I then added a reference to that change in the load databases script, (i switched the reference for 15/16), and lastly in the steal flag script I referenced the value by using getvariable, which only produces the "blank" which i specified as default in the event it doesn't pull the data.. So what did i do wrong? I even tried changing the field for call from just a number to say 16-string and 16-DateTime_ISO8601 with the same result.

https://hastebin.com/binaxucudo.cs
or
https://justpaste.it/5bc2j
or
https://ghostbin.com/paste/7bkwc

Edited by geekm0nkey
Some paste locations were acting up, so added others.

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.