I've noticed that there are some p-servers that do the auto skill thing for conti's and such. I couldn't find the script to do it, so I modified the database stored procedure that reads the applied skills.
( usp_Read_Char_ApplySkills_R )
psudo code ( what the code does in laymans terms ):
1. Applies skills during toon login when the skills for the toon are read by the login procedure.
a. Checks to see if the skill is already applied.
b. if skill is applied, reset the timer to full term.
c. if skill is not applied, add it.
2. Returns the applied skills ( including ones we just added ) to the client
Comments at the begining of the section describe what is being added. If your skill table is different than mine,
you will need to adjust the skillid's to match what is in YOUR database table.
I've also included some stored procedures to read drops. ShowGrade -- shows all items of a grade that you specify Usage: exec ShowGrade 50 ShowDropsByMobName -- shows the grade, itemname, mobname,mobid, and droprate with a mob name that you specify Usage: exec ShowDropsByMobName 'lumen' -- shows drops for mobname that is EXACTLY 'lumen'
or ShowDropsByMobName '%boar%' -- shows drops for mobname that has 'boar' anywhere in the mobname
or ShowDropsByMobName '******%' -- shows drops for mobname that starts with '******' ShowDropsByGrade -- shows the grade, itemname, mobname,mobid, and droprate with an item name that you specify Usage: similar to ShowDropsByMobName
In addition to being able to quickly search drops directly from the DB, the stored procs can be referenced from a website to provide a searchable drop list.
Can you build script only for new players what makes characters and get all of those 30 days without recharge time plz
Use change stat point per level for Hard Mode do like if was Ultimate and use script like this and all your toon are HM and no need Rez rune and when die get all HP MP SP
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Create_Char_R] Script Date: 05/19/2012 18:11:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
/****** 개체: 저장 프로시저 dbo.usp_Create_Char_R 스크립트 날짜: 2006-05-30 오후 12:53:23 ******/
DECLARE @Ret int
IF @Grow = 0 -- Hard MODE lvl 1
BEGIN
SET @Grow = 2
SET @Level = 15
SET @StatPoint = 126
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 28
END
ELSE IF @Job = 1
BEGIN
SET @rec = 26
END
ELSE IF @Job = 2
BEGIN
SET @dex = 33
END
ELSE IF @Job = 3
BEGIN
SET @luc = 27
END
ELSE IF @job = 4
BEGIN
SET @int = 29
END
ELSE IF @job = 5
BEGIN
SET @wis = 28
END
END
ELSE IF @Grow = 1 -- Hard Mode lvl 30
BEGIN
SET @Grow = 2
SET @Level = 30
SET @StatPoint = 261
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 43
END
ELSE IF @Job = 1
BEGIN
SET @rec = 41
END
ELSE IF @Job = 2
BEGIN
SET @dex = 48
END
ELSE IF @Job = 3
BEGIN
SET @luc = 42
END
ELSE IF @job = 4
BEGIN
SET @int = 44
END
ELSE IF @job = 5
BEGIN
SET @wis = 43
END
END
ELSE IF @Grow = 2 -- Hard mode lvl 60
BEGIN
SET @Grow = 2
SET @Level = 60
SET @StatPoint = 531
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 73
END
ELSE IF @Job = 1
BEGIN
SET @rec = 71
END
ELSE IF @Job = 2
BEGIN
SET @dex = 78
END
ELSE IF @Job = 3
BEGIN
SET @luc = 72
END
ELSE IF @job = 4
BEGIN
SET @int = 74
END
ELSE IF @job = 5
BEGIN
SET @wis = 73
END
END
ELSE IF @Grow = 2 -- Hard mode lvl 90 or what you want
BEGIN
SET @Grow = 2
SET @Level = 90
SET @StatPoint = 810
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 73
END
ELSE IF @Job = 1
BEGIN
SET @rec = 71
END
ELSE IF @Job = 2
BEGIN
SET @dex = 78
END
ELSE IF @Job = 3
BEGIN
SET @luc = 72
END
ELSE IF @job = 4
BEGIN
SET @int = 74
END
ELSE IF @job = 5
BEGIN
SET @wis = 73
END
END
SET @CharName = LTRIM(RTRIM(@CharName))
SET @Ret = 0
SET @NameCnt = (SELECT ISNULL(COUNT(*),0) FROM Chars WHERE CharName=@CharName AND Del=0)
IF(@NameCnt <> 0)
BEGIN
RETURN -2
END
ELSE
BEGIN
IF EXISTS ( SELECT CharID FROM Chars WHERE CharName=@CharName AND Del = 1 AND [Level] >10 AND DeleteDate > DATEADD(dd, -7, GETDATE()) )
BEGIN
RETURN -2
END
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Read_Char_ApplySkills_R] Script Date: 02/25/2015 23:26:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Proc [dbo].[usp_Read_Char_ApplySkills_R]
@CharID int
AS
SET NOCOUNT ON
---Ress 30 Dias
if exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=286 and skilllevel=3)
begin
update charapplyskills set LeftResettime=2592000 where CharID=@charID and skillid=286
end
if not exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=286)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values (@CharID, 286,3,2592000)
end
---Resist endurance 30 days
if exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=225 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID=@charID and skillid=225
end
if not exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=225)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values (@CharID, 225,1,2592000)
end
---Red Phoenx amulet 30 days
if exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=233 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID=@charID and skillid=233
end
if not exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=233)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values (@CharID, 233,1,2592000)
end
---Prevent Item Drop 30 days
if exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=227 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID=@charID and skillid=227
end
if not exists ( select skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=227)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime)
Values (@CharID, 227,1,2592000)
end
SELECT SkillID,SkillLevel,LeftResetTime FROM CharApplySkills WHERE CharID=@CharID
just go into the stored procedure usp_Create_Char_R in the database and remove the code that was posted above if you wanted to remove it
Quote:
Originally Posted by momocruz
Use change stat point per level for Hard Mode do like if was Ultimate and use script like this and all your toon are HM and no need Rez rune and when die get all HP MP SP
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Create_Char_R] Script Date: 05/19/2012 18:11:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
/****** 개체: 저장 프로시저 dbo.usp_Create_Char_R 스크립트 날짜: 2006-05-30 오후 12:53:23 ******/
DECLARE @Ret int
IF @Grow = 0 -- Hard MODE lvl 1
BEGIN
SET @Grow = 2
SET @Level = 15
SET @StatPoint = 126
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 28
END
ELSE IF @Job = 1
BEGIN
SET @rec = 26
END
ELSE IF @Job = 2
BEGIN
SET @dex = 33
END
ELSE IF @Job = 3
BEGIN
SET @luc = 27
END
ELSE IF @job = 4
BEGIN
SET @int = 29
END
ELSE IF @job = 5
BEGIN
SET @wis = 28
END
END
ELSE IF @Grow = 1 -- Hard Mode lvl 30
BEGIN
SET @Grow = 2
SET @Level = 30
SET @StatPoint = 261
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 43
END
ELSE IF @Job = 1
BEGIN
SET @rec = 41
END
ELSE IF @Job = 2
BEGIN
SET @dex = 48
END
ELSE IF @Job = 3
BEGIN
SET @luc = 42
END
ELSE IF @job = 4
BEGIN
SET @int = 44
END
ELSE IF @job = 5
BEGIN
SET @wis = 43
END
END
ELSE IF @Grow = 2 -- Hard mode lvl 60
BEGIN
SET @Grow = 2
SET @Level = 60
SET @StatPoint = 531
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 73
END
ELSE IF @Job = 1
BEGIN
SET @rec = 71
END
ELSE IF @Job = 2
BEGIN
SET @dex = 78
END
ELSE IF @Job = 3
BEGIN
SET @luc = 72
END
ELSE IF @job = 4
BEGIN
SET @int = 74
END
ELSE IF @job = 5
BEGIN
SET @wis = 73
END
END
ELSE IF @Grow = 2 -- Hard mode lvl 90 or what you want
BEGIN
SET @Grow = 2
SET @Level = 90
SET @StatPoint = 810
SET @SkillPoint = 9999
SET @money = 2000000
IF @Job = 0
BEGIN
SET @Str = 73
END
ELSE IF @Job = 1
BEGIN
SET @rec = 71
END
ELSE IF @Job = 2
BEGIN
SET @dex = 78
END
ELSE IF @Job = 3
BEGIN
SET @luc = 72
END
ELSE IF @job = 4
BEGIN
SET @int = 74
END
ELSE IF @job = 5
BEGIN
SET @wis = 73
END
END
SET @CharName = LTRIM(RTRIM(@CharName))
SET @Ret = 0
SET @NameCnt = (SELECT ISNULL(COUNT(*),0) FROM Chars WHERE CharName=@CharName AND Del=0)
IF(@NameCnt <> 0)
BEGIN
RETURN -2
END
ELSE
BEGIN
IF EXISTS ( SELECT CharID FROM Chars WHERE CharName=@CharName AND Del = 1 AND [Level] >10 AND DeleteDate > DATEADD(dd, -7, GETDATE()) )
BEGIN
RETURN -2
END
IF( @@ERROR=0 )
BEGIN
COMMIT TRANSACTION
END
ELSE
BEGIN
ROLLBACK TRANSACTION
RETURN -1
END
SET @CharID = IDENT_CURRENT('Chars')
END
RETURN @CharID
SET NOCOUNT OFF
Just use Brain.EXE and Search Butom
the idea of that is good but comes with problems because you would have to also go in and edit all the gears, weapons, accessories, mounts and skills that only UMs can use and HMs don't have access to in turn I think it would be more work as to just writing a script for it
Wie Speichert man die Login daten und macht nen Auto Login 07/15/2010 - Metin2 Private Server - 5 Replies Souh ma wieder ne "Blöde Frage"... wie speichert man die login daten und macht nen autologin für den client wie es hier gemacht worden ist: http://www.elitepvpers.com/forum/metin2-pserver-dis cussions-questions/616285-my-new-client.html
Über ne antwort würde ich mich freuen...