Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 15:26

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

Advertisement



Grant the best hunter/thief/trader a title

Discussion on Grant the best hunter/thief/trader a title within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1

 
AceSpace's Avatar
 
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
Grant the best hunter/thief/trader a title

Hey,
This is my second release. It is nothing special but that's what I could do so far.
This'll grant the best hunter/trader/thief a title based on 'Level, Contribution, Exp'

So here it is;

Run a query and Execute this:
Code:
CREATE TABLE _Top3J
(
Trader int,
Thief int,
Hunter int,
Count int
);
_AddLogChar -> (SRO_VT_LOG -> Programmability -> Stored Procedures -> Right click on _AddLogChar and press on 'Modify')

Code:
IF @EventID = 9
BEGIN
declare @CIDTrader int,
@CIDThief int,
@CIDHunter int,
@TTrader int,
@THunter int,
@TThief int;
SELECT TOP 1 @CIDTrader = CharID from SRO_VT_SHARD.._CharTrijob WHERE JobType = 1 Order By Exp,Contribution,Level DESC
SELECT TOP 1 @CIDThief = CharID from SRO_VT_SHARD.._CharTrijob WHERE JobType = 2 Order By Exp,Contribution,Level DESC
SELECT TOP 1 @CIDHunter = CharID from SRO_VT_SHARD.._CharTrijob WHERE JobType = 3 Order By Exp,Contribution,Level DESC
-- #########################################
-- Replace '1, 2, 3' with the title's hwanlevel, Name explanation. 'T' means title, 'Hunter' means hunter? lol you got it now.
-- #########################################
SET @THunter = 1
SET @TTrader = 2
SET @TThief = 3
-- #########################################
-- removing the titles
-- #########################################
UPDATE SRO_VT_SHARD.._Char set HwanLevel = 0
WHERE HwanLevel in (@THunter, @TTrader, @TThief)
-- #########################################

UPDATE SRO_VT_SHARD.._Char set HwanLevel = @TTrader
WHERE CharID = @CIDTrader

UPDATE SRO_VT_SHARD.._Char set HwanLevel = @TThief
WHERE CharID = @CIDThief

UPDATE SRO_VT_SHARD.._Char set HwanLevel = @THunter
WHERE CharID = @CIDHunter

-- ######################################################################
-- Some log shit, I haven't really tested it as I no longer own a server.
-- ######################################################################
IF NOT EXISTS (SELECT * FROM _Top3J where Trader = @CIDTrader AND Thief = @CIDThief AND Hunter = @CIDHunter AND Count > 0)
BEGIN
INSERT INTO _Top3J
SELECT @CIDTrader, @CIDThief, @CIDHunter, 1
END
ELSE
BEGIN
UPDATE _Top3J
SET Count += 1
END

END
And press 'Execute'. There you're.

Thank you!
AceSpace is offline  
Thanks
3 Users
Old 07/12/2014, 18:21   #2
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,507
#Approved
PortalDark is offline  
Old 07/12/2014, 18:47   #3
 
elite*gold: 0
Join Date: Mar 2012
Posts: 30
Received Thanks: 7
Good job
LeeVanShin is offline  
Old 07/12/2014, 23:03   #4
 
SkillsGoPewPew's Avatar
 
elite*gold: 275
Join Date: May 2014
Posts: 1,417
Received Thanks: 1,156
Nice job.
SkillsGoPewPew is offline  
Old 07/13/2014, 06:05   #5
 
Justin1337*'s Avatar
 
elite*gold: 480
Join Date: Jan 2012
Posts: 655
Received Thanks: 579
Thanks for sharing. =)
Justin1337* is offline  
Old 07/15/2014, 14:46   #6


 
Dracula Untold's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 1,861
Received Thanks: 517
nice
Dracula Untold is offline  
Old 10/27/2014, 09:00   #7
 
where_love2003's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 193
Received Thanks: 27
not work
where_love2003 is offline  
Reply


Similar Threads Similar Threads
Hunter / Trader / Thief Teleport
01/31/2013 - SRO Private Server - 0 Replies
hello a map, only the Hunter / Trader / Thief would like teleportation How do I make it
Trader, Hunter, Thief Gold Rate UP
05/09/2012 - Silkroad Online - 0 Replies
trader, hunter and thief How to improve earnings?
Vsro Thief Trader Hunter
01/19/2012 - SRO Private Server - 4 Replies
Hi, I have my little vsro server just to do some funny stuff and I have noticed that my client crashes when I try to create Alias for any job so is it something wrong with my media.pk2 (I have used one from GM Shadow it seems good) and Im using client v 1.188. and is there any option that I can manualy make my Alias in server database ?
Hunter / Thief / Trader alias
09/12/2010 - Silkroad Online - 4 Replies
Is it important to use a russian name as the hunter alias?? Or can i choose english names or numbers??? I don't want to get banned .
[Question]max lvl of hunter/thief/trader
08/26/2009 - Silkroad Online - 9 Replies
What is the max lvl of the hunter/thief/trader in silkroad? i've saw max lvl 4 in isro long time ago..in cap 90 .. but i heard that after lvl 5 can reach to Expert rank



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


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.