Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 19:36

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

Advertisement



[Euphoria Dev Team Release] Starter Skills

Discussion on [Euphoria Dev Team Release] Starter Skills within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
Philipp_'s Avatar
 
elite*gold: 576
Join Date: Mar 2011
Posts: 348
Received Thanks: 996
[Euphoria Dev Team Release] Starter Skills

Hello everybody,

this release was created due to me being lazy during other development. I was testing something about skills on my local server and I had to upgrade the skills from 1 up to 9 each time. After some time I thought about avoiding this by adding some lines to the famous usp_Create_Char_R procedure. This release is only important for servers that have the instant leveling feature, and most of all, free or extremely easy servers.
Let's say you create a character whose starting level is 60, you login and want to start playing. Opening the skills window and upgrading each skill to its max with the hundreds of available skillpoints gets annoying. What I am releasing will automatically unlock each skills max skill level.
Here it is:
Code:
SELECT SkillID,MAX(SkillLevel) AS SkillLevel,MAX(Country) AS Country,MAX(Grow) AS Grow,MAX(Attackfighter) AS Attackfighter,MAX(Defensefighter) AS Defensefighter,MAX(Patrolrogue) AS Patrolrogue,MAX(Shootrogue) AS Shootrogue,MAX(Attackmage) AS Attackmage,MAX(Defensemage) AS Defensemage INTO #Skills
FROM PS_GameDefs.dbo.Skills
WHERE ReqLevel <= @Level AND 
	SkillLevel < 100 AND 
	TypeShow > 0 AND 
	(((@Job != 0 OR (Attackfighter = 1)) AND ((@Family != 0 OR (Country IN (6,2,0))) AND (@Family != 3 OR (Country IN (6,5,3)))))
		AND ((@Job != 1 OR (Defensefighter = 1)) AND ((@Family != 0 OR (Country IN (6,2,0))) AND (@Family != 3 OR (Country IN (6,5,3)))))
		AND ((@Job != 2 OR (Patrolrogue = 1)) AND ((@Family != 1 OR (Country IN (6,2,1))) AND (@Family != 2 OR (Country IN (6,5,4)))))
		AND ((@Job != 3 OR (Shootrogue = 1)) AND ((@Family != 1 OR (Country IN (6,2,1))) AND (@Family != 3 OR (Country IN (6,5,3)))))
		AND ((@Job != 4 OR (Attackmage = 1)) AND ((@Family != 1 OR (Country IN (6,2,1))) AND (@Family != 2 OR (Country IN (6,5,4)))))
		AND ((@Job != 5 OR (Defensemage = 1)) AND ((@Family != 0 OR (Country IN (6,2,0))) AND (@Family != 2 OR (Country IN (6,5,4))))))
GROUP BY SkillID

