Register for your free account! | Forgot your password?

You last visited: Today at 15:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Stat Reset Scroll

Discussion on Stat Reset Scroll within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2014
Posts: 42
Received Thanks: 9
Stat Reset Scroll

Hello epvp, i downloaded stat reset scroll but when i use it, it doesn't do anything and i added successfully to DB+media.

_AddTimedJob -
_Prophet_ is offline  
Old 02/28/2015, 20:55   #2
 
Hamza FiGo's Avatar
 
elite*gold: 150
Join Date: Sep 2009
Posts: 987
Received Thanks: 258
wrong procedure

Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddTimedJob]    Script Date: 2/28/2015 8:45:17 PM ******/
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(@JobID = '45001') 
        begin 
            declare @Strength int 
            declare @Intellect int 
            declare @MaxLevel int 
            declare @RemainStatPoint int 
            select @MaxLevel = MaxLevel from _Char where CharID = @CharID 
            set @RemainStatPoint = (@MaxLevel*3)-3 
            set @MaxLevel = @MaxLevel+19 
            UPDATE _Char SET Strength=@MaxLevel, Intellect=@MaxLevel, RemainStatPoint=@RemainStatPoint WHERE CharID=@CharID 
            return -3 
        end  
    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
    --##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 due to develop composite item
    set @NewJobID = @@identity
    if (@@error <> 0 or @@rowcount = 0)
        return -3
    return @NewJobID
Hamza FiGo is offline  
Thanks
2 Users
Old 02/28/2015, 22:25   #3
 
elite*gold: 0
Join Date: Jun 2014
Posts: 42
Received Thanks: 9
Quote:
Originally Posted by hamzafigo View Post
wrong procedure

Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddTimedJob]    Script Date: 2/28/2015 8:45:17 PM ******/
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(@JobID = '45001') 
        begin 
            declare @Strength int 
            declare @Intellect int 
            declare @MaxLevel int 
            declare @RemainStatPoint int 
            select @MaxLevel = MaxLevel from _Char where CharID = @CharID 
            set @RemainStatPoint = (@MaxLevel*3)-3 
            set @MaxLevel = @MaxLevel+19 
            UPDATE _Char SET Strength=@MaxLevel, Intellect=@MaxLevel, RemainStatPoint=@RemainStatPoint WHERE CharID=@CharID 
            return -3 
        end  
    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
    --##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 due to develop composite item
    set @NewJobID = @@identity
    if (@@error <> 0 or @@rowcount = 0)
        return -3
    return @NewJobID
ah yeah, thanks. it worked. ^^
_Prophet_ is offline  
Closed Thread


Similar Threads Similar Threads
[Release]Scroll's Stat reset | Change Name Char
12/05/2016 - SRO PServer Guides & Releases - 22 Replies
heya i'll release scrolls stat reset & Change name Char lets start like everytime. Stat Reset Download & Scan Click Here Click Here Change name scroll & Download & Scan
[Selling] Elamidas, Lv100 Nuker + Stat & Skill Reset Scroll
09/26/2014 - Silkroad Online Trading - 17 Replies
Server Elamidas : 100 Int Spear Nuker with Stat + Skill Reset Scroll Prem+ 18 days +7 Devil Spirit + 7SPEAR & +5 Set ( inc. Acc's) 1 Red Arabian Avatars + Hat some gender switch, pet etc... 100M gold
[Trading] Elamidas, Lv100 SPEAR +7 Nuker + Stat & Skill Reset Scroll [FOR] a good Steam Account
09/14/2014 - Trading - 1 Replies
I want to trade a Lv 100 Nuker on Server Elamidas : 100 Int Spear Nuker with Stat + Skill Reset Scroll Prem+ 18 days +7 Devil Spirit + 7SPEAR & +5 Set ( inc. Acc's) 1 Red Arabian Avatars + Hat some gender switch, pet etc... 100M gold



All times are GMT +1. The time now is 15:19.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.