Register for your free account! | Forgot your password?

You last visited: Today at 13:47

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

Advertisement



[NEW] Skill reset scrolls (Working 100%)

Discussion on [NEW] Skill reset scrolls (Working 100%) within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
Klito*'s Avatar
 
elite*gold: 0
Join Date: May 2018
Posts: 84
Received Thanks: 44
[NEW] Skill reset scrolls (Working 100%)

Greetings @everyone,

@ this is what you requested.

I created this query to reset the skills and the masteries, it will return all of the skill points that the character used
There are a lot of topics about this scroll but it doesn't return the real skill point that been used, but this does!

Here are the qurey:

Code:
DECLARE @TSP INT
DECLARE @TMSP INT
SET @TSP = (SELECT SUM(A.ReqLearn_SP) FROM _RefSkill A, _CharSkill B WHERE A.GroupID = (SELECT GroupID FROM _RefSkill WHERE ID = B.SkillID) AND A.Basic_Level <= (SELECT Basic_Level FROM _RefSkill WHERE ID = B.SkillID) AND B.CharID = @CharID)
SET @TMSP = (SELECT SUM(A.Exp_M) FROM _RefLevel A, _CharSkillMastery B WHERE A.Lvl <= B.Level - 1 AND B.CharID = @CharID)
UPDATE _Char SET RemainSkillPoint = RemainSkillPoint + @TSP + @TMSP
UPDATE _CharSkillMastery SET Level = 0 WHERE CharID = @CharID
DELETE _CharSkill WHERE SkillID NOT IN (1, 70, 40, 2, 8421, 9354, 9355, 11162, 9944, 8419, 8420, 11526, 10625) AND CharID = @CharID
EDITED:

Due to @ you can replace the last line with:

Code:
DELETE FROM _CharSkill WHERE SkillID NOT IN (SELECT SkillID FROM _RefCharDefault_Skill) AND CharID = @CharID
NOTE: Please dude don't ask me "Where is the _RefObjCommon & _RefObjItem lines?" or "Where/How should I use this?"
If you want to ask those questions then <Answer yourself>

Have A Nice Life!
Klito* is offline  
Thanks
7 Users
Old 01/23/2019, 20:04   #2
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
You can replace:
Code:
DELETE _CharSkill WHERE SkillID NOT IN (1, 70, 40, 2, 8421, 9354, 9355, 11162, 9944, 8419, 8420, 11526, 10625) AND CharID = @CharID
With:
Code:
DELETE skill FROM _CharSkill skill WHERE skill.SkillID NOT IN (SELECT defs.SkillID FROM _RefCharDefault_Skill defs) AND skill.CharID = @CharID
Good job though, it's nice to see that there's still people who can write a clean code other than known ones.
#HB is offline  
Old 01/23/2019, 20:32   #3

 
SubZero**'s Avatar
 
elite*gold: 70
Join Date: Apr 2017
Posts: 1,023
Received Thanks: 504
nice work mate
SubZero** is offline  
Old 01/23/2019, 20:49   #4
 
Klito*'s Avatar
 
elite*gold: 0
Join Date: May 2018
Posts: 84
Received Thanks: 44
Quote:
Originally Posted by #HB View Post
You can replace:
Code:
DELETE _CharSkill WHERE SkillID NOT IN (1, 70, 40, 2, 8421, 9354, 9355, 11162, 9944, 8419, 8420, 11526, 10625) AND CharID = @CharID
With:
Code:
DELETE skill FROM _CharSkill skill WHERE skill.SkillID NOT IN (SELECT defs.SkillID FROM _RefCharDefault_Skill defs) AND skill.CharID = @CharID
Good job though, it's nice to see that there's still people who can write a clean code other than known ones.
Yeah!, but i think this line is shorter:
Code:
DELETE FROM _CharSkill WHERE SkillID NOT IN (SELECT SkillID FROM _RefCharDefault_Skill) AND CharID = @CharID
Thanks dude.

Quote:
Originally Posted by Zoro.Sro View Post
nice work mate
Any Time!
Klito* is offline  
Old 01/23/2019, 23:22   #5
 
