Register for your free account! | Forgot your password?

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

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

Advertisement



can any one help me for time sql

Discussion on can any one help me for time sql within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
where_love2003's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 193
Received Thanks: 27
can any one help me for time sql

Morning all Elitepvp
i want some help
first i have this table

i want every 1 week select top total like this
(SELECT TOP 10 * FROM SRO_VT_ACCOUNT.dbo._UniqueRank order by total desc)
and give 1 top academy ranking 1
and truncate SRO_VT_ACCOUNT.dbo._UniqueRank this Table
i hope any one help me for that
where_love2003 is offline  
Old 03/25/2015, 09:07   #2

 
elite*gold: 27
Join Date: Jan 2015
Posts: 1,343
Received Thanks: 892
Do it manually every week xD
Quote:
declare @shiz int = (select max(total) from account.._uniquerank)
declare @lawl varchar(max) = (select top 1 charname16 from account.._uniquerank where total = @shiz)
declare @lel int = (select charid from _char where charname16 like @lawl)
declare @jjaja int = (Select TOP 1 CampID FROM _TrainingCampBuffStatus Where RecipientCharID = @lel)
UPDATE [Dbo].[_TrainingCamp]
SET GraduateCount = 87729
WHERE [Dbo].[_TrainingCamp].[ID] = @jjaja
UPDATE [dbo].[_TrainingCampMember]
SET HonorPoint = 559970
WHERE [dbo].[_TrainingCampMember].[CampID]=@jjaja
Aaron* is offline  
Thanks
1 User
Old 03/25/2015, 22:20   #3
 
where_love2003's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 193
Received Thanks: 27
but what can i do if char not in academy ?

any help pleas
where_love2003 is offline  
Old 03/26/2015, 05:26   #4
 
elite*gold: 0
Join Date: Dec 2008
Posts: 38
Received Thanks: 14
Quote:
Originally Posted by where_love2003 View Post
but what can i do if char not in academy ?

any help pleas
I think there is a stored procedure to create a training camp. So you could check a table which is a list of all the training camps on the server, see if the character's name is listed

pseduo-sql: declare @MyCounter int;
SELECT @MyCounter = COUNT(*)
FROM (SELECT CharName16 FROM ListofTrainingCampsTable where CharName16 LIKE @CharNameOfAcademyLeader)
IF @MyCounter =0 then exec _create_a_training_camp(@CharNameOfAcademyLeader)

update***
I got asked a question: "but what about @CharNameOfAcademyLeader ? "
answer:
i think this variable will be filled with a real character name as a result of the query to find the best unique killer on the server:
@CharNameOfAcademyLeader --> pseduo-sql: Select top 1 player of unique kills
ersers2 is offline  
Thanks
2 Users
Old 03/26/2015, 06:22   #5
 
where_love2003's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 193
Received Thanks: 27
Quote:
Originally Posted by ersers2 View Post
I think there is a stored procedure to create a training camp. So you could check a table which is a list of all the training camps on the server, see if the character's name is listed

pseduo-sql: declare @MyCounter int;
SELECT @MyCounter = COUNT(*)
FROM (SELECT CharName16 FROM ListofTrainingCampsTable where CharName16 LIKE @ CharNameOfAcademyLeader)
IF @MyCounter =0 then exec _create_a_training_camp(@CharNameOfAcademyLeader)
thanks sir to try help me
where_love2003 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Trading] Minecraft Account(Gommehd. net Life Time) gegen wow game time
11/12/2014 - Minecraft Trading - 2 Replies
Tausche Minecraft Account Hallo liebe potenzielen Tauscher oder Interesenten oder andere Menschen. wie im Titel schon erwähnt Tausche ich meinen Minecraft Account. Dieser hat folgendes: -GommeHD. net Lifetime -Skin änderbar -Passwort änderbar



All times are GMT +1. The time now is 12:54.


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.