Siege Time.

08/07/2017 07:20 Farius~#1
I was looking for a good time post on how to change the start time of siege and the truth is that none clearly specifies how to change the siege start time.
Has anyone here successfully changed the siege time? At this moment my server has the siege every 2 weeks every Sunday at 21:00 at night.
And I want to change it every Saturday night, that is to say every week a siege battle. Any idea how to achieve this ?. Because I have seen that some have changed the time of siege but not of ritual. And have no idea how to change the waiting time to enable the ritual.
08/07/2017 21:03 Underfisk#2
Well get siege script, and when you see the function getting the params and the time +21000 for example, you'll need to make the math counts for the necessary time till next siege. That's how it works, we dont set the "human" days like monday,etc :)
08/08/2017 11:54 Farius~#3
Quote:
Originally Posted by Underfisk View Post
Well get siege script, and when you see the function getting the params and the time +21000 for example, you'll need to make the math counts for the necessary time till next siege. That's how it works, we dont set the "human" days like monday,etc :)

Already this I feel and I made the test in my test server and the date does not change, it is still the same date, I do not know if I am trying something wrong, but the first siege battle begins at 1 in the morning and the rest begins at 21 hours, but what I want to change is not the time, I want to change the day, I want to put it to be every weekend, not every two weeks as it comes by default.
08/08/2017 13:40 [DEV]Dekaron#4
look closer at the script LoL

08/08/2017 14:02 Underfisk#5
Well that one is already made with 3 ways because the guy who did he script made the necessary math, but if you wanna do a custom one you'll need to do it.
~Farius it will take your system date yes as default so if you increment something there's a function which use your actual date + the X new. I'm writing on phone but i'm pretty sure you can do it easily
08/08/2017 15:05 Farius~#6
@[Only registered and activated users can see links. Click Here To Register...] that script is a shit.


i found this on FN_GetSiegeStartBinTime:
[Only registered and activated users can see links. Click Here To Register...]

maybe If I replace the code with this code, should it work?

SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 7-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'
08/08/2017 15:38 [DEV]Dekaron#7
i setup siege to this

-Once Week every Sunday-//

SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 8-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

and all works fine

BTW about script i just want to show what you need change
08/08/2017 16:42 Farius~#8
Quote:
Originally Posted by [DEV]Dekaron View Post
i setup siege to this

-Once Week every Sunday-//

SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 8-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

and all works fine

BTW about script i just want to show what you need change
u change it manually on the FN or u use the script?.
08/08/2017 17:04 [DEV]Dekaron#9
i use script on clean database
08/08/2017 21:31 Underfisk#10
~Farius take a look in the script, it does * the time in seconds so just make the math process and see what are the params necessary to get your exact date. Otherwise do as dev dekaron is saying.
08/09/2017 19:08 Farius~#11
Already, for change siege time no need use script only change this number on FN_GetSiegeStartBinTime

Quote:
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 8-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

no need use any script :)

#Solved.
04/02/2022 16:50 egameol#12
Quote:
Originally Posted by Farius~ View Post
Already, for change siege time no need use script only change this number on FN_GetSiegeStartBinTime




no need use any script :)

#Solved.
I modified the system time to display, but it is not accurate. How can I modify it to normal time? thank you