|
You last visited: Today at 19:29
Advertisement
HELP With siege.
Discussion on HELP With siege. within the Dekaron Private Server forum part of the Dekaron category.
11/01/2011, 20:15
|
#1
|
elite*gold: 0
Join Date: Dec 2009
Posts: 8
Received Thanks: 1
|
HELP With siege.
someone can tell me what happens here?
|
|
|
11/01/2011, 22:14
|
#2
|
elite*gold: 0
Join Date: Oct 2008
Posts: 24
Received Thanks: 3
|
run this script in the MS SQL Query Analyser..
Code:
USE [Character]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
ALTER FUNCTION [dbo].[FN_BinDateToDateTime] (
@i_bin_time binary(4)
) RETURNS datetime
AS
BEGIN
DECLARE @v_datetime datetime
DECLARE @v_strAux varchar(20)
DECLARE @v_strtime varchar(20)
SET @v_strAux = CAST(CAST(@i_bin_time as int) as varchar(20))
IF len(@v_strAux) = 7
SELECT @v_strtime = '20100' + CAST(CAST(@i_bin_time as int) as varchar(20))
ELSE
IF len(@v_strAux) = 8
SELECT @v_strtime = '2010' + CAST(CAST(@i_bin_time as int) as varchar(20))
ELSE
SELECT @v_strtime = '201' + CAST(CAST(@i_bin_time as int) as varchar(20))
SELECT @v_strtime = SUBSTRING(@v_strtime,1,4)
+'-'+SUBSTRING(@v_strtime,5,2)
+'-'+SUBSTRING(@v_strtime,7,2)
+' '+SUBSTRING(@v_strtime,9,2)
+':'+SUBSTRING(@v_strtime,11,2)
SELECT @v_datetime = CAST(@v_strtime as datetime)
RETURN @v_datetime
END
that should fix your error
|
|
|
11/01/2011, 23:29
|
#3
|
elite*gold: 0
Join Date: Dec 2009
Posts: 8
Received Thanks: 1
|
testing....
It has not worked: /
|
|
|
11/02/2011, 00:04
|
#4
|
elite*gold: 0
Join Date: Oct 2008
Posts: 24
Received Thanks: 3
|
hmmm... odd, worked for me.
|
|
|
11/02/2011, 02:17
|
#5
|
elite*gold: 0
Join Date: Oct 2011
Posts: 28
Received Thanks: 5
|
not for year 2011 or 2012 .
|
|
|
11/02/2011, 02:41
|
#6
|
elite*gold: 0
Join Date: Apr 2011
Posts: 305
Received Thanks: 45
|
I have the same problem if I can help.
|
|
|
11/02/2011, 11:33
|
#7
|
elite*gold: 0
Join Date: Jul 2010
Posts: 233
Received Thanks: 108
|
Try this one... run this one before
Code:
USE [Character]
GO
/****** Object: UserDefinedFunction [dbo].[FN_BinDateToDateTime] Script Date: 01/10/2011 19:35:14 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
ALTER FUNCTION [dbo].[FN_BinDateToDateTime] (
@i_bin_time binary(4)
) RETURNS datetime
AS
BEGIN
DECLARE @v_datetime datetime
DECLARE @v_strAux varchar(20)
DECLARE @v_strtime varchar(20)
SET @v_strAux = CAST(CAST(@i_bin_time as int) as varchar(20))
IF len(@v_strAux) = 7
SELECT @v_strtime = '20110' + CAST(CAST(@i_bin_time as int) as varchar(20))
ELSE
IF len(@v_strAux) = 8
SELECT @v_strtime = '2011' + CAST(CAST(@i_bin_time as int) as varchar(20))
ELSE
SELECT @v_strtime = '201' + CAST(CAST(@i_bin_time as int) as varchar(20))
SELECT @v_strtime = SUBSTRING(@v_strtime,1,4)
+'-'+SUBSTRING(@v_strtime,5,2)
+'-'+SUBSTRING(@v_strtime,7,2)
+' '+SUBSTRING(@v_strtime,9,2)
+':'+SUBSTRING(@v_strtime,11,2)
SELECT @v_datetime = CAST(@v_strtime as datetime)
RETURN @v_datetime
END
After u run it add this one:
Code:
USE [Character];
GO
DECLARE @v_siege_no char(10)
DECLARE @guild_code varchar(10)
DECLARE @guild_name varchar(30)
DECLARE @v_strDate varchar(10)
DECLARE @v_regdate varchar(10)
DECLARE @v_strChannel varchar(2)
DECLARE @i_bychannel tinyint
DECLARE @o_dwDungeonRegistTime varbinary(4)
DECLARE @o_DeadFrontTimeInfo varbinary(1000)
DECLARE @o_sp_rtn int
DECLARE @o_dwRegistTimeStart varbinary(4)
DECLARE @o_dwRegistTimeEnd varbinary(4)
DECLARE @o_dwTaxRegistTime varbinary(4)
DECLARE @o_dwStartTime varbinary(4)
DECLARE @o_dwRegistTime varbinary(4)
DECLARE @v_strDate1 varchar(10)
DECLARE @i_GetDate datetime
DECLARE @v_siege_start_date varchar(14)
DECLARE @v_siege_start_time varbinary(4)
SET @i_GetDate=getdate()
-- Siege War Every Saturday:
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 7-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'
--
SELECT @v_siege_start_time = SUBSTRING(@v_siege_start_date,4,1) * 100000000
+ SUBSTRING(@v_siege_start_date,5,2) * 1000000
+ SUBSTRING(@v_siege_start_date,7,2) * 10000
+ SUBSTRING(@v_siege_start_date,9,2) * 100
+ SUBSTRING(@v_siege_start_date,11,2)
SET @guild_code = '001'
SET @guild_name = 'DkUnderground.org'
SET @v_siege_no = SUBSTRING(dbo.FN_DateToShortStrDate(GetDate()), 3, 4) + '0001'
INSERT
INTO GUILD_INFO(guild_code, guild_name, guild_Level, bystate, bychannel)
VALUES (@guild_code, @guild_name, 3, 1, 1)
INSERT
INTO SIEGE_INFO(SIEGE_NO, CHANNEL_NO, GUILD_CODE, GUILD_NAME, DWSTARTTIME, BYREGISTTIMEFLAG, DEFENDER_INFO, SIEGE_TAG)
VALUES (@v_siege_no, 1, @guild_code, @guild_name,@v_siege_start_time, 1, 0X0000, 'Y')
EXEC SP_SIEGE_START_TIME_U @guild_code,1,0x01,@v_siege_start_time output,@o_dwRegistTime output,@o_sp_rtn output
SET @v_strDate1=dbo.FN_BinDateToDateTime(@v_siege_start_time)
DECLARE @P1 varchar(13)
SET @P1=NULL
DECLARE @P2 varchar(33)
SET @P2=NULL
DECLARE @P3 varchar(25)
SET @P3=NULL
DECLARE @P4 varbinary(4)
SET @P4=NULL
DECLARE @P5 varbinary(4)
SET @P5=NULL
DECLARE @P6 varbinary(4)
SET @P6=NULL
DECLARE @P7 varbinary(4)
SET @P7=NULL
DECLARE @P8 varbinary(4)
SET @P8=NULL
DECLARE @P9 varbinary(4)
SET @P9=NULL
DECLARE @P10 varbinary(4)
SET @P10=NULL
DECLARE @P11 varbinary(2)
SET @P11=NULL
DECLARE @P12 varbinary(2)
SET @P12=NULL
DECLARE @P13 varbinary(2)
SET @P13=NULL
DECLARE @P14 int
SET @P14=NULL
DECLARE @P15 int
SET @P15=NULL
DECLARE @P16 varbinary(4)
SET @P16=NULL
DECLARE @P17 varbinary(996)
SET @P17=NULL
DECLARE @P18 varbinary(996)
SET @P18=NULL
DECLARE @P19 varbinary(1000)
SET @P19=NULL
DECLARE @P20 int
SET @P20=NULL
EXEC SP_SIEGE_INFO_R 1, @P1 output, @P2 output, @P3 output, @P4 output, @P5 output, @P6 output, @P7 output, @P8 output, @P9 output, @P10 output, @P11 output, @P12 output, @P13 output, @P14 output, @P15 output, @P16 output, @P17 output, @P18 output, @P19 output, @P20 output
SELECT @P1, @P2, @P3, @P4, @P5, @P6,@v_strDate1
|
|
|
11/04/2011, 14:19
|
#8
|
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
|
Why not just use the database thats posted by itsnobody , his db already has siege in it and it works perfect.
|
|
|
 |
Similar Threads
|
[HELP]Siege
02/06/2011 - Dekaron Private Server - 13 Replies
Hello again i need help with siege i need some1 to tell me step by step how to add siege scripts and i need siege scripts too... i ve rode last post bout help with siege , and shadow posted alots of scripts and i was like wtf and i coudnt understand nothing so can some1 help pls ?
-Thanks
|
Siege help
09/26/2009 - Dekaron Private Server - 7 Replies
First of all my server is running 100%. But here my problem i put Siege code in db and i can start it in game but when i go to the teleport to go there i get this message "You are not authorized to participate in the \Siege Battle" How can i fix this so i and other's can enter. Thanks givin in advance.
Also i have seached and found nothing on this .
|
[HELP]SIege War
07/13/2009 - Dekaron Private Server - 16 Replies
I would like to know how the system of Siege, because I bought my gameserver from a client which runs the Siege, but I asked them they told that the time of the Siege is automatic to start, I just do not know how to enter the gild The Siege and do the ritual, someone could explain me? because when I use the command / gm siegestart of an error in dekaronserver.exe, I would like someone to help me
|
siege
05/24/2009 - Dekaron Private Server - 12 Replies
uum guys can someone help me.Does someone now how to get working siege ?
|
DK siege sql
04/27/2009 - Dekaron Private Server - 0 Replies
fffff
|
All times are GMT +1. The time now is 19:30.
|
|