USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Read_Char_ApplySkills_R] Script Date: 10.07.2019 14:49:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Proc [dbo].[usp_Read_Char_ApplySkills_R]
@
[Only registered and activated users can see links. Click Here To Register...]D int
AS
SET NOCOUNT ON
---Ress 30 Dias
if exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=225 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=225
end
if not exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=225)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values @
[Only registered and activated users can see links. Click Here To Register...]D, 225,1,2592000)
end
---Resist endurance 30 days
if exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=227 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=227
end
if not exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=227)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values @
[Only registered and activated users can see links. Click Here To Register...]D, 227,1,2592000)
end
---Red Phoenx amulet 30 days
if exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=233 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=233
end
if not exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=233)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values @
[Only registered and activated users can see links. Click Here To Register...]D, 233,1,2592000)
end
---RFU
if exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=286 and skilllevel=3)
begin
update charapplyskills set LeftResettime=2592000 where CharID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=286
end
if not exists ( select skillID from charapplyskills with (nolock) where charID @
[Only registered and activated users can see links. Click Here To Register...]D and skillid=286)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values @
[Only registered and activated users can see links. Click Here To Register...]D, 286,3,2592000)
end
SELECT SkillID,SkillLevel,LeftResetTime FROM CharApplySkills WHERE CharID @
[Only registered and activated users can see links. Click Here To Register...]D
SET NOCOUNT OFF