|
You last visited: Today at 03:05
Advertisement
[Request] Siege Script
Discussion on [Request] Siege Script within the Dekaron Private Server forum part of the Dekaron category.
04/28/2012, 04:16
|
#1
|
elite*gold: 0
Join Date: Aug 2008
Posts: 333
Received Thanks: 124
|
[Request] Siege Script
Alright, i have searched, and tried a few different ones.
but i just cant get it to work :/
wondering if anyone could supply a complete script for siege, (once a week, month, or twice a month, doesn't bother me) working for 2012 onwards would be nice as id prefer not to fk with my pcs time and date lol.
not to fussy with start time, can just change that anyway.
im using sql 2008 (hope to *** that isnt to much of a issue....)
if you feel the need to flame, or question if i did try it, dont bother... i had siege working last time i tried it, but that was on the 1click setup. now im just workin on setting it all up on my own pc, and hit a snag with getting siege to work.
|
|
|
04/28/2012, 12:57
|
#2
|
elite*gold: 0
Join Date: Aug 2009
Posts: 127
Received Thanks: 21
|
first you need declare
Quote:
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 = 'FIRSTGUILD'
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_star t_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
|
after that use
|
|
|
04/28/2012, 13:51
|
#3
|
elite*gold: 0
Join Date: Aug 2008
Posts: 333
Received Thanks: 124
|
And that worked lol.... thanks
confusing thing for me, is it looks to be same script as others already put on forums :/
i musta done something wrong lol -slaps self-
no idea how i stuffed that one up... sorry for the newb question xD
Edit: sorry to bump this back up again, but after getting siege to work, having one go off.
all worked etc etc. took server down, done a simple change to some item stats.
then siege info call kept failing on server boot up. tried a few things, but weirdly enough, it works fine if i remove df times from cm_bcd_item .... if i add df times back in, it fks the siege info call again somehow >_>
any idea how/why it would do that?
|
|
|
04/30/2012, 02:22
|
#4
|
elite*gold: 0
Join Date: Mar 2011
Posts: 120
Received Thanks: 9
|
bump-_-
|
|
|
04/30/2012, 02:35
|
#5
|
elite*gold: 0
Join Date: Aug 2008
Posts: 333
Received Thanks: 124
|
it was already answered, why bump it?!?
#Request Close....
|
|
|
04/30/2012, 02:40
|
#6
|
elite*gold: 0
Join Date: Mar 2011
Posts: 120
Received Thanks: 9
|
o.o haha ok
sry
#Request Close
|
|
|
 |
Similar Threads
|
[HELP]Siege Script Error
05/14/2020 - Dekaron Private Server - 11 Replies
Hey Members Of EPvP,
i got a prob with the siege script....
Server: Msg 208, Level 16, State 1, Line 33
Invalid object name 'dbo.FN_DateToShortStrDate'.
thats the error it tells me...
i tryed everything but not working....
|
[HELP]How to change siege script?
12/20/2011 - Dekaron Private Server - 1 Replies
Where i can find the script for siege?
please tell it to me step by step.
|
I need siege script for MsSql 2003
02/19/2011 - Dekaron Private Server - 2 Replies
Hello i search for siege script and i cant fine one for MsSql 2003 and i need also for 2011 if someone help me:)
|
Please help siege script
08/31/2010 - Dekaron Private Server - 27 Replies
when i run siege script i got this error msg.
Msg 241, Level 16, State 1, Procedure SP_SIEGE_START_TIME_U, Line 52
Conversion failed when converting date and/or time from character string.
Why i try to run siege srcipt again ? !!!
cuz i got this error.
http://upic.me/i/gb/siegeerror.jpg
|
script to siege!
01/07/2010 - Dekaron Private Server - 41 Replies
this is the full script to siege enjoy!
DECLARE @v_siege_no char(10)
DECLARE @guild_code varchar(10)
DECLARE @v_strDate varchar(10)
DECLARE @v_regdate varchar(10)
DECLARE @v_strChannel varchar(2)
DECLARE @i_bychannel tinyint
DECLARE @o_dwDungeonRegistTime varbinary(4)
|
All times are GMT +1. The time now is 03:06.
|
|