---------------------------------------------------- --COLLECT QUEST_lv90 --METIN2 ¼öÁý Äù½ºÆ® ---------------------------------------------------- quest collect_quest_lv90 begin state start begin end state run begin when login or levelup with pc.level >= 90 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("") say("À»µÎÁöÀÇ Á¦ÀÚ Ã¤±â¶øÀÌ") say("´ç½ÅÀ» ¶Ç ¾ÖŸ°Ô ã°íÀÖ½À´Ï´Ù") say("°¡¼­ ¹«½¼ ÀÏÀÎÁö ¾Ë¾Æº¸°í µµ¿ÍÁÖ½Ã±æ ¹Ù¶ø´Ï´Ù.") say("") end when __TARGET__.target.click or 20084.chat."³» ¸»Á» µé¾îÁÖ¿À" begin target.delete("__TARGET__") --- l say("ä±â¶ø:") say("ÀÌÁ¦±îÁö ³» ºÎŹÀ» µé¾îÁÖ±âÀ§ÇØ") say("ÇèÇÑ ¿ª°æÀ» À̰ܳ»°í Á×À»°íºñ¸¦ ³Ñ±â¸é¼­") say("¿©±â±îÁö ¿ÍÁØ ´ç½Å¿¡°Ô Á¤¸»·Î °¨»çÇÏ¿À") say("´ç½Å°°Àº ¿ë»çµéÀÌ Àֱ⶧¹®¿¡") say("³ªÀÇ ¿¬±¸µµ °ÅÀÇ °íÁö¿¡ À̸¥µí ÇÏ¿À") say("À̹ø ºÎŹÀº ³ªÀÇ ¿¬±¸ÀÇ ¸¶Áö¸·À̶ó°í") say("º¸¸é µÇ¿À") wait() say("ä±â¶ø") say("ÀÌÁ¦ ³»°¡ ÇÊ¿äÇÑ°ÍÀº ¿µ¿õÀÇ Ç¥½Ä!") say("³» ¿¬±¸ÀÇ À¯Á¾ÀÇ ¹Ì¸¦ ") say("²À ´ç½ÅÀÌ Àå½ÄÇØÁáÀ½ ÇÏ¿À") say("°¡Â¥´Â ¹ÞÀ»¼ö ¾øÀ¸´Ï ÀÌÇØÇØÁÖ±æ ¹Ù¶ó¿À..") say("¿¬±¸¿¡ ÇÊ¿äÇÑ ¼ö´Â 50°³¶ó¿À...") say("¸¶Áö¸·¿¬±¸ÀÎ ¸¸Å­ º¸»óÀº ÈÄÇÏ°Ô µå¸®°Ú¼Ò") 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("50°³ ±¸ÇØ Ã¤±â¶ø¿¡°Ô °¡Á®´Ù ÁÖÀÚ") say("") say_item_vnum(30168) 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(30168)==0 then say("ä±â¶ø:") say("ÆпÕÀÇÇ¥½Ä ºÎÅÍ ±¸ÇÑ´ÙÀ½¿¡ ") say("¹°¾àÀ» »ç¿ëÇصµ ´ÊÁö ¾Ê³×") say("") return end item.remove() pc.setqf("drink_drug",1) end when 691.kill or 792.kill or 791.kill or 1093.kill or 1304.kill or 2091.kill or 2191.kill or 2206.kill or 1901.kill begin local s = number(1, 100) if s <= 30 and pc.count_item(30168)==0 then pc.give_item2(30168, 1) send_letter("ÆпÕÀÇÇ¥½ÄÀ» ȹµæÇϼ̽À´Ï´Ù") end end when 20084.chat."ÆпÕÀÇÇ¥½ÄÀ» °¡Á®¿Â°Ç°¡? " with pc.count_item(30168) >0 begin if get_time() > pc.getqf("duration") then say("ä±â¶ø") --- l say("¿À!! °¡Á®¿Ô±º...") say("³»°¡ Çѹø ÀÌ°ÍÀ» °ËÅä ÇغÁ¾ß°Ú±º...") say("Àá½Ã¸¸ ±â´Ù¸®°Ô...") say("") pc.remove_item(30168, 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=90 end local s= number(1,100) if s<= pass_percent then if pc.getqf("collect_count")< 49 then --50°³¹Ì¸¸ local index =pc.getqf("collect_count")+1 pc.setqf("collect_count",index) --Çϳª ±¸ÇßÀ¸´Ï +1 ÇØÁØ´Ù say("ä±â¶ø:") say("¿À¿À~!! ÈǸ¢Çϱ¸¸Õ! ¼ö°íÇß³×...") say("¾ÕÀ¸·Î".." "..50-pc.getqf("collect_count").. " °³¸¸ ´õ °¡Á®¿À¸é µÇ°Ú±¸¸Õ~!!") say("¼ö°íÇØÁÖ°Ô~!") say("") pc.setqf("drink_drug",0) --¹°¾à ÃʱâÈ­ return end say("ä±â¶ø:") say("50°³¸¦ ´Ù¸ð¾Ò±¸¸¸!!") say("ÀÌÁ¨ ÀÌ ¿¬±¸ÀÇ key itemÀÎ") say("ÆпտµÈ¥¼® 1°³¸¸ ÀÖÀ¸¸é µÇ°Ú¾î") 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("") 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(30227)>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(30227) >0 then say_title("ÆпտµÈ¥¼® ȹµæ") say("") --- l say("µåµð¾î ÆпտµÈ¥¼®À» ȹµæÇÏ¿´´Ù") say("À̸¦ ä±â¶ø¿¡°Ô °¡Á®´ÙÁÖÀÚ") say("") return end say_title("ÆпտµÈ¥¼®ÀÌ ÇÊ¿äÇØ") say("") --- l say("À»µÎÁöÀÇ Á¦ÀÚÀΠä±â¶øÀÇ ¿¬±¸¸¦ À§ÇØ") say("ÆпÕÀÇÇ¥½Ä 50°³¸¦ °¡Á®´Ù ÁÖ¾ú´Ù") say("¸¶Áö¸·À¸·Î ÇÊ¿äÇÑ°ÍÀº ÆпտµÈ¥¼®!") say_item_vnum(30227)----------ÆпտµÈ¥¼® say("ÀÌ°ÍÀº"..mob_name(1092)..","..mob_name(1093)..",") say(""..mob_name(1304)..","..mob_name(1901).."¿¡°Ô¼­ ±¸ÇÒ¼öÀÖ´Ù") say("") end when 1093.kill or 1304.kill or 1901.kill begin local s = number(1, 100) if s <= 30 and pc.count_item(30227)==0 then pc.give_item2(30227, 1) send_letter("ÆпտµÈ¥¼®À» ȹµæÇϼ̽À´Ï´Ù") end end when __TARGET__.target.click or 20084.chat."ÆпտµÈ¥¼®À» °¡Á®¿Ô½À´Ï´Ù" with pc.count_item(30227) > 0 begin target.delete("__TARGET__") say("ä±â¶ø") say("¿À¿À¿À~!!! ¼ö°í Çß³×..") say("º¸»óÀ¸·Î ÀÚ³×ÀÇ ³»°øÀ» ³ô¿© ÁÖµµ·Ï ÇÏÁö..") say("¿©±â ³»°øÀ» ³ôÀÌ´Â ¾àµé¿¡ ´ëÇÑ Á¤º¸°¡ ÀûÈù") say("¾à¹æ¹®À̳×...") say("¹é°í¿¡°Ô °¡¸é ¸¸µé¾î ÁÙ°ÍÀϼ¼..") say("±×·³ Áñ°Å¿î ÇÏ·çµÇ°Ô³ª~!") say("ÀÚ³× ´öºÐ¿¡ ³ªÀÇ¿¬±¸°¡ Àß ¸¶¹«¸®µÉµíÇϳ×") say("°í¸¿³×") say("") pc.remove_item(30227,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("ä±â¶øÀÇ º¸½º¸ó½ºÅÍ ¿¬±¸¸¦ À§ÇØ ÆпÕÀÇÇ¥½Ä50°³¿Í") say("ÆпտµÈ¥¼®±îÁö ±¸ÇØ´ÙÁØ º¸»óÀ¸·Î ") say("ä±â¶øÀº ³»°øÀ» ³ôÀÌ´Â ¾àµé¿¡ ´ëÇÑ Á¤º¸°¡ ÀûÈù") say("¾à¹æ¹®À» ÁÖ¾ú´Ù") say("¾à¹°À» ¹Þ±âÀ§ÇØ ¹é°í¿¡°Ô °¡º¸ÀÚ") say("") end when __TARGET__.target.click or 20018.chat."ÀÌ ¾à¹æ¹®À» º¸¼¼¿ä" begin target.delete("__TARGET__") say("¹é°í:") say("¾îµðº¸ÀÚ..") say("ä±â¶øÀÌ º¸³½ ¾à¹æ¹®À̶ó°í?") say("À½...¹«»ç¿¡°Ô °­ÇÔ 10%") say("ÀÚ°´¿¡°Ô °­ÇÔ 10%") say("¼ö¶ó¿¡°Ô °­ÇÔ 10%") say("¹«´ç¿¡°Ô °­ÇÔ 10%") say("Ãß°¡·Î±¸¸¸") say("¿©±âÀÖ³×~") say("") wait() say("¹é°í:") say("±×¸®°í À̹ø¿£ ÆĶõ»ö Èæ´Ü»óÀÚ±¸¸Õ") say("±Ã±ÝÇÏÁö?¾ó¸¥ ¿­¾îº¸°Ô") say("") say_reward("ä±â¶øÀÇ ºÎŹÀ» µé¾îÁØ º¸»óÀ¸·Î") say_reward("¸ðµçij¸¯ÅÍ¿¡ Ãß°¡°ø°Ý+10%¸¦ ¹Þ¾Ò½À´Ï´Ù") say_reward("ÀÌ È¿°ú´Â ÀϽÃÀûÀÌ ¾Æ´Ï¶ó ¿µ±¸ÀûÀ¸·Î Àû¿ëµË´Ï´Ù") affect.add_collect_point(POINT_ATTBONUS_WARRIOR,8,60*60*24*365*60) affect.add_collect_point(POINT_ATTBONUS_ASSASSIN,8,60*60*24*365*60) affect.add_collect_point(POINT_ATTBONUS_SURA,8,60*60*24*365*60) affect.add_collect_point(POINT_ATTBONUS_SHAMAN,8,60*60*24*365*60) pc.give_item2(50114) clear_letter() set_quest_state("collect_quest_lv92", "run") set_state(__complete) end end state __complete begin end end