Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 04:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Siege Change date and time.

Discussion on Siege Change date and time. within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
Lightbulb Manually change Siege Battle date and time.

Ok lets see what we can do:

With this you no need use any scripts all what you need to do is follow this steps.

Change Siege Ritual day and time
1) go to MSSQL database character -> Programmability
__a) expand Function
__b) expand Scalar-valued Functions

Go to dbo.FN.GetDungeonRegistTime (click right mouse button and select Modify)
Here we can change when we can start Siege Ritual -8 is how many days before we can start Siege Ritual 17:00:00 its hour


After change press Execute or press F5

Change Date and time for Siege Battle
2) -||-
__a) -||-
__b) Press right mouse button on dbo.GetSiegeStartBinTime and select Modify



After change press Execute or press F5

Now run your server login to your account with GM character.
use command /gm siegestart now and then use command /gm siegeend now



For Sunday start:

USE [CHARACTER]
GO
/****** Object: UserDefinedFunction [dbo].[FN_GetSiegeStartBinTime] Script Date: 25.10.2020 01:31:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/************************************************** ****************************
이 름 : dbo.FN_GetSiegeStartBinTime
설 명 : 다음 공성전 시작일자를 반환한다.
예 제 : select dbo.FN_GetSiegeStartTime --//반환값 : 0x23E52D6C
수정내역:
Ver Date Author Description
--------- ---------- --------------- -----------------------------------
1.0 2006-05-05 Han Ji Wook 1. 초기생성
1.1 2006-05-11 Han Ji Wook 1. 다음공성전 시작시간 변경 >> 2주후 일요일
1.2 2009-12-22 Park Chanik 1. 공성 2010년 에러 관련 변경
************************************************** ****************************/
ALTER FUNCTION [dbo].[FN_GetSiegeStartBinTime]
(
@i_GetDate DATETIME
) RETURNS VARBINARY(4)
AS
BEGIN
DECLARE @v_siege_start_time VARBINARY(4)
DECLARE @v_siege_start_date VARCHAR(14)
--// 다음공성전 시작시간 Default Setting : 일요일 9시
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 8-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

-- 2009년 12월 22일 변경
-- CAST(SUBSTRING(@v_siege_start_date,4,1) AS INT)* 100000000 ---> CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT)* 100000000
SELECT @v_siege_start_time = CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT) * 100000000
+ CAST(SUBSTRING(@v_siege_start_date,5,2) AS INT) * 1000000
+ CAST(SUBSTRING(@v_siege_start_date,7,2) AS INT) * 10000
+ CAST(SUBSTRING(@v_siege_start_date,9,2) AS INT) * 100
+ CAST(SUBSTRING(@v_siege_start_date,11,2) AS INT)

IF DATALENGTH(@v_siege_start_time) <> 4
BEGIN
SELECT @v_siege_start_time = 0x00000000
END

RETURN @v_siege_start_time
END


For Saturday:

USE [CHARACTER]
GO
/****** Object: UserDefinedFunction [dbo].[FN_GetSiegeStartBinTime] Script Date: 25.10.2020 01:31:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/************************************************** ****************************
이 름 : dbo.FN_GetSiegeStartBinTime
설 명 : 다음 공성전 시작일자를 반환한다.
예 제 : select dbo.FN_GetSiegeStartTime --//반환값 : 0x23E52D6C
수정내역:
Ver Date Author Description
--------- ---------- --------------- -----------------------------------
1.0 2006-05-05 Han Ji Wook 1. 초기생성
1.1 2006-05-11 Han Ji Wook 1. 다음공성전 시작시간 변경 >> 2주후 일요일
1.2 2009-12-22 Park Chanik 1. 공성 2010년 에러 관련 변경
************************************************** ****************************/
ALTER FUNCTION [dbo].[FN_GetSiegeStartBinTime]
(
@i_GetDate DATETIME
) RETURNS VARBINARY(4)
AS
BEGIN
DECLARE @v_siege_start_time VARBINARY(4)
DECLARE @v_siege_start_date VARCHAR(14)
--// 다음공성전 시작시간 Default Setting : 일요일 9시
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 7-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

