Files
mtgodot-poc/tools/server/support-skills/support_skills_max.quest
T
shenleiandClaude Opus 5.5 f8bbfc7fb3 server: support skills at max level on a character's first login
support_skills_max.quest sets 121/122/124/126-129/131 to their skill_proto
max, the horse to level 30 (skill 130) and the horse skills 137-139 (140 for
assassins), once per character. install.sh adds it to locale_list and
pc.set_skill_level to quest_functions (qc rejects it otherwise), then make.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 08:45:58 +09:00

37 lines
1.1 KiB
Plaintext

-- Every character gets the support skills at their highest level on its first login (install.sh).
-- UTF-8 here; install.sh converts it to GBK for qc. Levels are the max_level of skill_proto on 203.
quest support_skills_max begin
state start begin
when login begin
local skills = {
{ 121, 40 }, -- 统御
{ 122, 2 }, -- 连击
{ 124, 40 }, -- 采矿
{ 126, 20 }, -- 盛唐语
{ 127, 20 }, -- 秦皇语
{ 128, 20 }, -- 汉武语
{ 129, 40 }, -- 幻化
{ 131, 10 }, -- 召唤马匹
{ 137, 1 }, -- 乱舞
{ 138, 1 }, -- 突击
{ 139, 1 }, -- 脱出
}
for i = 1, table.getn(skills) do
pc.set_skill_level(skills[i][1], skills[i][2])
end
-- 乱舞(弓) is the assassin's (char_skill.cpp: SKILL_HORSE_WILDATTACK_RANGE).
if pc.get_job() == 1 then
pc.set_skill_level(140, 1)
end
-- 骑马 (130) is the horse level (CHARACTER::SetHorseLevel), at most HORSE_MAX_LEVEL 30.
if horse.get_level() < 30 then
horse.set_level(30)
end
syschat("辅助技能已全部提升到最高等级,马匹已升到30级。")
set_state("done")
end
end
state done begin
end
end