How to make some skills work with STR player only and not work with INT player chin
Add a requirement to learn skill if you have certain amount of STR on the character (just as Snow, means INT chars won't have enough STR to learn it.Quote:
How to make some skills work with STR player only and not work with INT player chin
but any player can make acc full str and open skill and change stat acc to int and he can use skillQuote:
Add a requirement to learn skill if you have certain amount of STR on the character (just as Snow, means INT chars won't have enough STR to learn it.
[Only registered and activated users can see links. Click Here To Register...]
(change INT to STR obviously)
yes i know but after open skill i can change stat from str to int and can use skillQuote:
you can't open the skill without number of STR required...
SRO_VT_SHARD --> _RefSkill --> ReqCommon_Str (column)Quote:
yes i know but after open skill i can change stat from str to int and can use skill
i need skill work with player str only and when change stat from str to int skill stop not work
u can give me query if u have
i make it but player change state str to int after open skill and can use this skillQuote:
SRO_VT_SHARD --> _RefSkill --> ReqCommon_Str (column)
dont forget add same stats in media skilldata_enc
use this query to get the ID from snow shield
select * from SRO_VT_SHARD.._RefSkill where Basic_Code like '%COLD_SHIELD%'
you have to edit by all snow shield skills ReqCommon_Str
thx for helpQuote:
next time write alone
add this in your reset scroll procedure
DELETE FROM [SRO_VT_SHARD].[dbo].[_CharSkill] Where SkillID between '8092' And '8122' and CharID=@CharID
this query delete the snow shield skill by skill id and char id
DELETE FROM SRO_VT_SHARD_INIT.dbo._CharSkill WHERE (SkillID IN (SELECT ID FROM SRO_VT_SHARD_INIT.dbo._RefSkill where (ReqCommon_Int > 0 or ReqCommon_Str > 0))) AND CharID = [MENTION=395373]Chari[/MENTION]D
DECLARE [MENTION=3898309]charname[/MENTION]16 VARCHAR(100) = 'Charname' DECLARE [MENTION=395373]Chari[/MENTION]D INT = (SELECT CharID FROM SRO_VT_SHARD_INIT.dbo._Char WHERE CharName16 = [MENTION=3898309]charname[/MENTION]16) DELETE FROM SRO_VT_SHARD_INIT.dbo._CharSkill WHERE (SkillID IN (SELECT ID FROM SRO_VT_SHARD_INIT.dbo._RefSkill where (ReqCommon_Int > 0 or ReqCommon_Str > 0))) AND CharID = [MENTION=395373]Chari[/MENTION]D
thx for helpQuote:
Add this after the procedure that takes care of stats reset. It will make sure it deletes any kind of skills that have int or str requirement more than 0 on every stat reset attempt.Code:DELETE FROM SRO_VT_SHARD_INIT.dbo._CharSkill WHERE (SkillID IN (SELECT ID FROM SRO_VT_SHARD_INIT.dbo._RefSkill where (ReqCommon_Int > 0 or ReqCommon_Str > 0))) AND CharID = [MENTION=395373]Chari[/MENTION]D
To use it on "old characters" as you say :
Code:DECLARE [MENTION=3898309]charname[/MENTION]16 VARCHAR(100) = 'Charname' DECLARE [MENTION=395373]Chari[/MENTION]D INT = (SELECT CharID FROM SRO_VT_SHARD_INIT.dbo._Char WHERE CharName16 = [MENTION=3898309]charname[/MENTION]16) DELETE FROM SRO_VT_SHARD_INIT.dbo._CharSkill WHERE (SkillID IN (SELECT ID FROM SRO_VT_SHARD_INIT.dbo._RefSkill where (ReqCommon_Int > 0 or ReqCommon_Str > 0))) AND CharID = [MENTION=395373]Chari[/MENTION]D