Register for your free account! | Forgot your password?

Go Back   elitepvpers › Popular Games › Silkroad Online › SRO Private Server
You last visited: Today at 22:00

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

Advertisement



TopReward Produce

Discussion on TopReward Produce within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 285
Received Thanks: 49
TopReward Produce

Hi guys! i have a problem
i make this simple produce but i dont know why dosent work
, when i reach the lv 110 nothing happend, and i check the Table _MaxLevelLog and got record but i dont got the silk
Any Hints?

Table:
HTML Code:
CREATE TABLE _MaxLevelLog
(
CharID					INT,
LevelCounter				INT,
Done					BIT
)
Quote:
IF @EventID = 22 AND @Data2 = 110
BEGIN

DECLARE @UserJID int;
DECLARE @MaxLevelCount int = (select max(LevelCounter) from _MaxLevelLog);
DECLARE @SilkTop int;

IF EXISTS (SELECT * FROM _MaxLevelLog WHERE CharID = @CharID )

UPDATE _MaxLevelLog SET LevelCounter = LevelCounter WHERE CharID = @CharID
ELSE

INSERT INTO _MaxLevelLog VALUES (@CharID,(select max(LevelCounter)+1 from _MaxLevelLog),0)


SET @SilkTop = CASE
WHEN @MaxLevelCount <= 50
THEN 200
WHEN @MaxLevelCount <= 100
THEN 100

ELSE 0
END

SELECT @UserJID = UserJID from SRO_VT_SHARD.._User where CharID = @CharID

IF EXISTS (Select * from SRO_VT_ACCOUNT..SK_Silk where JID = @UserJID)
UPDATE SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own + @SilkTop where JID = @UserJID
ELSE
INSERT INTO SRO_VT_ACCOUNT..SK_Silk
SELECT @UserJID, @SilkTop, 0, 0

END
fix it the problem was LevelCounter starts in the table with NULL
loader8 is offline  
Reply




All times are GMT +1. The time now is 22:02.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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