Server: hunt set once per character, rebuild.sh for patch build/deploy/rollback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d163aab949
commit
3fcb27dd4d
@@ -28,6 +28,11 @@ quest hunt_set begin
|
||||
local STEAL_HP, REFLECT_MELEE, EXP, GOLD, DROP = 23, 39, 43, 44, 45
|
||||
local IMMUNE_STUN, IMMUNE_SLOW, ATT_GRADE = 48, 49, 53
|
||||
|
||||
-- One set per character (quest flag hunt_set.opened); the box stays in the bag.
|
||||
if pc.getqf("opened") == 1 then
|
||||
syschat("每个角色只能打开一次小狩猎套装礼包。")
|
||||
return
|
||||
end
|
||||
if pc.get_empty_inventory_count() < 15 then
|
||||
syschat("背包空位不足,请至少留出15格再打开礼包。")
|
||||
return
|
||||
@@ -60,7 +65,7 @@ quest hunt_set begin
|
||||
return
|
||||
end
|
||||
-- The dialog waited; check again that the box is still there and the bag has room.
|
||||
if pc.count_item(50307) < 1 or pc.get_empty_inventory_count() < 15 then
|
||||
if pc.getqf("opened") == 1 or pc.count_item(50307) < 1 or pc.get_empty_inventory_count() < 15 then
|
||||
syschat("背包空位不足,请至少留出15格再打开礼包。")
|
||||
return
|
||||
end
|
||||
@@ -70,6 +75,7 @@ quest hunt_set begin
|
||||
local helmets = { 12209, 12349, 12489, 12629 }
|
||||
local main, armor, helmet = mains[job + 1], armors[job + 1], helmets[job + 1]
|
||||
|
||||
pc.setqf("opened", 1)
|
||||
pc.remove_item(50307, 1)
|
||||
hunt_set.give(weapon, { { CRITICAL, 10 }, { PENETRATE, 10 }, { main, 12 }, { DEVIL, 20 }, { UNDEAD, 20 } })
|
||||
hunt_set.give(armor, { { MAX_HP, 2000 }, { STEAL_HP, 10 }, { ATT_GRADE, 50 }, { REFLECT_MELEE, 10 }, { CAST_SPEED, 20 } })
|
||||
|
||||
Reference in New Issue
Block a user