define acient_rubbing 31001 define acient_doc 31002 ---------------------------------- -- ¸ÞÀÎÄù½ºÆ® LV60 -- ÀÇ¿ÜÀÇ ´Ü¼­ : À»µÎÁö¿Í Èæ¾Ï±¹ -- 2011.11.24 ±è¿ë¿í ---------------------------------- quest main_quest_lv60 begin state start begin when login or levelup or enter with pc.get_level() >= 60 begin if pc.getf("main_quest_lv55", "__status")==main_quest_lv55.__COMPLETE__ then set_state ( quest1_begin ) end end end state run begin when login or levelup or enter with pc.get_level() >= 60 begin set_state ( quest1_begin ) end end state quest1_begin begin when letter begin --Äù½ºÆ®ÆíÁö1 send_letter(gameforge.main_quest_lv60._10_sendLetter) -- À»µÎÁö¸¦ °¡¸®Å²´Ù. local vid_20011 = find_npc_by_vnum(20011) if 0 != vid_20011 then target.vid("__TARGET__", vid_20011, mob_name(20011)) end end when button or info begin -- Äù½ºÆ®ÆíÁö1 ³»¿ë say_title(gameforge.main_quest_lv60._10_sendLetter) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._20_say) say("") end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._30_say) say("") wait() say_title(pc.getname()) say(gameforge.main_quest_lv60._40_say) say("") wait() say_title(mob_name(20011)) say(gameforge.main_quest_lv60._50_say) say("") set_state ( quest2_begin ) end end state quest2_begin begin -----------Äù½ºÆ®ÆíÁö2------------ when letter begin send_letter(gameforge.main_quest_lv60._60_sendLetter) -- À»µÎÁö¸¦ °¡¸®Å²´Ù. local v = find_npc_by_vnum(20011) if 0 != v then target.vid("__TARGET__", v, mob_name(20011)) end end when button or info begin say_title(gameforge.main_quest_lv60._60_sendLetter) say(gameforge.main_quest_lv60._70_say) say("") end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._80_say) say("") wait() say_title(mob_name(20011)) say(gameforge.main_quest_lv60._90_say) say("") wait() say_title(pc.getname()) say(gameforge.main_quest_lv60._100_say) say("") wait() say_title(mob_name(20011)) say(gameforge.main_quest_lv60._110_say) set_state (quest2_ongoing) end end state quest2_ongoing begin --À»µÎÁö¿Í ´ëÈ­ÇÏ°í Źº»À» ¹Þ¾Æ¿À¶ó´Â ¹Ì¼ÇÀ» ¹Þ¾Ò´Ù. -----------Äù½ºÆ®ÆíÁö2------------ when letter begin send_letter(gameforge.main_quest_lv60._60_sendLetter) -- Èæ¾Ï±¹ÀÇ °í´ë ºñ¼®À» °¡¸®Å²´Ù. (Áö±ÝÀº ¸¶À» npc¸¦ °¡¸®Å²´Ù.) local v = find_npc_by_vnum(20371) if 0 != v then target.vid("__TARGET__", v, mob_name(20371)) end end when button or info begin say_title(gameforge.main_quest_lv60._60_sendLetter) say(gameforge.main_quest_lv60._120_say) say("") end --À»µÎÁö¸¦ ¼±ÅÃÇϸé ÇØ´ç Äù½ºÆ®¿¡ °ü·ÃµÈ ´ëÈ­¸¦ ³ª´­ ¼ö ÀÖ´Ù. when 20011.gameforge.main_quest_lv60._60_sendLetter begin say_title(mob_name(20011)) say(gameforge.main_quest_lv60._130_say) say("") end --Èæ¾Ï±¹ÀÇ °í´ë ºñ¼®À» ´©¸£¸é. when 20371.click begin target.delete("__TARGET__") say_reward(gameforge.main_quest_lv60._140_sayReward) pc.give_item2 ( acient_rubbing ) say("") set_state (quest2_end) end end --°í´ë ºñ¼®ÀÇ Å¹º»À» ¾ò¾ú´Ù. state quest2_end begin -----------Äù½ºÆ®ÆíÁö2------------ when letter begin send_letter(gameforge.main_quest_lv60._60_sendLetter) -- À»µÎÁö¸¦ °¡¸®Å²´Ù. local v = find_npc_by_vnum(20011) if 0 != v then target.vid("__TARGET__", v, mob_name(20011)) end end when button or info begin say_title(gameforge.main_quest_lv60._60_sendLetter) say(gameforge.main_quest_lv60._150_say) say("") end when __TARGET__.target.click begin pc.remove_item ( acient_rubbing, 1 ) target.delete("__TARGET__") say_title(mob_name(20011)) say(gameforge.main_quest_lv60._160_say) say("") wait() say_title(mob_name(20011)) say(gameforge.main_quest_lv60._170_say) say("") wait() say_title(mob_name(20011)) say(gameforge.main_quest_lv60._180_say) say("") wait() say_title(locale.reward) say_reward(string.format(gameforge.main_quest_lv60._190_sayReward, 980000)) say_reward(string.format(gameforge.main_quest_lv60._200_sayReward, 175000)) say_reward(string.format(gameforge.main_quest_lv60._210_sayReward, item_name(71001).." ".."10"..locale.count_postfix)) say_reward(string.format(gameforge.main_quest_lv60._210_sayReward, item_name(50721).." ".."10"..locale.count_postfix)) say_reward(string.format(gameforge.main_quest_lv60._210_sayReward, item_name(50725).." ".."10"..locale.count_postfix)) say("") -- º¸»ó Áö±Þ -- -- ÀÌ°÷¿¡ º¸»ó Áö±ÞÀ» ±¸ÇöÇÑ´Ù. pc.give_exp2(980000) pc.change_money(175000) pc.give_item2(71001, 10) -- Á־ȼú¼­ pc.give_item2(50721, 10) -- º¹¼þ¾Æ²É pc.give_item2(50725, 10) -- ¼®Ã¢Æ÷ set_state (quest3_begin) end end state quest3_begin begin -------Äù½ºÆ®ÆíÁö3--------- when letter begin send_letter(gameforge.main_quest_lv60._220_sendLetter) -- À»µÎÁö¸¦ °¡¸®Å²´Ù. local v = find_npc_by_vnum(20011) if 0 != v then target.vid("__TARGET__", v, mob_name(20011)) end end when button or info begin say_title(gameforge.main_quest_lv60._220_sendLetter) say(gameforge.main_quest_lv60._230_say) say("") end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._240_say) say("") set_state (quest3_ongoing1) end end state quest3_ongoing1 begin -------Äù½ºÆ®ÆíÁö3--------- when letter begin send_letter(gameforge.main_quest_lv60._220_sendLetter) -- ÈæÀû±Í¸ñÀÇ À§Ä¡¸¦ Ç¥½ÃÇÑ´Ù.-- -------------------------------- -------------------------------- end when button or info begin say_title(gameforge.main_quest_lv60._220_sendLetter) say(gameforge.main_quest_lv60._230_say) say("") end --À»µÎÁö¸¦ ¼±ÅÃÇϸé ÇØ´ç Äù½ºÆ®¿¡ °ü·ÃµÈ ´ëÈ­¸¦ ³ª´­ ¼ö ÀÖ´Ù. when 20011.chat.gameforge.main_quest_lv60._220_sendLetter begin say_title(mob_name(20011)) say(gameforge.main_quest_lv60._260_say) say("") end --ÈæÀû±Í¸ñÀ» Àâ¾ÒÀ»¶§ 1000ºÐÀÇ 1 È®·ü·Î Äù½ºÆ® Á¶°ÇÀ» ¸¸Á·½ÃÄÑ ÁØ´Ù. when 2305.kill begin if number (1,100) == 1 then pc.give_item2 (acient_doc, 1 ) say_reward(gameforge.main_quest_lv60._270_sayReward) say("") --3.ÁøÇà set_state (quest3_end1) end end end -- °í´ë¹®¼­¸¦ Çϳª ¾ò¾ú´Ù. À»µÎÁö¿¡°Ô °¡Á®´ÙÁà¾ßÇÑ´Ù. state quest3_end1 begin -------Äù½ºÆ®ÆíÁö3--------- when letter begin send_letter(gameforge.main_quest_lv60._220_sendLetter) -- À»µÎÁö¸¦ °¡¸®Å²´Ù. local v = find_npc_by_vnum(20011) if 0 != v then target.vid("__TARGET__", v, mob_name(20011)) end end when button or info begin say_title(gameforge.main_quest_lv60._220_sendLetter) say(gameforge.main_quest_lv60._230_say) say("") end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._280_say) say("") wait() --@@@@@@@@@¹ö±×@@@@@@@@@@-- --1. ´ÙÀ½ÀÇ ³»¿ëÀÌ ¶ßÁö ¾Ê´Â´Ù. say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| pc.remove_item (acient_doc, 1 ) say(gameforge.main_quest_lv60._290_say) say("") set_state (quest3_ongoing2) end end state quest3_ongoing2 begin --ÀÌ »óÅ¿¡ óÀ½ µé¾î¿À°Ô µÇ¸é '³²Àº °í´ëÀÇ ¹®¼­' Äù½ºÆ® Ç÷¡±×¸¦ »ý¼ºÇÑ´Ù. -- ÃʱⰪÀº 9·Î ½ÃÀÛÇؼ­ ¸ó½ºÅ͸¦ ÀâÀ»¶§¸¶´Ù 1¾¿ ÁÙ¿© 0±îÁö °£´Ù. -- 0ÀÌ µÇ¸é Äù½ºÆ® ½ºÅ×ÀÌÆ®¸¦ º¯È­½ÃŲ´Ù. when enter begin pc.setqf("remain_item",9) end --*************************-- -------Äù½ºÆ®ÆíÁö3_1--------- when letter begin send_letter(gameforge.main_quest_lv60._220_sendLetter) -- ÈæÀû±Í¸ñÀÇ À§Ä¡¸¦ Ç¥½ÃÇÑ´Ù.-- -------------------------------- -------------------------------- end when button or info begin say_title(gameforge.main_quest_lv60._220_sendLetter) say(gameforge.main_quest_lv60._230_say) say("") q.set_counter(gameforge.main_quest_lv60._250_counter, pc.getqf("remain_item")) end ----------------------------- --*************************-- --ÈæÀû±Í¸ñÀ» Àâ¾ÒÀ»¶§ 1000ºÐÀÇ 1 È®·ü·Î ³²Àº °í´ë ¹®¼­ ¼ö¸¦ ÁÙ¿©ÁØ´Ù. when 2305.kill begin if number (1,100) == 1 then local remain_item_prev = pc.getqf("remain_item") pc.setqf("remain_item",remain_item_prev-1) pc.give_item2 (acient_doc, 1 ) notice(string.format(gameforge.main_quest_lv60._300_say,pc.getqf("remain_item"))) -- ¸ðµç ¹®¼­¸¦ ´Ù ¾ò¾úÀ¸¸é ´ÙÀ½ Äù½ºÆ®·Î ³Ñ¾î°£´Ù. if pc.getqf("remain_item")==0 then -- ÈæÀû±Í¸ñÀÇ À§Ä¡ Ç¥½Ã¸¦ ¾ø¾ÖÁØ´Ù -- ------------------------------------- ------------------------------------- set_state (quest3_end2) end end end end state quest3_end2 begin --*************************-- -------Äù½ºÆ®ÆíÁö3_1--------- when letter begin send_letter(gameforge.main_quest_lv60._220_sendLetter) -- À»µÎÁö¸¦ °¡¸®Å²´Ù. local v = find_npc_by_vnum(20011) if 0 != v then target.vid("__TARGET__", v, mob_name(20011)) end end when button or info begin say_title(gameforge.main_quest_lv60._220_sendLetter) say(gameforge.main_quest_lv60._230_say) say("") q.set_counter(gameforge.main_quest_lv60._250_counter, pc.getqf("remain_item")) end ----------------------------- --*************************-- when __TARGET__.target.click begin target.delete("__TARGET__") pc.remove_item (acient_doc, pc.count_item (acient_doc) ) say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._310_say) say("") wait() say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._320_say) say("") wait() say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._330_say) say("") wait() say_title(locale.reward) ----"12345678901234567890123456789012345678901234567890"| say_reward(string.format(gameforge.main_quest_lv60._190_sayReward, 3300000)) say_reward(string.format(gameforge.main_quest_lv60._210_sayReward, item_name(71094).." ".."3"..locale.count_postfix)) say_reward(string.format(gameforge.main_quest_lv60._210_sayReward, item_name(30056))) say_reward(string.format(gameforge.main_quest_lv60._210_sayReward, item_name(30025))) say("") -- º¸»ó Áö±Þ -- pc.give_exp2(3300000) pc.give_item2(71094, 3) -- ¼±ÀÎÀÇ ±³ÈÆ * 3 pc.give_item2(30056) -- °Å¹ÌÁÙ pc.give_item2(30025) -- °Å¹ÌÀÇ µ¶ÁÖ¸Ó´Ï set_state (quest4_begin) end end state quest4_begin begin --*************************-- -------Äù½ºÆ®ÆíÁö4----------- when letter begin send_letter(gameforge.main_quest_lv60._340_sendLetter) -- À»µÎÁö¸¦ °¡¸®Å²´Ù. local v = find_npc_by_vnum(20011) if 0 != v then target.vid("__TARGET__", v, mob_name(20011)) end end when button or info begin say_title(gameforge.main_quest_lv60._340_sendLetter) say(gameforge.main_quest_lv60._350_say) say("") end ----------------------------- --*************************-- when __TARGET__.target.click begin target.delete("__TARGET__") say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._360_say) say("") wait() say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._370_say) say("") wait() say_title(pc.getname()) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._380_say) say("") wait() say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._390_say) say("") wait() say_title(mob_name(20011)) ----"12345678901234567890123456789012345678901234567890"| say(gameforge.main_quest_lv60._400_say) say("") wait() ----"12345678901234567890123456789012345678901234567890"| say_reward(gameforge.main_quest_lv60._410_sayReward) say("") --@@@ ¹ö±× @@@-- --1. Äù½ºÆ® ÆíÁö°¡ »õ·Î ³ªÅ¸³­´Ù. clear_letter() set_quest_state ("main_quest_lv66", "state_0") set_state (__COMPLETE__) end end state __COMPLETE__ begin when enter begin q.done() end end end