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 09:18

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

Advertisement



Simple query to help you adding a new skill

Discussion on Simple query to help you adding a new skill within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Simple query to help you adding a new skill

Recently, I've been adding skills and it was boring searching the slot manually, it really was, so I thought of creating a new query to help me with that using SkillCode from Textdata_Equip&Skill so I created a procedure to do the job, here it is

Procedure, execute it anywhere:
Code:
Create Procedure _AddNewSkill
@SkillName varchar(max)
as
begin
Declare @NewSkillID bigint = (Select max (ID)+1 from SRO_VT_SHARD.._RefSkill)
Declare @NewSkillGroupID bigint = (Select max (ID)+1 from SRO_VT_SHARD.._RefSkillGroup)
Declare @NewSlot int = (Select max (UI_SkillRow)+1 from SRO_VT_SHARD.._RefSkill where UI_SkillName = @SkillName and UI_SkillRow < 255 and UI_SkillTab < 255)
Declare @SkillExists varchar (max) = (Select TOP 1 UI_SkillName from SRO_VT_SHARD.._RefSkill where UI_SkillName = @SkillName)
if (@NewSlot < 8 and @SkillExists is not null)
begin
Select TOP 1 @NewSkillID as NewSkillID,@NewSkillGroupID as NewGroupID,ReqCommon_Mastery1,ReqLearn_Race,UI_SkillTab,UI_SkillPage,UI_SkillColumn,@NewSlot as NewUI_SkillRow from SRO_VT_SHARD.._RefSkill where UI_SkillName = @SkillName
end
else if (@NewSlot >= 7 and @SkillExists is not null)
begin
print 'No more slots available on this column'
end
else if (@SkillExists is null)
begin
print 'This skillname does not exist'
end
end

Usage:
Code:
Exec _AddNewSkill 'SN_SKILL_EU_WARRIOR_ONEHANDA_STRIKE_A'
Result:


Note: you don't have to select the latest skill on the column, any skill should be fine


Note #2: Remember 0 = slot number 1
Thanks to @$$



Mr.Awesome1337 is offline  
Thanks
2 Users
Old 09/14/2019, 07:24   #2
 
elite*gold: 0
Join Date: Apr 2016
Posts: 289
Received Thanks: 67
Nothing query can help you! You should find slot with your eyes, it's better!
If your @SkillName does not exists, nothing selected
This query usefull to add new level to old skill.
btw. keep going :-)
hoangphan7 is offline  
Old 09/14/2019, 07:29   #3
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Quote:
Originally Posted by hoangphan7 View Post
Nothing query can help you! You should find slot with your eyes, it's better!
If your @SkillName does not exists, nothing selected
This query usefull to add new level to old skill.
btw. keep going :-)
SkillName should be the same as UI_SkillName in _RefSkill unless someone changed it in Skilldataenc and didn't change it in _RefSkill, people doesn't do that usually anyways, thank you.
Mr.Awesome1337 is offline  
Old 09/14/2019, 07:43   #4
 
elite*gold: 0
Join Date: Apr 2016
Posts: 289
Received Thanks: 67
Quote:
Originally Posted by Mr.Awesome1337 View Post
SkillName should be the same as UI_SkillName in _RefSkill unless someone changed it in Skilldataenc and didn't change it in _RefSkill, people doesn't do that usually anyways, thank you.
What do you mean "new skill"? Your database always don't have "new skill" if you want to add new one which dont in your database. Your query dont working fine! :-)
hoangphan7 is offline  
Old 09/14/2019, 07:48   #5
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Quote:
Originally Posted by hoangphan7 View Post
What do you mean "new skill"? Your database always don't have "new skill" if you want to add new one which dont in your database. Your query dont working fine! :-)
I think you didn't get my point, let me give you an example
If you want to add a new passive such as a passive skill to give eu 20% inc/abs to make it more balanced, you will have to search manually for the Purify skill and check its column and row and etc so you get to know the new position of the new skill that you want to add, this query does exactly that, it gives you a new skill position that you are free to use to add your new passive skill to latest possible square to the skillcodename you provided, got it?

Mr.Awesome1337 is offline  
Old 09/14/2019, 08:19   #6
 
elite*gold: 0
Join Date: Apr 2016
Posts: 289
Received Thanks: 67
Quote:
Originally Posted by Mr.Awesome1337 View Post
I think you didn't get my point, let me give you an example
If you want to add a new passive such as a passive skill to give eu 20% inc/abs to make it more balanced, you will have to search manually for the Purify skill and check its column and row and etc so you get to know the new position of the new skill that you want to add, this query does exactly that, it gives you a new skill position that you are free to use to add your new passive skill to latest possible square to the skillcodename you provided, got it?

No no :-) Your new skill mean official skill from isro, ksro ..etc...
My new skill mean "real new skill" like this pictures :-)
You can easily count slot skill with your eyes like this!
Count left to right and up to down... from 0 to 1,2,3...

hoangphan7 is offline  
Old 09/14/2019, 15:34   #7
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Quote:
Originally Posted by hoangphan7 View Post
No no :-) Your new skill mean official skill from isro, ksro ..etc...
My new skill mean "real new skill" like this pictures :-)
You can easily count slot skill with your eyes like this!
Count left to right and up to down... from 0 to 1,2,3...

Yes you can do it by your eyes, but not everyone can do this, even the query is a way faster and there is no place for mistaking and this one called "new mastery"
Mr.Awesome1337 is offline  
Old 09/14/2019, 15:37   #8

 
XxGhostSpiriTxX's Avatar
 
elite*gold: 53
Join Date: Jul 2012
Posts: 541
Received Thanks: 190
Thanks For Shared Bro!
XxGhostSpiriTxX is offline  
Thanks
1 User
Old 09/14/2019, 15:49   #9
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Quote:
Originally Posted by esteve458 View Post
Thanks For Shared Bro!
uw
Mr.Awesome1337 is offline  
Old 09/16/2019, 10:04   #10
 
@$$'s Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 733
Received Thanks: 87
Remember 0= slot number 1
@$$ is offline  
Thanks
1 User
Old 09/16/2019, 14:26   #11
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Quote:
Originally Posted by @$$ View Post
Remember 0= slot number 1
thanks for this note
Mr.Awesome1337 is offline  
Reply


Similar Threads Similar Threads
Visualize max skill / adding new npc item / adding new npc
04/10/2016 - SRO Private Server - 4 Replies
Hello ! I'm a little bit confused about disabling some skills from the client.You know if a server is cap 80 I don't want skills above to appear.I tried to make this happen some time ago and the client crashed every time I opened the skill window "S". I know it's about disabling some skills by putting 0 instead of 1 in a line but how do I do it in the proper way because, as I said, it crashed every time. And secondly, is there a software of an easy way to add new NPCs, add new items to...
[Request Help] In adding new Uniques Spawn + adding its notice
03/14/2013 - SRO Private Server - 13 Replies
Hello ... I am learning some DB Editing .. i wanted any one to explain HOW TO , add new unique spawn at one place , like add a Devil shitan at jangan door ever 2 hours from last kill .. ++ i wanted to know how to add Unique Notice .. like " Demon shitan has appeared in Roc Mt. "



All times are GMT +1. The time now is 09:21.


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.