elite*gold: 0
Join Date: Aug 2010
Posts: 689
Received Thanks: 375
Quote:
Originally Posted by Klito* View Post
Yeah!, but i think this line is shorter:
Code:
DELETE FROM _CharSkill WHERE SkillID NOT IN (SELECT SkillID FROM _RefCharDefault_Skill) AND CharID = @CharID
Thanks dude.


Any Time!
need fb scroll 16/17/18/19 dg item Weapon/Shield/Armor/Ring set please ? % 100 fb +15 scroll
bende16 is offline  
Old 01/24/2019, 00:35   #6
 
Worshiper's Avatar
 
elite*gold: 0
Join Date: May 2017
Posts: 1,081
Received Thanks: 224
good work
Worshiper is offline  
Old 01/24/2019, 01:52   #7

 
Dev.L0RdReVaN's Avatar
 
elite*gold: 355
Join Date: Mar 2009
Posts: 264
Received Thanks: 52
Thumbs down

Quote:
Originally Posted by Klito* View Post
Greetings @everyone,

@ this is what you requested.

I created this query to reset the skills and the masteries, it will return all of the skill points that the character used
There are a lot of topics about this scroll but it doesn't return the real skill point that been used, but this does!

Here are the qurey:

Code:
DECLARE @TSP INT
DECLARE @TMSP INT
SET @TSP = (SELECT SUM(A.ReqLearn_SP) FROM _RefSkill A, _CharSkill B WHERE A.GroupID = (SELECT GroupID FROM _RefSkill WHERE ID = B.SkillID) AND A.Basic_Level <= (SELECT Basic_Level FROM _RefSkill WHERE ID = B.SkillID) AND B.CharID = @CharID)
SET @TMSP = (SELECT SUM(A.Exp_M) FROM _RefLevel A, _CharSkillMastery B WHERE A.Lvl <= B.Level - 1 AND B.CharID = @CharID)
UPDATE _Char SET RemainSkillPoint = RemainSkillPoint + @TSP + @TMSP
UPDATE _CharSkillMastery SET Level = 0 WHERE CharID = @CharID
DELETE _CharSkill WHERE SkillID NOT IN (1, 70, 40, 2, 8421, 9354, 9355, 11162, 9944, 8419, 8420, 11526, 10625) AND CharID = @CharID
EDITED:

Due to @ you can replace the last line with:

Code:
DELETE FROM _CharSkill WHERE SkillID NOT IN (SELECT SkillID FROM _RefCharDefault_Skill) AND CharID = @CharID
NOTE: Please dude don't ask me "Where is the _RefObjCommon & _RefObjItem lines?" or "Where/How should I use this?"
If you want to ask those questions then <Answer yourself>

Have A Nice Life!

wasn't my request i can do it
Dev.L0RdReVaN is offline  
Old 01/24/2019, 02:34   #8


 
!Apple's Avatar
 
elite*gold: 82
Join Date: Mar 2010
Posts: 451
Received Thanks: 417
GOOD JOB
!Apple is offline  
Old 01/24/2019, 02:49   #9
 
elite*gold: 0
Join Date: Feb 2017
Posts: 8
Received Thanks: 1
Cool

Thnaks alot dude
$telios is offline  
Old 01/24/2019, 19:21   #10
 
Klito*'s Avatar
 
elite*gold: 0
Join Date: May 2018
Posts: 84
Received Thanks: 44
Quote:
Originally Posted by Dev.L0RdReVaN View Post

wasn't my request i can do it
Really!, So why you didn't?
Because it doesn't work in your server, That's a good question (WoW)
You asked me to do it for you but you are like a baby who doesn't want people to look at him and say: "He calls himself a developer and can't write this simple query", Oh dude baby will still a baby!

Code:
Thanks guys for supporting me!
Klito* is offline  
Old 10/18/2019, 21:17   #11
 
