quest collect_quest_reset begin state start begin when login with pc.level >= 92 begin if tostring(get_quest_state("collect_quest_lv92")) == "557528158" or tostring(get_quest_state("collect_quest_lv94")) == "557528158" or tostring(get_quest_state("collect_quest_lv96")) == "557528158" then set_state( check_reset_able ) end end end state check_reset_able begin when 20091.chat."º¸»óÀ» ´Ù½Ã ¹Þ°í ½Í´Ù°í?!" begin --- l say("¹é¼±¾ÆÆò") say("Áö³­¹ø¿¡ ¹Þ¾Ò´ø º¸»óÀ» ´Ù¸¥ °ÍÀ¸·Î ¹Ù²Ù°í ½Í´Ù°í?") say("Èì....") say("") wait() if get_time() < pc.getqf("duration") then say("¹é¼±¾ÆÆò") say("¹ú½á ¿À´Ù´Ï..") say("¼º°Ý Âü ±ÞÇϱº..") say("¾ÆÁ÷ ½Ã°£À̾ȵǾú¾î!") return end say("¹é¼±¾ÆÆò") say("»ç½Ç ¾È±×·¡µµ õ¿ÁÀÌ ÇÊ¿äÇؼ­") say("ÀÚ³Ú ´Ù½Ã ãÀ¸·Á°í ÇÏ°í ÀÖ¾ú³×") say("Áö³­¹ø¿¡ ±¸ÇØ¿Ô´ø º¸¼® ¸»°íµµ") say("õÀÇ µ¿±¼¿¡ °¡¸é õ¿ÁÀ» ±¸ÇÒ¼ö ÀÖ´Ù°í Çϳ×") say("±×°ÍÀ» 5°³¸¸ ±¸ÇØ´Ù ÁÖ°Ô³ª") say("") wait() say("¹é¼±¾ÆÆò") say("õ¿ÁÀ» 5°³ ±¸ÇØ¿À¸é") say("Áö³­¹ø¿¡ ¹Þ¾Ò´ø º¸»óÁß ÇÑ°¡Áö¸¦") say("´Ù¸¥ °ÍÀ¸·Î ¹Ù²ãÁÖµµ·Ï ÇÏ°Ú³×") say("¾î¶²°¡?") say("") local s = select("¾ó¸¥ ±¸ÇØ´Ù µå¸±²²¿ä", "»ý°¢ Á» Çغ¸±¸¿ä") if s == 1 then say("¹é¼±¾ÆÆò") say("¾î¼­ ´Ù³à¿À°Ô³ª ±â´Ù¸®°í ÀÖ°Ú³×~") say("") set_state( find_jewel ) else say("¹é¼±¾ÆÆò") say("±×·¯°Ô³ª. ½É»ç¼÷°íÇØ¾ß ÇÒ°ÍÀ̾ß") say("") end end end state find_jewel begin when letter begin send_letter("¹é¼±ÀÇ Á¦¾È") end when button or info begin say("") say("½Â·æ°î¿¡ ÀÖ´Â ¹é¼±¾ÆÆò¿¡°Ô") say("õ¿ÁÀ» °¡Á®´Ù ÁÖ°í º¸»óÀ» ¹Ù²ÙÀÚ") say("") say_item_vnum( 30254 ) say_reward(" ÇöÀç "..pc.getqf("collect_count").." °³¸¦ ¹é¼±¿¡°Ô ÁÖ¾ú½À´Ï´Ù") say("") end when 2401.kill or 2402.kill or 2403.kill or 2404.kill begin if number(1, 500) <= 3 then pc.give_item2(30254, 1) send_letter("õ¿ÁÀ» ȹµæÇÏ¿´½À´Ï´Ù") end end when 2411.kill or 2412.kill or 2413.kill or 2414.kill begin if number(1, 500) <= 5 then pc.give_item2(30254, 1) send_letter("õ¿ÁÀ» ȹµæÇÏ¿´½À´Ï´Ù") end end when 20091.chat."õ¿ÁÀ» °¡Á®¿Â°Õ°¡?" with pc.count_item(30254) > 0 begin pc.remove_item( 30254 , 1 ) say("¹é¼±¾ÆÆò") say("¾îµðº¸¼¼...") setdelay(150) say("..........") resetdelay() if number(1, 100) <= 20 then say("ÀÌ°Ç °¡Â¥¾ß...") say("´Ù½Ã ã¾Æº¸°Ô³ª") say("") return end say("Èì... ±×·¡ ÀÌ°Ç ºÐ¸í õ¿ÁÀ̾ß") say("") wait() local count = pc.getqf( "collect_count" ) + 1 if count < 5 then pc.setqf( "collect_count", count ) say("¹é¼±¾ÆÆò") say("ÀÌÁ¦ " .. 5-count .. " °³¸¸ ´õ ±¸ÇØ´Ù ÁÖ¸é µÇ³×") say("¼ö°íÇØÁÖ°Ô³ª") say("") return end say("¹é¼±¾ÆÆò") say("¾à¼Ó´ë·Î Àڳ׿¡°Ô Áá´ø º¸»óÀ» ´Ù¸¥ °ÍÀ¸·Î ¹Ù²ã ÁÖ°Ú³×") say("") local selTab = {} local pos = 1 if tostring(get_quest_state("collect_quest_lv92")) == "557528158" then table.insert(selTab, pos, "ȫõÀǺ¸¼® º¸»ó") pos = pos + 1 end if tostring(get_quest_state("collect_quest_lv94")) == "557528158" then table.insert(selTab, pos, "¹éõÀǺ¸¼® º¸»ó") pos = pos + 1 end if tostring(get_quest_state("collect_quest_lv96")) == "557528158" then table.insert(selTab, pos, "ûõÀǺ¸¼® º¸»ó") pos = pos + 1 end local s = select_table( selTab ) if selTab[s] == "lv92 ȫõÀǺ¸¼® º¸»ó" then affect.remove_collect(1, 1000) affect.remove_collect(apply.DEF_GRADE_BONUS, 120) affect.remove_collect(apply.ATT_GRADE_BONUS, 51) s = select("ü·Â +1000", "¹æ¾î·Â +120", "°ø°Ý·Â +51") if s == 1 then affect.add_collect(1, 1000, 60*60*24*365*60) pc.setf("collect_quest_lv92","reward","1") elseif s == 2 then affect.add_collect(apply.DEF_GRADE_BONUS, 120, 60*60*24*365*60) pc.setf("collect_quest_lv92","reward","2") elseif s == 3 then affect.add_collect(apply.ATT_GRADE_BONUS, 51, 60*60*24*365*60) pc.setf("collect_quest_lv92","reward","3") end elseif selTab[s] == "lv94 ¹éõÀǺ¸¼® º¸»ó" then affect.remove_collect(1, 1100) affect.remove_collect(apply.DEF_GRADE_BONUS, 140) affect.remove_collect(apply.ATT_GRADE_BONUS, 60) s = select("ü·Â +1100", "¹æ¾î·Â +140", "°ø°Ý·Â +60") if s == 1 then affect.add_collect(1, 1100, 60*60*24*365*60) pc.setf("collect_quest_lv94","reward","1") elseif s == 2 then affect.add_collect(apply.DEF_GRADE_BONUS, 140, 60*60*24*365*60) pc.setf("collect_quest_lv94","reward","2") elseif s == 3 then affect.add_collect(apply.ATT_GRADE_BONUS, 60, 60*60*24*365*60) pc.setf("collect_quest_lv94","reward","3") end elseif selTab[s] == "lv96 ûõÀǺ¸¼® º¸»ó" then affect.remove_collect(1, 2000) affect.remove_collect(apply.DEF_GRADE_BONUS, 700) affect.remove_collect(apply.ATT_GRADE_BONUS, 300) s = select("ü·Â +2000", "¹æ¾î·Â +700", "°ø°Ý·Â +300") if s == 1 then affect.add_collect(1, 2000, 60*60*24*365*60) pc.setf("collect_quest_lv96","reward","1") elseif s == 2 then affect.add_collect(apply.DEF_GRADE_BONUS, 700, 60*60*24*365*60) pc.setf("collect_quest_lv96","reward","2") elseif s == 3 then affect.add_collect(apply.ATT_GRADE_BONUS, 300, 60*60*24*365*60) pc.setf("collect_quest_lv96","reward","3") end end pc.setqf( "collect_count", 0 ) set_state( check_reset_able ) say("¹é¼±¾ÆÆò") say("»õ·Î °í¸¥ º¸»óÀ¸·Î ¹Ù²ã ³õ¾Ò³×") say("¶Ç ¹Ù²Ù°í ½ÍÀ¸¸é ÀÏÁÖÀÏ ÈÄ¿¡ ã¾Æ¿À°Ô³ª") say("") pc.setqf("duration", get_time()+60*60*24*7) end end end