----------------------------------
-- 메인퀘스트 LV5
-- 잡상인 퀘스트
----------------------------------
quest main_quest_lv5 begin
state start begin
when login begin
if pc.get_level() >= 5 then
setstate( gototeacher )
end
end
when levelup begin
if pc.get_level() >= 5 then
setstate( gototeacher )
end
end
end
state gototeacher begin
when letter begin
local v=find_npc_by_vnum(20354)
if 0==v then
else
target.vid("__TARGET__", v, "去找教官")
end
end
when letter begin
setskin(NOWINDOW)
makequestbutton( locale.MAIN_QUEST_TITLE_DICT[5] )
q.set_title(locale.MAIN_QUEST_TITLE_DICT[5] )
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."군직부여후!"..locale.NORMAL_COLOR)
say("跟教官對話")
end
when info begin
say(locale.NOTICE_COLOR.."군진부여후!"..locale.NORMAL_COLOR)
say("跟教官對話")
end
when __TARGET__.target.click begin
say(locale.NOTICE_COLOR.."報酬"..locale.NORMAL_COLOR)
say_reward("經驗值".." 1300" )
say_reward("金錢".." 1500 兩")
say_reward("物品"..item_name(27001))
pc.give_exp2( 1300 )
pc.change_money( 1500 )
pc.give_item2( 27001 ,50 )
target.delete("__TARGET__")
pc.setqf("state", 1 )
say( locale.MAIN_QUEST_LV5[1] )
q.done()
setstate( __COMPLETE__ )
end
end
state __COMPLETE__ begin
when enter begin
q.done()
end
end
end