-- 2009년 12월 22일 변경
-- CAST(SUBSTRING(@v_siege_start_date,4,1) AS INT)* 100000000 ---> CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT)* 100000000
SELECT @v_siege_start_time = CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT) * 100000000
+ CAST(SUBSTRING(@v_siege_start_date,5,2) AS INT) * 1000000
+ CAST(SUBSTRING(@v_siege_start_date,7,2) AS INT) * 10000
+ CAST(SUBSTRING(@v_siege_start_date,9,2) AS INT) * 100
+ CAST(SUBSTRING(@v_siege_start_date,11,2) AS INT)

IF DATALENGTH(@v_siege_start_time) <> 4
BEGIN
SELECT @v_siege_start_time = 0x00000000
END

RETURN @v_siege_start_time
END


8 - Sunday
7 - Saturday
6 - Friday
5 - Thursday
4 - Wednesday
3 - Tuesday
2 - Monday
Attached Images
File Type: png Desktop 24-10-2020 18-28-41-839.png (1.82 MB, 370 views)
[DEV]Dekaron is offline  
Thanks
5 Users
Old 10/25/2020, 19:10   #2
 
nemesidevmv's Avatar
 
elite*gold: 0
Join Date: Feb 2016
Posts: 217
Received Thanks: 58
thanks for the post
nemesidevmv is offline  
Old 10/25/2020, 19:48   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
Quote:
Originally Posted by nemesidevmv View Post
thanks for the post
no problem man.
[DEV]Dekaron is offline  
Old 11/07/2020, 18:05   #4
 
elite*gold: 0
Join Date: Aug 2020
Posts: 41
Received Thanks: 0
Quote:
Originally Posted by [DEV]Dekaron View Post
Ok lets see what we can do:

With this you no need use any scripts all what you need to do is follow this steps.

Change Siege Ritual day and time
1) go to MSSQL database character -> Programmability
__a) expand Function
__b) expand Scalar-valued Functions

Go to dbo.FN.GetDungeonRegistTime (click right mouse button and select Modify)
Here we can change when we can start Siege Ritual -8 is how many days before we can start Siege Ritual 17:00:00 its hour


After change press Execute or press F5

Change Date and time for Siege Battle
2) -||-
__a) -||-
__b) Press right mouse button on dbo.GetSiegeStartBinTime and select Modify



After change press Execute or press F5

Now run your server login to your account with GM character.
use command /gm siegestart now and then use command /gm siegeend now

go to Leonhart and Check Siege Information


For Sunday start:

USE [CHARACTER]
GO
/****** Object: UserDefinedFunction [dbo].[FN_GetSiegeStartBinTime] Script Date: 25.10.2020 01:31:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/************************************************** ****************************
이 름 : dbo.FN_GetSiegeStartBinTime
설 명 : 다음 공성전 시작일자를 반환한다.
예 제 : select dbo.FN_GetSiegeStartTime --//반환값 : 0x23E52D6C
수정내역:
Ver Date Author Description
--------- ---------- --------------- -----------------------------------
1.0 2006-05-05 Han Ji Wook 1. 초기생성
1.1 2006-05-11 Han Ji Wook 1. 다음공성전 시작시간 변경 >> 2주후 일요일
1.2 2009-12-22 Park Chanik 1. 공성 2010년 에러 관련 변경
************************************************** ****************************/
ALTER FUNCTION [dbo].[FN_GetSiegeStartBinTime]
(
@i_GetDate DATETIME
) RETURNS VARBINARY(4)
AS
BEGIN
DECLARE @v_siege_start_time VARBINARY(4)
DECLARE @v_siege_start_date VARCHAR(14)
--// 다음공성전 시작시간 Default Setting : 일요일 9시
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 8-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

