---------------------------------------------------- --COLLECT QUEST_lv85 --METIN2 ¼öÁý Äù½ºÆ® ---------------------------------------------------- quest collect_quest_lv85 begin state start begin end state run begin when login or levelup with pc.level >= 85 begin set_state(information) end end state information begin when letter begin local v = find_npc_by_vnum(20084) if v != 0 then target.vid("__TARGET__", v, "ä±â¶ø") end send_letter("ä±â¶øÀÇ ºÎŹ") end when button or info begin say_title("ä±â¶øÀÇ ºÎŹ") say("") say("À»µÎÁöÀÇ Á¦ÀÚ Ã¤±â¶øÀÌ") say("´ç½ÅÀ» ¶Ç ¾ÖŸ°Ô ã°íÀÖ½À´Ï´Ù") say("°¡¼­ ¹«½¼ ÀÏÀÎÁö ¾Ë¾Æº¸°í µµ¿ÍÁÖ½Ã±æ ¹Ù¶ø´Ï´Ù.") say("") end when __TARGET__.target.click or 20084.chat."³» ¸»Á» µé¾îÁÖ¿À" begin target.delete("__TARGET__") say("ä±â¶ø:") --- l say("¾îÀÌÄí~!!! ³ªÁ» ºÁÁֽÿÀ...") say("ÀÌÁ¦²¯ µµ¿ÍÁØ ´ç½Å¿¡°Ô Á¤¸» °í¸¿¼Ò") say("À̹ø¿£ Àû±Í¸ñ¸²ÀÇ ´ëÇÑ µµ°¨À» ÆíÂù ÁßÀε¥..") say("³» ÈûÀ¸·Î´Â ¾î¸²µµ ¾ø´Â µí Çϱ¸·Á..") say("¿ø·¡´Â ³»°¡ Á÷Á¢ ³ª°¡¼­ Á¶»ç¸¦ Çؾ߰ÚÁö¸¸..") say("º¸½Ã´Ù½ÃÇÇ ¹®¾àÇÑ ¼­»ýÀÌ ¹«½¼ ÈûÀÌ ÀÖ°Ú¼Ò..") say("ºÎµð ³¯ µµ¿ÍÁÖ±æ ¹Ù¶ó¿À...") say("³» »ç·Ê´Â µ¶ÅåÈ÷ Çϸ®´Ù~!") wait() say("ä±â¶ø:") say("´Ù¸§ÀÌ ¾Æ´Ï¶ó Àû±Í¸ñ¸²¿¡ ´ëÇØ ¾Ë°í½Í¼Ò..") say("±×°÷Àº ¿ø·¡ °Å¸ñÀ¸·Î ÀÌ·ç¾îÁø ÆòÈ­·Î¿î ½£À̾ú´Âµ¥") say("Ã߶ôÇÑ ¸Þƾ¼®ÀÇ ¿µÇâÀ¸·Î »ç¾ÇÇÑ ±â¿îÀ¸·Î ¿À¿°µÇ¾î") say("¾Ç·ÉÀÌ ±êµç ÀúÁÖ ¹ÞÀº °÷À¸·Î º¯¸ðÇߴٴ±¸¸¸") say("±×°÷À» ¾Ë±â À§Çؼ­´Â Àû±Í¸ñ°¡Áö°¡ ÇÊ¿äÇѵ¥..") say("") wait() say("ä±â¶ø") say("¾ÕÀ¸·Î ¸îÀÏ°£ Àû±Í¸ñ°¡Áö¸¦ ³ª¿¡°Ô") say("°¡Á®¿Ã¼ö ÀÖ°Ú¼Ò?.") say("³Ê¹« °¡´Ã°Å³ª ºÎ·¯Áø °¡Áö´Â ") say("¹ÞÀ»¼ö ¾øÀ¸´Ï ÀÌÇØÇØÁÖ±æ ¹Ù¶ó¿À..") say("¿¬±¸¿¡ ÇÊ¿äÇÑ ¼ö´Â 40°³¶ó¿À...") say("ºÎŹÇÏ°Ú¼Ò~!") say("") set_state(go_to_disciple) pc.setqf("duration",0) -- ½Ãµµ ÇÒ¼ö ÀÖ´Â ½Ã°£ pc.setqf("collect_count",0)--ÀÌÁ¦²¯ ¸ðÀº ¾ÆÀÌÅÛ ¼ö pc.setqf("drink_drug",0) --ÇöȤÀÇ ¹°¾àÀ» ¸ÔÀ¸¸é 1 end end state go_to_disciple begin when letter begin send_letter("ä±â¶øÀÇ ¿¬±¸") end when button or info begin say_title("Àû±Í¸ñ¸²¿¡ ´ëÇØ ¾Ë°í½Í´Ù") --- l say("") say("À»µÎÁöÀÇ Á¦ÀÚÀΠä±â¶øÀº Àû±Í¸ñ¸²¿¡ ´ëÇØ Á¶»çÁßÀε¥") say("°¢±â ´Ù¸¥ÈûÀ» °¡Áø °Å¸ñµéÀÌ ÀÖ´Â") say("Àû±Í¸ñ¸²ÀÇ Àû±Í¸ñ°¡Áö°¡ ä±â¶øÀÇ ¿¬±¸¿¡ ÇÊ¿äÇÏ´Ù ") say("ä±â¶ø¿¡°Ô Àû±Í¸ñ°¡Áö 40°³¸¦ °¡Á®´Ù ÁÖÀÚ") say("") say_item_vnum(30167) say_reward(" ÇöÀç".." "..pc.getqf("collect_count").."°³¸¦ ¸ð¾Ò½À´Ï´Ù") say("") end when 71035.use begin --ÇöȤÀÇ ¹°¾à if get_time() < pc.getqf("duration") then say("¾ÆÁ÷ ¹°¾àÀ» ¾µ¼ö ¾ø½À´Ï´Ù") return end if pc.getqf("drink_drug")==1 then say("ÀÌ¹Ì Çѹø µå¼Ì½À´Ï´Ù") return end if pc.count_item(30167)==0 then say("ä±â¶ø:") say("Àû±Í¸ñ°¡ÁöºÎÅÍ ±¸ÇÑ´ÙÀ½¿¡ ") say("¹°¾àÀ» »ç¿ëÇصµ ´ÊÁö ¾Ê³×") say("") return end item.remove() pc.setqf("drink_drug",1) end when 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill begin local s = number(1, 200) if s == 1 then pc.give_item2(30167) send_letter("Àû±Í¸ñ°¡Áö¸¦ ȹµæÇϼ̽À´Ï´Ù") end end when 20084.chat."Àû±Í¸ñ°¡Áö¸¦ °¡Á®¿Â°Ç°¡? " with pc.count_item(30167) >0 begin if get_time() > pc.getqf("duration") then say("ä±â¶ø") --- l say("¿À!! °¡Á®¿Ô±º...") say("³»°¡ Çѹø ÀÌ°ÍÀ» °ËÅä ÇغÁ¾ß°Ú±º...") say("Àá½Ã¸¸ ±â´Ù¸®°Ô...") say("") pc.remove_item(30167, 1) if is_test_server() then pc.setqf("duration",get_time()+2) else pc.setqf("duration",get_time()+60*60*22) -----------------------------------22½Ã°£ end wait() local pass_percent if pc.getqf("drink_drug")==0 then pass_percent=60 else pass_percent=95 end local s= number(1,100) if s<= pass_percent then if pc.getqf("collect_count")< 39 then --40°³¹Ì¸¸ local index =pc.getqf("collect_count")+1 pc.setqf("collect_count",index) --Çϳª ±¸ÇßÀ¸´Ï +1 ÇØÁØ´Ù say("ä±â¶ø:") say("¿À¿À~!! ÈǸ¢Çϱ¸¸Õ! ¼ö°íÇß³×...") say("¾ÕÀ¸·Î".." "..40-pc.getqf("collect_count").. " °³¸¸ ´õ °¡Á®¿À¸é µÇ°Ú±¸¸Õ~!!") say("¼ö°íÇØÁÖ°Ô~!") say("") pc.setqf("drink_drug",0) --¹°¾à ÃʱâÈ­ return end say("ä±â¶ø:") say("40°³¸¦ ´Ù¸ð¾Ò±¸¸¸!!") say("ÀÌÁ¨ ÀÌ ¿¬±¸ÀÇ key itemÀÎ") say("Àû±Í¸ñ¿µÈ¥¼® 1°³¸¸ ÀÖÀ¸¸é µÇ°Ú¾î") say("ÇÒ¼ö ÀÖ°ÚÁö?") say("Àû±Í¸ñ¿µÈ¥¼®Àº Àû±Í¸ñ¸²¿¡ÀÖ´Â ³ª¹«µé¿¡°Ô¼­") say("¾òÀ»¼ö ÀÖÀ»²¬¼¼") say("") pc.setqf("collect_count",0) pc.setqf("drink_drug",0) pc.setqf("duration",0) set_state(key_item) return else say("ä±â¶ø:") say("Èì...") say("¹Ì¾ÈÇÏÁö¸¸ ÀÌ °¡Áö´Â »ç¿ëÀ» ¸øÇÒ °Í °°±¸¸Õ..") say("¿¬¾àÇÏ°í ºÎ·¯Áø ºÎºÐÀÌ ¸¹Àº °¡Áö·Î±¸¸¸..") say("´Ù½Ã Çϳª ±¸ÇؿüöÀְڴ°¡?") say("") pc.setqf("drink_drug",0) --¹°¾à ÃʱâÈ­ return end else say("ä±â¶ø:") say("ÀÌ·± ÀÌ·± ¹Ì¾ÈÇϳ×....") say("Àú¹ø¿¡ ±¸ÇÑ Àû±Í¸ñ°¡Áö¸¦ ¾ÆÁ÷ ºÐ¼®ÇÏÁö ") say("¸øÇß´Ù³×.....") say("Èì ¹Ì¾ÈÇϳ×....³ªÁß¿¡ °¡Á®´Ù ÁÖÁö ¾Ê°Ú³ª?") say("") return end end end state key_item begin when letter begin send_letter("ä±â¶øÀÇ ¿¬±¸") if pc.count_item(30226)>0 then local v = find_npc_by_vnum(20084) if v != 0 then target.vid("__TARGET__", v, "ä±â¶ø") end end end when button or info begin if pc.count_item(30226) >0 then say_title("Àû±Í¸ñ ¿µÈ¥¼® ȹµæ") say("") --- l say("µåµð¾î Àû±Í¸ñ ¿µÈ¥¼®À» ȹµæÇÏ¿´´Ù") say("À̸¦ ä±â¶ø¿¡°Ô °¡Á®´ÙÁÖÀÚ") say("") return end say_title("±Í¸ñ¿µÈ¥¼®ÀÌ ÇÊ¿äÇØ") say("") --- l say("À»µÎÁöÀÇ Á¦ÀÚÀΠä±â¶øÀÇ ¿¬±¸¸¦ À§ÇØ") say("Àû±Í¸ñ°¡Áö 40°³¸¦ °¡Á®´Ù ÁÖ¾ú´Ù") say("¸¶Áö¸·À¸·Î ÇÊ¿äÇÑ°ÍÀº Àû±Í¸ñ¿µÈ¥¼®!") say_item_vnum(30226) say("Àû±Í¸ñÁ¾Á·À» Àâ¾Æ Àû±Í¸ñ¿µÈ¥¼®À» ±¸ÇÏÀÚ!") say("ÀÌ°ÍÀ» ±¸Çϸé ä±â¶ø¿¡°Ô °¡Á®´ÙÁÖÀÚ") say("") end when 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill begin local s = number(1, 500) if s == 1 and pc.count_item(30226)==0 then pc.give_item2(30226) send_letter("Àû±Í¸ñ¿µÈ¥¼®À» ȹµæÇϼ̽À´Ï´Ù") end end when __TARGET__.target.click or 20084.chat."Àû±Í¸ñ¿µÈ¥¼®À» °¡Á®¿Ô½À´Ï´Ù" with pc.count_item(30226) > 0 begin target.delete("__TARGET__") say("ä±â¶ø") say("¿À¿À¿À~!!! ¼ö°í Çß³×..") say("º¸»óÀ¸·Î ÀÚ³×ÀÇ ³»°øÀ» ³ô¿© ÁÖµµ·Ï ÇÏÁö..") say("¿©±â ³»°øÀ» ³ôÀÌ´Â ¾àµé¿¡ ´ëÇÑ Á¤º¸°¡ ÀûÈù") say("¾à¹æ¹®À̳×...") say("¹é°í¿¡°Ô °¡¸é ¸¸µé¾î ÁÙ°ÍÀϼ¼..") say("±×·³ Áñ°Å¿î ÇÏ·çµÇ°Ô³ª~!") say("ÀÚ³× ´öºÐ¿¡ Àû±Í¸ñ¸²¿¡ ´ëÇؼ­´Â È®½ÇÈ÷ ¾Ë °Í °°À¸ÀÌ~!") say("") pc.remove_item(30226,1) set_state(__reward) end end state __reward begin when letter begin send_letter("ä±â¶øÀÇ º¸»ó") local v = find_npc_by_vnum(20018) if v != 0 then target.vid("__TARGET__", v, "¹é°í") end end when button or info begin say_title("ä±â¶øÀÇ º¸»óÀ» ¹ÞÀÚ") --- l say("ä±â¶øÀÇ ±Í¸ñ¸² ¿¬±¸¸¦ À§ÇØ Àû±Í¸ñ°¡Áö 40°³¿Í") say("Àû±Í¸ñ¿µÈ¥¼®±îÁö ±¸ÇØ´ÙÁØ º¸»óÀ¸·Î ") say("ä±â¶øÀº ³»°øÀ» ³ôÀÌ´Â ¾àµé¿¡ ´ëÇÑ Á¤º¸°¡ ÀûÈù") say("¾à¹æ¹®À» ÁÖ¾ú´Ù") say("¾à¹°À» ¹Þ±âÀ§ÇØ ¹é°í¿¡°Ô °¡º¸ÀÚ") say("") end when __TARGET__.target.click or 20018.chat."ÀÌ ¾à¹æ¹®À» º¸¼¼¿ä" begin target.delete("__TARGET__") say("¹é°í:") say("¾îµðº¸ÀÚ..") say("ä±â¶øÀÌ º¸³½ ¾à¹æ¹®À̶ó°í?") say("À½.. ¸ðµçÀ¯Àú¿¡ ´ëÇÑ ÀúÇ×À» 10% ¿Ã·ÁÁÖ¶ó´Â°Å±º") say("") wait() say("¹é°í:") say("±×¸®°í~º¸¶ó»ö Èæ´Ü»óÀÚ ") say("¿©±âÀÖ³×~") say("") say_reward("ä±â¶øÀÇ ºÎŹÀ» µé¾îÁØ º¸»óÀ¸·Î") say_reward("Ÿ À¯Àú¿¡ ´ëÇÑ ÀúÇ×ÀÌ 10% Áõ°¡µÇ¾ú½À´Ï´Ù.") say_reward("ÀÌ È¿°ú´Â ÀϽÃÀûÀÌ ¾Æ´Ï¶ó ¿µ±¸ÀûÀ¸·Î Àû¿ëµË´Ï´Ù") say("") pc.give_item2(50115) clear_letter() affect.add_collect_point(POINT_RESIST_WARRIOR,10,60*60*24*365*60) --60³â affect.add_collect_point(POINT_RESIST_ASSASSIN,10,60*60*24*365*60) --60³â affect.add_collect_point(POINT_RESIST_SURA,10,60*60*24*365*60) --60³â affect.add_collect_point(POINT_RESIST_SHAMAN,10,60*60*24*365*60) --60³â set_quest_state("collect_quest_lv90", "run") set_state(__complete) end end state __complete begin end end