Register for your free account! | Forgot your password?

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

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

Advertisement



[Request]First 100 players reach maxlevel system.

Discussion on [Request]First 100 players reach maxlevel system. within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
Trade Restricted
 
Tommy.'s Avatar
 
elite*gold: 86
Join Date: Jan 2012
Posts: 335
Received Thanks: 135
Post [Request]First 100 players reach maxlevel system.

Hey elitepvpers.
i tried alot to do a query with that system (first 100 players who reach lv110 takes 1000silk) but i really couldn't
i ask you if you have any query with that system or any release that can help me with that.
Thanks.
Tommy. is offline  
Old 07/18/2014, 03:19   #2

 
AceSpace's Avatar
 
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
It took me 25 minutes to do it. A thanks would be appreciated;

Do the following:

Execute that query;
Code:
USE SRO_VT_LOG
CREATE TABLE _First100Chars (
CharID int,
CharName varchar(64),
Result varchar(64)
)
-- A log table to check the chars which got the silk

Add this query in _AddLogChar @ SRO_VT_LOG

Code:
IF @EventID = 9
BEGIN
declare @Amount int,
@JID int,
@CID int,
@Result int;
INSERT INTO _First100Chars
SELECT TOP 100 CharID, CharName16, 'NULL'
FROM _Char where CurLevel = 110 AND CharID > 0
SELECT @CID = CharID from _First100Chars where Result = 'NULL'
SELECT @JID = UserJID from SRO_VT_SHARD.._User where CharID in (@CID)
SELECT @Result = Result from _First100Chars WHERE Result in ('NULL','Success')
SELECT @Amount = CASE
WHEN @Result = 'NULL'
THEN 1000
WHEN @Result = 'Success'
THEN 0
ELSE 0
END
IF EXISTS (SELECT * FROM SRO_VT_ACCOUNT..SK_Silk where JID in (@JID)) 
update SRO_VT_ACCOUNT..SK_Silk set silk_own = silk_own + @Amount where JID in (@JID)
ELSE
INSERT INTO SRO_VT_ACCOUNT..SK_Silk
SELECT @JID, @Amount, 0, 0
UPDATE _First100Chars set Result = 'Success' where CharID in (@CID)
END
I dun really know if it'll work. I haven't tried it.

Please test it and let me know the result.
AceSpace is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELASE]Our Players System
11/09/2013 - Metin2 PServer Guides & Strategies - 6 Replies
Hello epvp ! Our Members System Is Here ! our_members.lua quest our_members begin state start begin when 20468.chat."Write On Out Web" with game.get_event_flag(""..pc.get_name()..& quot;yazdi") == 0 begin say_title("Our Players") say("")
Maxlevel (Oyunu Files)
05/29/2012 - Metin2 Private Server - 4 Replies
Moin, ich habe hier im Forum schon einiges gelesen und ausprobiert, aber ich bekomme das maxlevel einfach nicht auf 150, es bleibt immer auf 111. Kann mir jemand erklären, wie ich das auf 150 bekomme? :handsdown:
[VSRO] Partymatching Maxlevel -126 Why?
02/11/2012 - SRO Private Server - 0 Replies
Hey guys, I have a weird bug with my PK2 or on the server. When I open Partymatching the maxlevel is set to "-126" so you ever have to change it before you can form a party. Anyone knows where I can change it? I can't find it in the Media.PK2. :S
Game 409/2010 MaxLevel verändern
12/29/2010 - Metin2 Private Server - 1 Replies
Hallo, ich hätte eine frage, undzwar, wie verändert man das maxlevel von den 409 Files/2010 Files? Und welche tabelle muss ich bearbeiten wenn ich locale english habe? ich glaube euckr, was muss ich bei germany bearbeiten? hoffe auf hilfe TV21
which system would be more interesting for players Add your Openion please
10/30/2010 - CO2 Private Server - 12 Replies
Well am going to create a new 5199 server so wanna players Have Fun as much as possible Which would be better With Heaven fan and tower or with out them



All times are GMT +1. The time now is 10:34.


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.