-- 2009년 12월 22일 변경
-- CAST(SUBSTRING(@v_siege_start_date,4,1) AS INT)* 100000000 ---> CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT)* 100000000
SELECT @v_siege_start_time = CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT) * 100000000
+ CAST(SUBSTRING(@v_siege_start_date,5,2) AS INT) * 1000000
+ CAST(SUBSTRING(@v_siege_start_date,7,2) AS INT) * 10000
+ CAST(SUBSTRING(@v_siege_start_date,9,2) AS INT) * 100
+ CAST(SUBSTRING(@v_siege_start_date,11,2) AS INT)

IF DATALENGTH(@v_siege_start_time) <> 4
BEGIN
SELECT @v_siege_start_time = 0x00000000
END

RETURN @v_siege_start_time
END


For Saturday:

USE [CHARACTER]
GO
/****** Object: UserDefinedFunction [dbo].[FN_GetSiegeStartBinTime] Script Date: 25.10.2020 01:31:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/************************************************** ****************************
이 름 : dbo.FN_GetSiegeStartBinTime
설 명 : 다음 공성전 시작일자를 반환한다.
예 제 : select dbo.FN_GetSiegeStartTime --//반환값 : 0x23E52D6C
수정내역:
Ver Date Author Description
--------- ---------- --------------- -----------------------------------
1.0 2006-05-05 Han Ji Wook 1. 초기생성
1.1 2006-05-11 Han Ji Wook 1. 다음공성전 시작시간 변경 >> 2주후 일요일
1.2 2009-12-22 Park Chanik 1. 공성 2010년 에러 관련 변경
************************************************** ****************************/
ALTER FUNCTION [dbo].[FN_GetSiegeStartBinTime]
(
@i_GetDate DATETIME
) RETURNS VARBINARY(4)
AS
BEGIN
DECLARE @v_siege_start_time VARBINARY(4)
DECLARE @v_siege_start_date VARCHAR(14)
--// 다음공성전 시작시간 Default Setting : 일요일 9시
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 7-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

-- 2009년 12월 22일 변경
-- CAST(SUBSTRING(@v_siege_start_date,4,1) AS INT)* 100000000 ---> CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT)* 100000000
SELECT @v_siege_start_time = CAST(SUBSTRING(@v_siege_start_date,3,2) AS INT) * 100000000
+ CAST(SUBSTRING(@v_siege_start_date,5,2) AS INT) * 1000000
+ CAST(SUBSTRING(@v_siege_start_date,7,2) AS INT) * 10000
+ CAST(SUBSTRING(@v_siege_start_date,9,2) AS INT) * 100
+ CAST(SUBSTRING(@v_siege_start_date,11,2) AS INT)

IF DATALENGTH(@v_siege_start_time) <> 4
BEGIN
SELECT @v_siege_start_time = 0x00000000
END

RETURN @v_siege_start_time
END


8 - Sunday
7 - Saturday
6 - Friday
5 - Thursday
4 - Wednesday
3 - Tuesday
2 - Monday
I followed all what you did but when i end the siege, dekaronserver will crash
yami1203 is offline  
Old 11/07/2020, 18:52   #5
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
then probably you ****** up something show us what you did what you change.

like for me all works OK.
[DEV]Dekaron is offline  
Old 11/09/2020, 07:40   #6
 
elite*gold: 0
Join Date: Aug 2020
Posts: 41
Received Thanks: 0
Quote:
Originally Posted by [DEV]Dekaron View Post
then probably you ****** up something show us what you did what you change.

like for me all works OK.
Is it possible to reset the siege query that was registered in the db? Because I think the query that Farius used on this db is different from yours.
yami1203 is offline  
Old 11/09/2020, 08:27   #7
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
Because my scripts are original. ppl make to much mess in some script
Yes you can.
[DEV]Dekaron is offline  
Old 11/09/2020, 08:57   #8
 
