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:
Simply add it right after the following line, which can be found at the very end of your proc
Enjoy!
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
Code:
SET @CharID = IDENT_CURRENT('Chars')