open [main] var InterruptBlock "" InterruptArg "" Players "" Count "" ResultList "" PlayerHandle "" Winner0 "" Winner1 "" Winner2 "". ;;;;;;;;;;;;;;;;;;;; printf InitFlag. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; freepk OFF. ; »õ·Î¿î ¸í·É¾î printf "WaitPlayer". waitlogin Players. printf "Player : " % Players. if Players == 0 ; ÀÏÁ¤½Ã°£ Áö³ªµµ·Ï ·Î±ä ¾ÈÇÔ then open call "QuestFail". close pause Sec 7. scriptfile "KQConditionOfHero". chatwin "RouTownChiefRoumenus" "Intro0". pause Sec 2. chatwin "RouTownChiefRoumenus" "Intro1". pause Sec 2. chatwin "RouTownChiefRoumenus" "Intro2". pause Sec 2. chatwin "RouTownChiefRoumenus" "Intro3". pause Sec 2. chatwin "RouTownChiefRoumenus" "Intro4". timelimit Min 3. ; ±¤¼® ¸®Á¨ Count = 0. while Count < 20 open regengroup "KDHero" "HERO" % InitFlag. Count = Count + 1. pause Sec 3. close interruptclear. call "WaitTimeLimit". chatwin "RouTownChiefRoumenus" "DualStart". call "PKON". ; PK ½ÃÀÛ timelimit Min 7. interruptclear. interruptset Sec "" 99999 10 "PKON". interruptset Sec "" 99999 30 "MineRegen". ; interruptset PlayerDead "" 1 "PlayerDead". ; ÀÎÅÍ·´Æ® À妽º Ãß°¡ - ÄÚµùÇÊ¿ä(InterruptArg¿¡´Â Á×Àº Ç÷¹À̾îÀÇ ÇÚµé) ÀÛµ¿ ¾ÈÇÔ - ¼öÁ¤ÇÊ¿ä call "WaitTimeLimit". chatwin "RouTownChiefRoumenus" "DualStop". freepk OFF. ; µî¼öüũ ResultList = @KQResultList("ConditionOfHero"). ; Á¡¼ö¼øÀ¸·Î ¼ÒÆ®Çؼ­ Ç÷¹À̾îµé¿¡°Ô º¸³½ ÈÄ ¸®½ºÆ®¿¡ ÀúÀå open [RewardBlock] Count = 0. infinite open PlayerHandle = @RemoveFirst("ResultList" " "). ; ¸®½ºÆ®ÇüÅÂÀÎ ResultList¿¡¼­ " "·Î ºÐ¸®µÈ ù°¿ø¼Ò¸¦ x¿¡ ³Ö°í ResultList¿¡¼­´Â Áö¿ò. if PlayerHandle === "" then open break "RewardBlock". close if Count < 3 then open sendquestresult Suc PlayerHandle. ; °³Àο¡°Ô¸¸ ¼º°øÆÐŶ ³¯¸² invidualreward PlayerHandle "HERO_" % InitFlag % "_" % Count. ; °³Àο¡°Ô µû·Î º¸»óÀ» ÁÜ #("Winner" % Count) = @CharName(PlayerHandle). close else open sendquestresult Fail PlayerHandle. ; °³Àο¡°Ô¸¸ ½ÇÆÐÆÐŶ ³¯¸² invidualreward PlayerHandle "HERO_" % InitFlag % "_3". ; °³Àο¡°Ô µû·Î º¸»óÀ» ÁÜ close Count = Count + 1. close close chatwin "RouTownChiefRoumenus" "DualResult" Winner0 Winner1 Winner2. broadcast all "KQReturn30". pause sec 10. broadcast all "KQReturn20". pause sec 10. broadcast all "KQReturn10". pause sec 5. broadcast all "KQReturn5". pause sec 5. linkto all "Eld" "Eld" 17214 13445. endofkq. close open [MineRegen] regengroup "KDHero" "HERO" % InitFlag. close open [PKON] freepk ON. ; »õ·Î¿î ¸í·É¾î close open [WaitTimeLimit] interruptset TimeOut "" 1 "LimitTimeOut". interruptset PlayerEliminate "" 1 "QuestFail". infinite open waitinterrupt InterruptBlock "InterruptArg". call InterruptBlock. close close open [LimitTimeOut] break "WaitTimeLimit". close open [QuestFail] ; ¸ðµÎ ³ª°£ »óÅÂ(Á×Àº »ç¶÷ÀÌ ÀÖÀ» ¼öµµ ÀÖÀ¸¹Ç·Î) freepk OFF. broadcast all "KQReturn30". pause sec 10. broadcast all "KQReturn20". pause sec 10. broadcast all "KQReturn10". pause sec 5. broadcast all "KQReturn5". pause sec 5. linkto all "Eld" "Eld" 17214 13445. endofkq. break "main". close ;open [PlayerDead] ; sendquestresult Fail InterruptArg. ; °³Àο¡°Ô¸¸ ½ÇÆÐÆÐŶ ³¯¸² ;close