اهو سيتك بس لو انت كنت شوفت موضوع make your datebase كنت حتعرف كل حاجه الموقع مش مقصر في اي حاجه USE [SRO_VT_SHARD]
GO
/******By Jangan and Wismo ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[_AddTimedJob]
@CharID int,
@Category tinyint,
@JobID int,
@TimeToKeep int,
@Data1 int,
@Data2 int,
--##begin due to develop composite item
@Data3 int,
@Data4 int,
@Data5 int,
@Data6 int,
@Data7 int,
@Data8 int,
@Serial64 bigint,
@JID int
--##end due to develop composite item
as
if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
return -1
if (@TimeToKeep <= 0)
return -2
declare @NewJobID int
set @NewJobID = 0
--##JobID 1 = Guild // JobID 2 = Thief/Hunter/Trader
--##If you want to only have one not both, then just modify the line below!
if (@JobID = 1 or @JobID = 2)
BEGIN
insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,D ata2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64, JID)
values(@CharID, @Category, @JobID, 1, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
END
ELSE
BEGIN
--##begin due to develop composite item
insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,D ata2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64, JID)
values(@CharID, @Category, @JobID, @TimeToKeep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
END
--##end due to develop composite item
set @NewJobID = @@identity
if (@@error <> 0 or @@rowcount = 0)
USE [SRO_VT_SHARD]
GO
/******By Jangan and Wismo ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[_AddTimedJob]
@CharID int,
@Category tinyint,
@JobID int,
@TimeToKeep int,
@Data1 int,
@Data2 int,
--##begin due to develop composite item
@Data3 int,
@Data4 int,
@Data5 int,
@Data6 int,
@Data7 int,
@Data8 int,
@Serial64 bigint,
@JID int
--##end due to develop composite item
as
if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
return -1
if (@TimeToKeep <= 0)
return -2
declare @NewJobID int
set @NewJobID = 0
--##JobID 1 = Guild // JobID 2 = Thief/Hunter/Trader
--##If you want to only have one not both, then just modify the line below!
if (@JobID = 1 or @JobID = 2)
BEGIN
insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64,JID)
values(@CharID, @Category, @JobID, 1, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
END
ELSE
BEGIN
--##begin due to develop composite item
insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64,JID)
values(@CharID, @Category, @JobID, @TimeToKeep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
END
--##end due to develop composite item
set @NewJobID = @@identity
if (@@error <> 0 or @@rowcount = 0)
المشاركة الأصلية كتبت بواسطة _redev1l_
عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
اتفضل . .
كود PHP:
use [sro_vt_shard]
go
/******by jangan and wismo ******/
set ansi_nulls on
go
set quoted_identifier on
go
alter procedure [dbo].[_addtimedjob]
@charid int,
@category tinyint,
@jobid int,
@timetokeep int,
@data1 int,
@data2 int,
--##begin due to develop composite item
@data3 int,
@data4 int,
@data5 int,
@data6 int,
@data7 int,
@data8 int,
@serial64 bigint,
@jid int
--##end due to develop composite item
as
if (not exists (select charid from _char with (nolock) where charid = @charid))
return -1
if (@timetokeep <= 0)
return -2
declare @newjobid int
set @newjobid = 0
--##jobid 1 = guild // jobid 2 = thief/hunter/trader
--##if you want to only have one not both, then just modify the line below!
If (@jobid = 1 or @jobid = 2)
begin
insert into _timedjob(charid,category,jobid,timetokeep,data1,data2,data3,data4,data5,data6,data7,data8,serial64,jid)
values(@charid, @category, @jobid, 1, @data1, @data2, @data3, @data4, @data5, @data6, @data7, @data8, @serial64, @jid)
end
else
begin
--##begin due to develop composite item
insert into _timedjob(charid,category,jobid,timetokeep,data1,data2,data3,data4,data5,data6,data7,data8,serial64,jid)
values(@charid, @category, @jobid, @timetokeep, @data1, @data2, @data3, @data4, @data5, @data6, @data7, @data8, @serial64, @jid)
end
--##end due to develop composite item
set @newjobid = @@identity
if (@@error <> 0 or @@rowcount = 0)
return -3
return @newjobid
واعمل excute ليها . .
الف شكر انا استخدمت الكويرى دة وشغال زى الفل وعال العال