Recently, I've been adding skills and it was boring searching the slot manually, it really was, so I thought of creating a new query to help me with that using SkillCode from Textdata_Equip&Skill so I created a procedure to do the job, here it is
Procedure, execute it anywhere:
Usage:
Result:
Note: you don't have to select the latest skill on the column, any skill should be fine
Note #2: Remember 0 = slot number 1
Thanks to @$$
Procedure, execute it anywhere:
Code:
Create Procedure _AddNewSkill @SkillName varchar(max) as begin Declare @NewSkillID bigint = (Select max (ID)+1 from SRO_VT_SHARD.._RefSkill) Declare @NewSkillGroupID bigint = (Select max (ID)+1 from SRO_VT_SHARD.._RefSkillGroup) Declare @NewSlot int = (Select max (UI_SkillRow)+1 from SRO_VT_SHARD.._RefSkill where UI_SkillName = @SkillName and UI_SkillRow < 255 and UI_SkillTab < 255) Declare @SkillExists varchar (max) = (Select TOP 1 UI_SkillName from SRO_VT_SHARD.._RefSkill where UI_SkillName = @SkillName) if (@NewSlot < 8 and @SkillExists is not null) begin Select TOP 1 @NewSkillID as NewSkillID,@NewSkillGroupID as NewGroupID,ReqCommon_Mastery1,ReqLearn_Race,UI_SkillTab,UI_SkillPage,UI_SkillColumn,@NewSlot as NewUI_SkillRow from SRO_VT_SHARD.._RefSkill where UI_SkillName = @SkillName end else if (@NewSlot >= 7 and @SkillExists is not null) begin print 'No more slots available on this column' end else if (@SkillExists is null) begin print 'This skillname does not exist' end end
Usage:
Code:
Exec _AddNewSkill 'SN_SKILL_EU_WARRIOR_ONEHANDA_STRIKE_A'
[Only registered and activated users can see links. Click Here To Register...]
Note: you don't have to select the latest skill on the column, any skill should be fine
Note #2: Remember 0 = slot number 1
Thanks to @$$