I want make player can buy scroll of certain skill and when activate the scroll, the new skill will add to his mastery. Or any hint.
SRO_VT_LOG -> Programmability -> Stored Procedures -> _AddLogItemQuote:
I want make player can buy scroll of certain skill and when activate the scroll, the new skill will add to his mastery. Or any hint.
IF ( @ Operation = '41' and @ ItemRefID = 'ItemID')
BEGIN
INSERT SRO_VT_SHARD.dbo._CharSkill VALUES (@ CharID,SkillID,1)
end
IF @ operation = '41' and @ ItemRefID = 'ItemID')
declare @ MasteryiID int
BEGIN
UPDATE SRO_VT_SHARD.._CharskillMastery SET Level = '90'
WHERE MasteryID = 257 and CharID=@ CharID
end
Thank you bro, but this misses the part in refskill where expand mastery slots, ty anyway.Quote:
SRO_VT_LOG -> Programmability -> Stored Procedures -> _AddLogItem
1.This will only add one skill :
ItemID = _RefObjCommonIDPHP Code:IF ( @ Operation = '41' and @ ItemRefID = 'ItemID')
BEGIN
INSERT SRO_VT_SHARD.dbo._CharSkill VALUES (@ CharID,SkillID,1)
end
SkillID= _RefSkill ID
2.This will unlock ONE Chinese mastery and level it up to 90.
Delete the space between @ and the name of the tab [Only registered and activated users can see links. Click Here To Register...]PHP Code:IF @ operation = '41' and @ ItemRefID = 'ItemID')
declare @ MasteryiID int
BEGIN
UPDATE SRO_VT_SHARD.._CharskillMastery SET Level = '90'
WHERE MasteryID = 257 and CharID=@ CharID
end
For some reason that's the mention command.
257 = Bicheon
Here are the masteries:
[Only registered and activated users can see links. Click Here To Register...]
(You can add the scroll yourself, just copy the return scroll from RefObjCommon and RefObjItem, make sure the Link is not the same)
Teleport after using the scroll and make sure the MaxStack of the scroll from RefObjItem is 1.
It many not be the perfect query, but I hope it will give you an idea about how they work.
[Only registered and activated users can see links. Click Here To Register...]
Like this ?Quote:
Thank you bro, but this misses the part in refskill where expand mastery slots, ty anyway.
Yes, when player activate scroll the new skill will have to appear in his mastery so it seems need the scroll when activate consifure the refskill too, or idk if have to be manual. Ty i will use this tool.Quote:
Like this ?
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
It's manual work, [Only registered and activated users can see links. Click Here To Register...]
The scroll/player will have to access the server database, run the query to add the skill in _RefSkill, then the server needs to be restarted so impossible.Quote:
Yes, when player activate scroll the new skill will have to appear in his mastery so it seems need the scroll when activate consifure the refskill too, or idk if have to be manual. Ty i will use this tool.
Mmm i have all these tools already, i will figure it out by myself thank you for help.
So per example, the limit of line of some mastery slots is 9, and i put 10, so when player use scroll there will get the 10th skill?Quote:
The scroll/player will have to access the server database, run the query to add the skill in _RefSkill, then the server needs to be restarted so impossible.
All you can do is add them and the player will unlock them only.
You're welcome.
If the skill is already there (inside the database/client) but hasn't been learned by the player yet and you use the query to unlock the 10th skill with the scroll when the player uses it, then yes.Quote:
So per example, the limit of line of some mastery slots is 9, and i put 10, so when player use scroll there will get the 10th skill?
U mean the player will see his mastery with per example 9 lines ready to learn with sp/lv but the 10th+ are blocked (with those black rows without the "?") and then use the scroll and that 10th unlocked and appear the "?" ?Quote:
If the skill is already there (inside the database/client) but hasn't been learned by the player yet and you use the query to unlock the 10th skill with the scroll when the player uses it, then yes.
The player will see everything BUT the 10th skill or skill row will have a book with "?" on it. Once the scroll is used they unlock the skillQuote:
U mean the player will see his mastery with per example 9 lines ready to learn with sp/lv but the 10th+ are blocked (with those black rows without the "?") and then use the scroll and that 10th unlocked and appear the "?" ?
[Only registered and activated users can see links. Click Here To Register...]Quote:
What will shows in requeriments? nothing? so in refskill i have to put 0 in req skill point?
TyQuote:
[Only registered and activated users can see links. Click Here To Register...]
Yellow box are the requirements
Leave the Req columns to 0 for no requirements