forked from metin2/server
215 lines
5.5 KiB
Plaintext
215 lines
5.5 KiB
Plaintext
|
quest collect_quest_reset begin
|
|||
|
state start begin
|
|||
|
when login with pc.level >= 92 begin
|
|||
|
if tostring(get_quest_state("collect_quest_lv92")) == "557528158" or
|
|||
|
tostring(get_quest_state("collect_quest_lv94")) == "557528158" or
|
|||
|
tostring(get_quest_state("collect_quest_lv96")) == "557528158" then
|
|||
|
set_state( check_reset_able )
|
|||
|
end
|
|||
|
end
|
|||
|
end
|
|||
|
|
|||
|
state check_reset_able begin
|
|||
|
when 20091.chat."<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>ް<EFBFBD> <20>ʹٰ<CDB4>?!" begin
|
|||
|
--- l
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ҵ<DEBE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٲٰ<D9B2> <20>ʹٰ<CDB4>?")
|
|||
|
say("<22><>....")
|
|||
|
say("")
|
|||
|
|
|||
|
wait()
|
|||
|
|
|||
|
if get_time() < pc.getqf("duration") then
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD> <20><><EFBFBD>ٴ<EFBFBD>..")
|
|||
|
say("<22><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>ϱ<EFBFBD>..")
|
|||
|
say("<22><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0>̾ȵǾ<C8B5><C7BE><EFBFBD>!")
|
|||
|
return
|
|||
|
end
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD> <20>ȱ<C8B1><D7B7><EFBFBD> õ<><C3B5><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF>ؼ<EFBFBD>")
|
|||
|
say("<22>ڳ<EFBFBD> <20>ٽ<EFBFBD> ã<><C3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ϰ<EFBFBD> <20>־<EFBFBD><D6BE><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ؿԴ<D8BF> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
|||
|
say("õ<><C3B5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> õ<><C3B5><EFBFBD><EFBFBD> <20><><EFBFBD>Ҽ<EFBFBD> <20>ִٰ<D6B4> <20>ϳ<EFBFBD>")
|
|||
|
say("<22>װ<EFBFBD><D7B0><EFBFBD> 5<><35><EFBFBD><EFBFBD> <20><><EFBFBD>ش<EFBFBD> <20>ְԳ<D6B0>")
|
|||
|
say("")
|
|||
|
|
|||
|
wait()
|
|||
|
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("õ<><C3B5><EFBFBD><EFBFBD> 5<><35> <20><><EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ҵ<DEBE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0><EFBFBD><EFBFBD><EFBFBD>")
|
|||
|
say("<22>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٲ<EFBFBD><D9B2>ֵ<EFBFBD><D6B5><EFBFBD> <20>ϰڳ<CFB0>")
|
|||
|
say("<22><EFBFBD><EEB6B2>?")
|
|||
|
say("")
|
|||
|
|
|||
|
local s = select("<22><><EFBFBD><EFBFBD> <20><><EFBFBD>ش<EFBFBD> <20>帱<EFBFBD><E5B8B1><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD> <20><> <20>غ<EFBFBD><D8BA><EFBFBD><EFBFBD><EFBFBD>")
|
|||
|
|
|||
|
if s == 1 then
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22> <20>ٳ<EFBFBD><D9B3><EFBFBD><EFBFBD>Գ<EFBFBD> <20><><EFBFBD>ٸ<EFBFBD><D9B8><EFBFBD> <20>ְڳ<D6B0>~")
|
|||
|
say("")
|
|||
|
|
|||
|
set_state( find_jewel )
|
|||
|
else
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><EFBFBD><D7B7>Գ<EFBFBD>. <20>ɻ<EFBFBD><C9BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>Ұ<EFBFBD><D2B0>̾<EFBFBD>")
|
|||
|
say("")
|
|||
|
end
|
|||
|
end
|
|||
|
end
|
|||
|
|
|||
|
state find_jewel begin
|
|||
|
when letter begin
|
|||
|
send_letter("<22>鼱<EFBFBD><E9BCB1> <20><><EFBFBD><EFBFBD>")
|
|||
|
end
|
|||
|
|
|||
|
when button or info begin
|
|||
|
say("")
|
|||
|
say("<22>·<EFBFBD><C2B7> <20>ִ<EFBFBD> <20>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("õ<><C3B5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ְ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٲ<EFBFBD><D9B2><EFBFBD>")
|
|||
|
say("")
|
|||
|
|
|||
|
say_item_vnum( 30254 )
|
|||
|
|
|||
|
say_reward(" <20><><EFBFBD><EFBFBD> "..pc.getqf("collect_count").." <20><><EFBFBD><EFBFBD> <20>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD> <20>־<EFBFBD><D6BE><EFBFBD><EFBFBD>ϴ<EFBFBD>")
|
|||
|
say("")
|
|||
|
end
|
|||
|
|
|||
|
when 2401.kill or 2402.kill or 2403.kill or 2404.kill begin
|
|||
|
if number(1, 500) <= 3 then
|
|||
|
pc.give_item2(30254, 1)
|
|||
|
send_letter("õ<><C3B5><EFBFBD><EFBFBD> ȹ<><C8B9><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>")
|
|||
|
end
|
|||
|
end
|
|||
|
|
|||
|
when 2411.kill or 2412.kill or 2413.kill or 2414.kill begin
|
|||
|
if number(1, 500) <= 5 then
|
|||
|
pc.give_item2(30254, 1)
|
|||
|
send_letter("õ<><C3B5><EFBFBD><EFBFBD> ȹ<><C8B9><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>")
|
|||
|
end
|
|||
|
end
|
|||
|
|
|||
|
when 20091.chat."õ<><C3B5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>°հ<C2B0>?" with pc.count_item(30254) > 0 begin
|
|||
|
pc.remove_item( 30254 , 1 )
|
|||
|
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD>...")
|
|||
|
|
|||
|
setdelay(150)
|
|||
|
say("..........")
|
|||
|
resetdelay()
|
|||
|
|
|||
|
if number(1, 100) <= 20 then
|
|||
|
say("<22>̰<EFBFBD> <20><>¥<EFBFBD><C2A5>...")
|
|||
|
say("<22>ٽ<EFBFBD> ã<>ƺ<EFBFBD><C6BA>Գ<EFBFBD>")
|
|||
|
say("")
|
|||
|
return
|
|||
|
end
|
|||
|
|
|||
|
say("<22><>... <20><EFBFBD> <20>̰<EFBFBD> <20>и<EFBFBD> õ<><C3B5><EFBFBD>̾<EFBFBD>")
|
|||
|
say("")
|
|||
|
|
|||
|
wait()
|
|||
|
|
|||
|
local count = pc.getqf( "collect_count" ) + 1
|
|||
|
|
|||
|
if count < 5 then
|
|||
|
pc.setqf( "collect_count", count )
|
|||
|
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD> " .. 5-count .. " <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>ش<EFBFBD> <20>ָ<EFBFBD> <20>dz<EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ְԳ<D6B0>")
|
|||
|
say("")
|
|||
|
return
|
|||
|
end
|
|||
|
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><><EFBFBD>Ӵ<EFBFBD><D3B4><EFBFBD> <20>ڳ<DAB3><D7BF><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٲ<EFBFBD> <20>ְڳ<D6B0>")
|
|||
|
say("")
|
|||
|
|
|||
|
local selTab = {}
|
|||
|
local pos = 1
|
|||
|
|
|||
|
if tostring(get_quest_state("collect_quest_lv92")) == "557528158" then
|
|||
|
table.insert(selTab, pos, "ȫõ<C8AB>Ǻ<EFBFBD><C7BA><EFBFBD> <20><><EFBFBD><EFBFBD>")
|
|||
|
pos = pos + 1
|
|||
|
end
|
|||
|
|
|||
|
if tostring(get_quest_state("collect_quest_lv94")) == "557528158" then
|
|||
|
table.insert(selTab, pos, "<22><>õ<EFBFBD>Ǻ<EFBFBD><C7BA><EFBFBD> <20><><EFBFBD><EFBFBD>")
|
|||
|
pos = pos + 1
|
|||
|
end
|
|||
|
|
|||
|
if tostring(get_quest_state("collect_quest_lv96")) == "557528158" then
|
|||
|
table.insert(selTab, pos, "ûõ<C3BB>Ǻ<EFBFBD><C7BA><EFBFBD> <20><><EFBFBD><EFBFBD>")
|
|||
|
pos = pos + 1
|
|||
|
end
|
|||
|
|
|||
|
local s = select_table( selTab )
|
|||
|
|
|||
|
if selTab[s] == "lv92 ȫõ<C8AB>Ǻ<EFBFBD><C7BA><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
|||
|
affect.remove_collect(1, 1000)
|
|||
|
affect.remove_collect(apply.DEF_GRADE_BONUS, 120)
|
|||
|
affect.remove_collect(apply.ATT_GRADE_BONUS, 51)
|
|||
|
|
|||
|
s = select("ü<><C3BC> +1000", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +120", "<22><><EFBFBD>ݷ<EFBFBD> +51")
|
|||
|
|
|||
|
if s == 1 then
|
|||
|
affect.add_collect(1, 1000, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv92","reward","1")
|
|||
|
elseif s == 2 then
|
|||
|
affect.add_collect(apply.DEF_GRADE_BONUS, 120, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv92","reward","2")
|
|||
|
elseif s == 3 then
|
|||
|
affect.add_collect(apply.ATT_GRADE_BONUS, 51, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv92","reward","3")
|
|||
|
end
|
|||
|
elseif selTab[s] == "lv94 <20><>õ<EFBFBD>Ǻ<EFBFBD><C7BA><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
|||
|
affect.remove_collect(1, 1100)
|
|||
|
affect.remove_collect(apply.DEF_GRADE_BONUS, 140)
|
|||
|
affect.remove_collect(apply.ATT_GRADE_BONUS, 60)
|
|||
|
|
|||
|
s = select("ü<><C3BC> +1100", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +140", "<22><><EFBFBD>ݷ<EFBFBD> +60")
|
|||
|
|
|||
|
if s == 1 then
|
|||
|
affect.add_collect(1, 1100, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv94","reward","1")
|
|||
|
elseif s == 2 then
|
|||
|
affect.add_collect(apply.DEF_GRADE_BONUS, 140, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv94","reward","2")
|
|||
|
elseif s == 3 then
|
|||
|
affect.add_collect(apply.ATT_GRADE_BONUS, 60, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv94","reward","3")
|
|||
|
end
|
|||
|
elseif selTab[s] == "lv96 ûõ<C3BB>Ǻ<EFBFBD><C7BA><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
|||
|
affect.remove_collect(1, 2000)
|
|||
|
affect.remove_collect(apply.DEF_GRADE_BONUS, 700)
|
|||
|
affect.remove_collect(apply.ATT_GRADE_BONUS, 300)
|
|||
|
|
|||
|
s = select("ü<><C3BC> +2000", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +700", "<22><><EFBFBD>ݷ<EFBFBD> +300")
|
|||
|
|
|||
|
if s == 1 then
|
|||
|
affect.add_collect(1, 2000, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv96","reward","1")
|
|||
|
elseif s == 2 then
|
|||
|
affect.add_collect(apply.DEF_GRADE_BONUS, 700, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv96","reward","2")
|
|||
|
elseif s == 3 then
|
|||
|
affect.add_collect(apply.ATT_GRADE_BONUS, 300, 60*60*24*365*60)
|
|||
|
pc.setf("collect_quest_lv96","reward","3")
|
|||
|
end
|
|||
|
end
|
|||
|
pc.setqf( "collect_count", 0 )
|
|||
|
set_state( check_reset_able )
|
|||
|
|
|||
|
say("<22>鼱<EFBFBD><E9BCB1><EFBFBD><EFBFBD>")
|
|||
|
say("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٲ<EFBFBD> <20><><EFBFBD>ҳ<EFBFBD>")
|
|||
|
say("<22><> <20>ٲٰ<D9B2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ŀ<EFBFBD> ã<>ƿ<EFBFBD><C6BF>Գ<EFBFBD>")
|
|||
|
say("")
|
|||
|
pc.setqf("duration", get_time()+60*60*24*7)
|
|||
|
end
|
|||
|
end
|
|||
|
end
|
|||
|
|