elite*gold: 1476
Join Date: Nov 2017
Posts: 102
Received Thanks: 104
Quote:
Originally Posted by #HB View Post
You can replace:
Code:
DELETE _CharSkill WHERE SkillID NOT IN (1, 70, 40, 2, 8421, 9354, 9355, 11162, 9944, 8419, 8420, 11526, 10625) AND CharID = @CharID
With:
Code:
DELETE skill FROM _CharSkill skill WHERE skill.SkillID NOT IN (SELECT defs.SkillID FROM _RefCharDefault_Skill defs) AND skill.CharID = @CharID
Good job though, it's nice to see that there's still people who can write a clean code other than known ones.
Actually if he already picked that info, it's more efficient to do it with a list and save that query each time since these values are usually static. You better notice the important matters, and there are important matters. I don't know how you guys can thank him for such a disaster query.
It's 100% working, in deed, but he forgot to mention that it's 100% working for everyone.
The query takes the data from a specific char but all the players enjoy the SP lol.

Quote:
Originally Posted by Klito* View Post
Code:
UPDATE _Char SET RemainSkillPoint = RemainSkillPoint + @TSP + @TMSP
Have A Nice Life!
But yeah..
Quote:
Originally Posted by #HB View Post
Good job though, it's nice to see that there's still people who can write a clean code other than known ones.
Delete this misleading thread or edit the query.
Code:
UPDATE _Char SET RemainSkillPoint = RemainSkillPoint + @TSP + @TMSP WHERE CharID = @CharID
Have A Nice Life!
FrictionF0 is offline  
Old 10/19/2019, 01:47   #12




 
VORTEX*'s Avatar
 
elite*gold: 1014
Join Date: Apr 2015
Posts: 1,028
Received Thanks: 1,243
is that a show for your skills guys ?
VORTEX* is offline  
Old 10/19/2019, 16:02   #13
 
White Ros3's Avatar
 
elite*gold: 6
Join Date: Nov 2013
Posts: 279
Received Thanks: 223
good job
White Ros3 is offline  
Old 10/20/2019, 22:09   #14
 
elite*gold: 0
Join Date: Oct 2019
Posts: 19
Received Thanks: 0
Gonna try out this.
onkeltonkel is offline  
Old 10/26/2019, 09:19   #15

 
senua's Avatar
 
elite*gold: 36
Join Date: Aug 2017
Posts: 142
Received Thanks: 61
When your _Charskill table reaches the big data situation, these code is going to ****** up.
senua is offline  
Reply


Similar Threads Similar Threads
[Selling] Selling in CETUS 2x 120lv EURO ACCs unskilled (with SKILL RESET SCROLLS) for 61€
04/03/2015 - Silkroad Online Trading - 5 Replies
check out my previous thread here BUY RIGHT NOW FOR ONLY 61€ !!!!! * http://www.elitepvpers.com/forum/silkroad-online-t rading/2878261-selling-2x-120-eu-chars-cetus.html*
100Lvl Stat/Skill reset scrolls.
08/08/2014 - Silkroad Online - 1 Replies
Hello, strange thing has happened to me. I have reached 100 level and my chars have not received reset scrolls. But my other char, very old one, maybe 5 years old has reached 100 level and he got scrolls. Tell me, who is getting those scrolls and who's not?
[Selling] 101lvl Rogue/Bard [Pavo] + skill and stat reset scrolls
05/26/2013 - Silkroad Online Trading - 0 Replies
im selling CLEAN char in server pavo 101lvl FF rogue/bard with 2x skill and 1x stat reset scrolls 3inv pages dead pick pet and 25 reverses i accept gold in centaurus or 10euro paypal/psc PM ME
WTS 2x 114 Bard/Cleric on Orion (Skill reset,Stat reset, Prem+,1000% 10x)
12/11/2012 - Silkroad Online Trading - 5 Replies
- 2x 114 Bard/Cleric on Orion All have: - 1 Skill reset - 1 Stat reset - Prem+ - 1000% 10x more then 1b Gold on 2 Accounts. Cheap!!
WTS 95 heuskal nuker PERSIA [with STAT/SKILL RESET SCROLLS] SEE PROOF INSIDE!!
02/20/2012 - Silkroad Online Trading - 2 Replies
95 heuskal nuker FF in server PERSIA heuk/fire/cold some light +3+4+5 prot set +5 spear FB sun/som accs +3 3 avatars email verified STILL HAS STAT/SKILL RESET SCROLLS...NOT DELETED!!!!!! SEE PROOF



All times are GMT +1. The time now is 13:49.


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.