main quest lv5 doc


----------------------------------

-- 메인퀘스트 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



Wyszukiwarka

Podobne podstrony:
LAB01 MAIN DOC
MAIN DOC
Main engines doc
G 2 0 DOHC Main Relay doc
Warhammer Quest [cards & floorplans] Main Boxed Set, Event Cards
BP10 doc
europejski system energetyczny doc
BP3 doc
Zaburzenia u dzieci i mlodziezy (1) doc
Pirates of the Spanish Main Smuggler's Song
C20090551288 B9780323067942000420 main
C20090551288 B9780323067942000055 main
KLASA 1 POZIOM ROZSZERZONY doc Nieznany
P000476 D Eng Main dimensions
5 M1 OsowskiM BalaR ZAD5 doc
Opis zawodu Hostessa, Opis-stanowiska-pracy-DOC
Messerschmitt Me-262, DOC
Opis zawodu Robotnik gospodarczy, Opis-stanowiska-pracy-DOC
Opis zawodu Położna, Opis-stanowiska-pracy-DOC

więcej podobnych podstron