DECLARE @Count INT = (SELECT COUNT(SkillLevel) FROM #Skills)

WHILE @Count > 0
BEGIN
	INSERT INTO CharSkills
	SELECT TOP (1) @CharID,SkillID,SkillLevel,@Count,0,GETDATE(),0
	FROM #Skills

	DELETE TOP (1) FROM #Skills

	SET @Count -= 1
END

DROP TABLE #Skills
Simply add it right after the following line, which can be found at the very end of your proc
Code:
SET @CharID = IDENT_CURRENT('Chars')
Enjoy!

Philipp_ is offline  
Thanks
25 Users
Old 08/01/2013, 20:58   #2
 
[Dev]Matheus's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 60
Received Thanks: 44
I could not make this script work happens the following error:

Code:
Msg 102, Level 15, State 1, Procedure usp_Create_Char_R, Line 117
Incorrect syntax near '('.
Msg 137, Level 15, State 2, Procedure usp_Create_Char_R, Line 119
Must declare the scalar variable "@Count".
Msg 137, Level 15, State 2, Procedure usp_Create_Char_R, Line 122
Must declare the scalar variable "@Count".
Msg 102, Level 15, State 1, Procedure usp_Create_Char_R, Line 127
Incorrect syntax near '-'.
If you can help me and solve this error please.
[Dev]Matheus is offline  
Old 08/01/2013, 21:48   #3
 
Philipp_'s Avatar
 
elite*gold: 576
Join Date: Mar 2011
Posts: 348
Received Thanks: 996
Hello [Dev]Matheus,
this function was written and tested by using SQL Server 2012. I believed todays developers left use the latest software or at least SQL Server 2008. Inline variable assignment, as well as compound operators (Add EQUALS, Minus EQUALS etc.) are available in SQL Server 2008 and upper versions only. Both features are used by me.
For those who are using SQL Server 2005, here is the same code as in the 1st post, just without the features mentioned above.
Code:
SELECT SkillID,MAX(SkillLevel) AS SkillLevel,MAX(Country) AS Country,MAX(Grow) AS Grow,MAX(Attackfighter) AS Attackfighter,MAX(Defensefighter) AS Defensefighter,MAX(Patrolrogue) AS Patrolrogue,MAX(Shootrogue) AS Shootrogue,MAX(Attackmage) AS Attackmage,MAX(Defensemage) AS Defensemage INTO #Skills
FROM PS_GameDefs.dbo.Skills
WHERE ReqLevel <= @Level AND 
	SkillLevel < 100 AND 
	TypeShow > 0 AND 
	(((@Job != 0 OR (Attackfighter = 1)) AND ((@Family != 0 OR (Country IN (6,2,0))) AND (@Family != 3 OR (Country IN (6,5,3)))))
		AND ((@Job != 1 OR (Defensefighter = 1)) AND ((@Family != 0 OR (Country IN (6,2,0))) AND (@Family != 3 OR (Country IN (6,5,3)))))
		AND ((@Job != 2 OR (Patrolrogue = 1)) AND ((@Family != 1 OR (Country IN (6,2,1))) AND (@Family != 2 OR (Country IN (6,5,4)))))
		AND ((@Job != 3 OR (Shootrogue = 1)) AND ((@Family != 1 OR (Country IN (6,2,1))) AND (@Family != 3 OR (Country IN (6,5,3)))))
		AND ((@Job != 4 OR (Attackmage = 1)) AND ((@Family != 1 OR (Country IN (6,2,1))) AND (@Family != 2 OR (Country IN (6,5,4)))))
		AND ((@Job != 5 OR (Defensemage = 1)) AND ((@Family != 0 OR (Country IN (6,2,0))) AND (@Family != 2 OR (Country IN (6,5,4))))))
GROUP BY SkillID

DECLARE @Count INT 
SET @Count = (SELECT COUNT(SkillLevel) FROM #Skills)

WHILE @Count > 0
BEGIN
	INSERT INTO CharSkills
	SELECT TOP (1) @CharID,SkillID,SkillLevel,@Count,0,GETDATE(),0
	FROM #Skills

	DELETE TOP (1) FROM #Skills

	SET @Count = @Count - 1
END

DROP TABLE #Skills
P.S. I advise everyone who is using SQL Server 2005 to upgrade it.
Philipp_ is offline  
Thanks
5 Users
Old 08/02/2013, 05:32   #4
 
[Admin]ßІί†ž's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 162
Received Thanks: 481
Again, great release Philly !
[Admin]ßІί†ž is offline  
Thanks
1 User
Old 02/01/2014, 18:26   #5
 
elite*gold: 0
Join Date: Jan 2013
Posts: 17
Received Thanks: 0
Why do i get this error ?
Msg 137, Level 15, State 2, Line 3
Must declare the scalar variable "@Level".
Msg 102, Level 15, State 1, Line 6
Incorrect syntax near '@Job'.
Msg 137, Level 15, State 2, Line 20
Must declare the scalar variable "@CharID".
elfamosoo is offline  
Old 02/01/2014, 20:43   #6
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
Quote:
Originally Posted by N4TSU View Post
It's like 4-5 months ago, I don't think it'll work..
This makes no sense, why wouldn't it work ?

The problem with his error is that he's most likely using SQL Server 2005, and should upgrade to 2008 R2 or higher.
nubness is offline  
Old 02/01/2014, 21:08   #7
 
elite*gold: LOCKED
Join Date: Oct 2013
Posts: 3,414
Received Thanks: 1,844
I'm sorry, I don't know much about SQL etc..

btw.. #Added to Index
Stureplan is offline  
Old 02/02/2014, 16:25   #8
 
elite*gold: 0
Join Date: Jan 2013
Posts: 17
Received Thanks: 0
Quote:
Originally Posted by nubness View Post
This makes no sense, why wouldn't it work ?

The problem with his error is that he's most likely using SQL Server 2005, and should upgrade to 2008 R2 or higher.
I'm using Sql server 2012 i tried both scripts and got the same error
elfamosoo is offline  
Old 02/02/2014, 20:06   #9
 
Philipp_'s Avatar
 
elite*gold: 576
Join Date: Mar 2011
Posts: 348
Received Thanks: 996
Quote:
Originally Posted by elfamosoo View Post
Why do i get this error ?
Msg 137, Level 15, State 2, Line 3
Must declare the scalar variable "@Level".
Msg 102, Level 15, State 1, Line 6
Incorrect syntax near '@Job'.
Msg 137, Level 15, State 2, Line 20
Must declare the scalar variable "@CharID".
Because you didn't read my explanation, you just copied my query in a new window.

Quote:
Originally Posted by N4TSU View Post
I'm sorry, I don't know much about SQL etc..
Stop commenting then.
Philipp_ is offline  
Thanks
5 Users
Old 11/20/2018, 08:00   #10
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107
hi i use this method and all skill is working.. but buffs is not working.. thanks
[GameAdvisor]Finn is offline  
Old 11/20/2018, 10:10   #11
 
Fordmondeo20's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 72
Received Thanks: 26
with buffs do you probably mean res rune, pid and so on?
Fordmondeo20 is offline  
Old 01/13/2019, 20:46   #12
 
[GameAdvisor]Finn's Avatar
 
elite*gold: 0
Join Date: Sep 2016
Posts: 171
Received Thanks: 107

this what i mean
Buffs Description change to "???"
and when i use said wrong target
[GameAdvisor]Finn is offline  
Old 01/13/2019, 22:22   #13
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
Quote:
Originally Posted by [GameAdvisor]Finn View Post

this what i mean
Buffs Description change to "???"
and when i use said wrong target
Im not sure but probably the problem is in skill lvl
SnickQ is offline  
Thanks
1 User
Old 01/21/2020, 04:34   #14
 
elite*gold: 0
Join Date: Feb 2019
Posts: 14
Received Thanks: 0
Hello, please can you help me ... I am using SQL Server 2008 R2 but the script runs smoothly but when I create a character the Skills are not activated.
aeros031 is offline  
Reply


Similar Threads Similar Threads
[Euphoria Dev Team Release] Starter Gears
02/02/2023 - Shaiya PServer Guides & Releases - 38 Replies
Hello community, I recently saw users asking for a way to let their characters start equipped, since this is not possible by using the existing BaseItemsDefs table. Today I am releasing a way of doing it, which can also replace the BaseItemsDefs table but having more possibilities to realize your ideas. If you are interested in this you might thought about a way of doing this before. The only problem I can imagine you could have had is the ItemUID. Since we want to insert one, or even...
[Euphoria Dev Team Release] Perfect Orange Stats Game Service
05/25/2021 - Shaiya PServer Guides & Releases - 119 Replies
Hello elitepvpers, After multiple requests, I decided to release the Perfect Orange Stats Service that we used on Shaiya Euphoria. Before releasing it, we decided to improve it a little bit, to make it even more powerful and flexible. Some of you might prefer the web based recreation service, we chose to create something different, it's purely game based, you don't have to go on any website to do apply Perfect Orange Stats to your items. The former players of Shaiya Euphoria loved it, it is...
[Release] Metin2 (bin) Starter
06/22/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 4 Replies
Hey, Ich habe immer probleme wenn ich ne .bat benutze also habe ich kurz ma was gemacht..... http://i.epvpimg.com/CLceg.png Virustotal: https://www.virustotal.com/de/file/8af1bcd86d3bba3 363a6f068875e57d6aa04f8b2c7dd7083b3357d22d43692ee/ analysis/1371897962/ Download: gamerzz.cwsurf.de/M2START.zip
5.1 Todesritter auf Starter Edition erstellen / Create Death Knight on Starter Acc's
01/03/2013 - WoW Exploits, Hacks, Tools & Macros - 17 Replies
Sehr geeehrte Damen und Herren. Auf einem Starter Account ist es eigentlich nicht möglich ein Todesritter zu erstellen. Doch mit dem 5.1 Patch ist es durch eine kleine Sicherheitslücke möglich, soviele Todesritter wie möglich zu erstellen. Allerdings bekommt man keine Erfahrung und man bleibt auf lvl55. Ihr könnt auf jedem beliebigen Realm ein Todesritter erstellen doch davor müsst ihr ein Todesritter auf dem Italienischen Realm: "Nemesis" erstellen, erst dann ist es auf jedem Realm...
[RELEASE] Rappelz Starter
07/27/2011 - Rappelz - 9 Replies
Hallo liebe epvp'ers, ich weiß, eigentlich gehören Releases in die Release Section, allerdings halte ich es hier für sinnvoller, da es ein Tool für Rappelz ist. Wir, JP Gaming, möchten einen Starter für Rappelz PServer releasen. So sieht der gute aus: Interface http://spiel.justproject.eu/wartung/first.png



All times are GMT +1. The time now is 19:36.


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.