Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 18:34

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

Advertisement



weird problem with honor buffs

Discussion on weird problem with honor buffs within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
sigel123456789's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 327
Received Thanks: 55
weird problem with honor buffs

everything seems well configured however i faced a weird problem
when update time comes it must update trainingcamphonorrank table with champ id and rank right ?
nah here it turns it into null
also i've copied all procedures from a clean database and same problem
trainingcamphonorrank


update procedure
PHP Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_TRAINING_CAMP_UPDATEHONORRANK]    Script Date: 8/19/2019 1:37:05 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


ALTER PROCEDURE 
[dbo].[_TRAINING_CAMP_UPDATEHONORRANK]
AS
SET NOCOUNT ON


-- ÀÏ´Ü ·©Å· Å×À̺íÀ» ¼¼ÆÃÇÑ´Ù.
DECLARE  [
MENTION=1452052]ranking[/MENTIONINT
SET  
[MENTION=1452052]ranking[/MENTION] = 1


DECLARE  [MENTION=320029]campi[/MENTION]D INT
DECLARE  [MENTION=955363]rank[/MENTIONTINYINT


BEGIN TRANSACTION


DECLARE RankCursor CURSOR FAST_FORWARD FOR
SELECT TOP 50 [IDFROM _TrainingCamp WITH (NOLOCK)
WHERE EvaluationPoint >= 10
ORDER BY EvaluationPoint DESC
LatestEvaluationDate ASC


-- ÀÏ´Ü Àüü ·©Å·À» ¾øÀ½À¸·Î Ç¥½ÃÇÏÀÚ.
UPDATE _TrainingCamp SET Rank 5 WHERE Rank <> 5
IF (@@ERROR <> 0)
BEGIN
ROLLBACK TRANSACTION


DEALLOCATE RankCursor
RETURN -1
END


-- ·©Å· Å×ÀÌºíµµ ÃʱâÈ*ÇÏÀÚ.
UPDATE _TrainingCampHonorRank SET CampID nullRank null
IF (@@ERROR <> 0)
BEGIN
ROLLBACK TRANSACTION


DEALLOCATE RankCursor
RETURN -1
END


OPEN RankCursor
FETCH NEXT FROM RankCursor INTO  
[MENTION=320029]campi[/MENTION]D
WHILE @@FETCH_STATUS 0
BEGIN
IF  [MENTION=1452052]ranking[/MENTION] <= 5
BEGIN
SET  
[MENTION=955363]rank[/MENTION] = 1
END
ELSE IF  [MENTION=1452052]ranking[/MENTION] <= 15
BEGIN
SET  
[MENTION=955363]rank[/MENTION] = 2
END
ELSE IF  [MENTION=1452052]ranking[/MENTION] <= 30
BEGIN
SET  
[MENTION=955363]rank[/MENTION] = 3
END
ELSE
BEGIN
SET  
[MENTION=955363]rank[/MENTION] = 4
END


UPDATE _TrainingCamp SET Rank 
=  [MENTION=955363]rank[/MENTIONWHERE [ID] =  [MENTION=320029]campi[/MENTION]
IF (@@ERROR <> OR @@ROWCOUNT 0)
BEGIN
ROLLBACK TRANSACTION
CLOSE RankCursor
DEALLOCATE RankCursor


RETURN -2
END
UPDATE _TrainingCampHonorRank SET CampID 
=  [MENTION=320029]campi[/MENTION]DRank =  [MENTION=955363]rank[/MENTIONWHERE Ranking =  [MENTION=1452052]ranking[/MENTION
IF (@@
ERROR <> OR @@ROWCOUNT 0)
BEGIN
ROLLBACK TRANSACTION
CLOSE RankCursor
DEALLOCATE RankCursor


RETURN -3
END 

SET  
[MENTION=1452052]ranking[/MENTION] =  [MENTION=1452052]ranking[/MENTION] + 1


FETCH NEXT FROM RankCursor INTO  
[MENTION=320029]campi[/MENTION]D
END


CLOSE RankCursor
DEALLOCATE RankCursor


-- ¸¶Áö¸·À¸·Î °»½ÅÇÑ ³¯Â¥¸¦ Àû¾îº¸ÀÚ!!!
IF 
EXISTS (SELECT LastUpdateDate FROM _TrainingCampHonorRankUpdateDate)
BEGIN
UPDATE _TrainingCampHonorRankUpdateDate SET LastUpdateDate 
GETDATE()
END 
------------------------
FIXED THE PROBLEM WAS RELATED TO EVALUATION POINTS
sigel123456789 is offline  
Reply


Similar Threads Similar Threads
[Buying] [NA] WTB Guild with max combat buffs, lifeskill buffs and CTG!
07/30/2019 - Black Desert Trading - 0 Replies
As per title, I'm looking for a guild to buy, some of you i'm sure have some old guild on an alt that you aren't using. The guild must have combat buffs, lifeskill buffs and CTG. Send me a DM and we can discuss further.
[Request] How to Active Honor Buffs in Vsro Files?
02/27/2013 - SRO Private Server - 5 Replies
Anyone can tell how to ? And how to sold this error? Failed To Update Training Camp Honor Ranking! Result: -3 Tnx a lot...
Vsro How made Honor Ranking and buffs working
04/02/2012 - SRO Private Server - 4 Replies
Hello guys can anyone help me my Honor rank and honor buffs dont work honor system is working and i can get my points but the guy in my academy if they are 40++ they will get exp too how i can fix this ?
WTS 111 Hybrid Spear Nuker on ALPS - 4.5M SP, Honor buffs, Legend, Suns
09/08/2011 - Silkroad Online Trading - 6 Replies
This account has been my main for 5 years now... lets just say it's not half bad. *cuts to the chase* - Its a lv 111 hybrid spear nuker on Alps - Legend +3 spear - 3 Honor buffs (311 graduates, and has 4 Honor weapons) - 3 other chars on the account each have lv 5 guilds (for storage) - Lv 51 Job (Thief), a pretty decent lv 50 job set WITH BLUES - 3 Avatars and many other random avatar accessories and hats
Weird.... Just weird ( inside )
08/05/2011 - Shaiya Private Server - 14 Replies
Windows 2008 webserver S2 , service pack 4 , 64 bit Os. when i go to install Sql 2005 it does its little pre install check list, well i get a warning on asp.net , it tells me that 64 bit is installed and mysql report services require 32 bit.. So i sorta stumble around a bit, well i ran across Banes tut on sql 2008 , so i thought allright lets try it. as i click on the installserver.bat for the client,, the cmd prompt comes up, goes thew it steps, then tells me that Shaiya is not...



All times are GMT +1. The time now is 18:37.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.