Hi Guys ! i have a problem i add the Stat Scroll, in DB+media
the problem is when i use i dosent get the Statpoints my Hp and mp are the same, who can help me ?
here is my
_addtimedJOB
the problem is when i use i dosent get the Statpoints my Hp and mp are the same, who can help me ?
here is my
_addtimedJOB
USE [SRO_VT_SHARD]
GO
/****** Object: StoredProcedure [dbo].[_AddTimedJob] Script Date: 02/25/2017 08:34:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[_AddTimedJob]
@CharID int,
@Category tinyint,
@JobID int,
@[Only registered and activated users can see links. Click Here To Register...]Keep int,
@Data1 int,
@Data2 int,
--##begin due to develop composite item
@Data3 int,
@Data4 int,
@Data5 int,
@Data6 int,
@Data7 int,
@Data8 int,
@[Only registered and activated users can see links. Click Here To Register...]64 bigint,
@JID int
--##end due to develop composite item
as
if(@JobID = '33788')
begin
declare @[Only registered and activated users can see links. Click Here To Register...] int
declare @Intellect int
declare @MaxLevel int
declare @[Only registered and activated users can see links. Click Here To Register...]tatPoint int
select @MaxLevel = MaxLevel from _Char where CharID = @CharID
set @[Only registered and activated users can see links. Click Here To Register...]tatPoint = (@MaxLevel*3)-3
set @MaxLevel = @MaxLevel+19
UPDATE _Char SET Strength=@MaxLevel, Intellect=@MaxLevel, RemainStatPoint @[Only registered and activated users can see links. Click Here To Register...]tatPoint WHERE CharID=@CharID
return -3
end
if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
return -1
if @[Only registered and activated users can see links. Click Here To Register...]Keep <= 0)
return -2
declare @[Only registered and activated users can see links. Click Here To Register...]JobID int
set @[Only registered and activated users can see links. Click Here To Register...]JobID = 0
--##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, @[Only registered and activated users can see links. Click Here To Register...]Keep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @[Only registered and activated users can see links. Click Here To Register...]64, @JID)
--##end due to develop composite item
set @[Only registered and activated users can see links. Click Here To Register...]JobID = @@identity
if (@@error <> 0 or @@rowcount = 0)
return -3
return @[Only registered and activated users can see links. Click Here To Register...]JobID
GO
/****** Object: StoredProcedure [dbo].[_AddTimedJob] Script Date: 02/25/2017 08:34:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[_AddTimedJob]
@CharID int,
@Category tinyint,
@JobID int,
@[Only registered and activated users can see links. Click Here To Register...]Keep int,
@Data1 int,
@Data2 int,
--##begin due to develop composite item
@Data3 int,
@Data4 int,
@Data5 int,
@Data6 int,
@Data7 int,
@Data8 int,
@[Only registered and activated users can see links. Click Here To Register...]64 bigint,
@JID int
--##end due to develop composite item
as
if(@JobID = '33788')
begin
declare @[Only registered and activated users can see links. Click Here To Register...] int
declare @Intellect int
declare @MaxLevel int
declare @[Only registered and activated users can see links. Click Here To Register...]tatPoint int
select @MaxLevel = MaxLevel from _Char where CharID = @CharID
set @[Only registered and activated users can see links. Click Here To Register...]tatPoint = (@MaxLevel*3)-3
set @MaxLevel = @MaxLevel+19
UPDATE _Char SET Strength=@MaxLevel, Intellect=@MaxLevel, RemainStatPoint @[Only registered and activated users can see links. Click Here To Register...]tatPoint WHERE CharID=@CharID
return -3
end
if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
return -1
if @[Only registered and activated users can see links. Click Here To Register...]Keep <= 0)
return -2
declare @[Only registered and activated users can see links. Click Here To Register...]JobID int
set @[Only registered and activated users can see links. Click Here To Register...]JobID = 0
--##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, @[Only registered and activated users can see links. Click Here To Register...]Keep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @[Only registered and activated users can see links. Click Here To Register...]64, @JID)
--##end due to develop composite item
set @[Only registered and activated users can see links. Click Here To Register...]JobID = @@identity
if (@@error <> 0 or @@rowcount = 0)
return -3
return @[Only registered and activated users can see links. Click Here To Register...]JobID