elite*gold: 0
Join Date: Aug 2020
Posts: 41
Received Thanks: 0
Quote:
Originally Posted by [DEV]Dekaron View Post
Because my scripts are original. ppl make to much mess in some script
Yes you can.
Just delete the getsiegetime something then requery???
yami1203 is offline  
Old 11/09/2020, 09:18   #9
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
when you run your server do you get info about siege?
[DEV]Dekaron is offline  
Old 11/09/2020, 14:44   #10
 
elite*gold: 0
Join Date: Aug 2020
Posts: 41
Received Thanks: 0
Quote:
Originally Posted by [DEV]Dekaron View Post
when you run your server do you get info about siege?
What do you mean? Siege in this db was already set by Farius but only once every two weeks.
yami1203 is offline  
Old 11/09/2020, 14:48   #11
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
Then all what you need is change 15 to 8

Once per two weeks at sunday
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 15-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

Every week at sunday
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 8-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'
[DEV]Dekaron is offline  
Old 11/09/2020, 17:34   #12
 
elite*gold: 0
Join Date: Aug 2020
Posts: 41
Received Thanks: 0
Quote:
Originally Posted by [DEV]Dekaron View Post
Then all what you need is change 15 to 8

Once per two weeks at sunday
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 15-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'

Every week at sunday
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 8-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'
yep, already done that. Instead of showing the next siege date, the siege info says the next siege is "2014 9/7" then if i start then end the siege, dekaronserver would crash.
yami1203 is offline  
Old 11/09/2020, 20:23   #13
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
did you try?

when you start your server do you getting info about siege (at the end of start server)

if you getting info at the end like NOT SIEGE ON CHANNEL that mean you don't have working SIEGE that's why your server crashing after using command siege stop now
[DEV]Dekaron is offline  
Thanks
1 User
Old 12/14/2020, 17:48   #14
 
elite*gold: 0
Join Date: Aug 2020
Posts: 41
Received Thanks: 0
it says "[SIEGE INFO] WARTIME ALARM TIME[0]
yami1203 is offline  
Old 12/14/2020, 23:24   #15
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
Quote:
Originally Posted by yami1203 View Post
it says "[SIEGE INFO] WARTIME ALARM TIME[0]
all is fine with that. this only mean that siege is load and works



just login to your account, use command siege_start now, and wait 5~10 second and use command siege_end now




[DEV]Dekaron is offline  
Reply


Similar Threads Similar Threads
Fortnite Season 7 End Date and Season 8 Begin Date Confirmed
02/14/2019 - Fortnite - 1 Replies
With Fortnite's Week 10 challenges have gone live across PS4, Xbox One, PC, Nintendo Switch, and mobile, it's almost time to say goodbye to Season 7, so be sure you jump in and complete these weekly challenges just before time's up. Fortnite Season 8 is coming, and currently, we're seeing changes around the map that point to something huge. Season 7 of Fortnite has been extended by two weeks to account for the Christmas break. That suggests you will find a further few weeks to finish...
[Siege] Siege Time..Help me dear friends..
09/02/2013 - Dekaron Private Server - 1 Replies
Hello guys.My client is siege 2 week of 1.I want to make weekly my siege war.How do each week make siege war ??
Help Change Siege Time ( Full Script )
07/20/2010 - Dekaron Private Server - 2 Replies
hello , i got my siege time on my test server start on sunday 21:00 server time , can someone please tell me how to change it to saturday 21:00 ? with the full script replacement. Thanks, Zakurin
How Change Time of Siege Ritual?
04/18/2010 - Dekaron Private Server - 0 Replies
How can change Date said me next war 5/2/2000 >.< how can change in 2010 ? or all date ? ( i already done with command gm for start b4 but didn't change ) and another thing How can change Date and Time ( Wednesday 18:00) of Siege Ritual ? tell me thanks:mofo:



All times are GMT +2. The time now is 04:44.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.