open [Regen1stLayer] mobregen Aggressive "KDEddyHill" "KDEddyHillArea05" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea07" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea55" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea06" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea11" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea14" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea13" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea12" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea16" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea09" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea10" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea08" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea24" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea15" "Breeder" "EventManagerA". call "WaitMobRegen". call "WaitMobAnnihilation". close open [Regen2ndLayer] mobregen Aggressive "KDEddyHill" "KDEddyHillArea17" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea49" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea50" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea48" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea28" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea53" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea18" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea19" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea51" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea52" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea20" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea21" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea56" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea57" "Breeder" "EventManagerA". call "WaitMobRegen". call "WaitMobAnnihilation". close open [Regen3rdLayer] mobregen Aggressive "KDEddyHill" "KDEddyHillArea26" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea22" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea27" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea25" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea23" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea30" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea29" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea03" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea04" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea45" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea46" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea47" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea44" "Breeder" "EventManagerA". call "WaitMobRegen". call "WaitMobAnnihilation". close open [RegenTopLayer] mobregen Aggressive "KDEddyHill" "KDEddyHillArea41" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea40" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea39" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea42" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea43" "Breeder" "EventManagerA". mobregen Aggressive "KDEddyHill" "KDEddyHillArea54" "Breeder" "EventManagerA". call "WaitMobRegen". call "WaitMobAnnihilation". close open [KingSlimeSummon] mobregen Aggressive "KDEddyHill" "KDEddyHillArea02" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea31" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea32" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea33" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea34" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea35" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea38" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea36" "Breeder" "KingSlime". mobregen Aggressive "KDEddyHill" "KDEddyHillArea37" "Breeder" "KingSlime". call "WaitMobRegen". close ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; open [WaitPlayerEntry] var InitRest. var CurRest. kqrestminute InitRest. ; ³²Àº ½Ã°£À» ºÐ´ÜÀ§·Î ¾ò¾î¿È var Ply. Ply = 0. while Ply == 0 open howmanymob Ply "Player". ; µé¾î¿Â Ç÷¹À̾îµé È®ÀÎ kqrestminute CurRest. ; ³²Àº ½Ã°£À» ºÐ´ÜÀ§·Î ¾ò¾î¿È if InitRest - CurRest > 5 ; 5ºÐ°£ ´ë±â then open print "Room vanish". endofevent KingdomQuest 0. ; Å·´ýÄù½ºÆ® ½ÇÆзΠ¸¶¹«¸® break "main". close close close open [WaitMobRegen] var Mob. Mob = 0. while Mob == 0 open howmanymob Mob "All". ; ¸ðµç ¸÷¼ö È®ÀÎ close close open [WaitMobAnnihilation] var Mob. Mob = 10. while Mob > 0 open howmanymob Mob "All". ; ¸ðµç ¸÷¼ö È®ÀÎ call "IsTimeUp". close close open [WaitKingSlimeKill] var Mob. Mob = 10. while Mob > 0 open howmanymob Mob "KQ_KingSlime". ; Å·½½¶óÀÓ °¹¼ö È®ÀÎ call "IsTimeUp". close close open [IsTimeUp] ; ½Ã°£Á¦ÇÑÀÌ ´Ù µÇ¾ú´ÂÁö È®ÀÎ print "IsTimeUp". var TimeUp. kqrestminute TimeUp. ; ³²Àº ½Ã°£À» ºÐ´ÜÀ§·Î ¾ò¾î¿È print "EventManagerAIsTimeUp : " % TimeUp % "Minute left". if TimeUp == 0 ; ½Ã°£¿À¹ö then open print "IsTimeUp : Exit 0". KQResult = "Fail". break "MainLoop". close var Ply. howmanymob Ply "Player". ; ³²¾ÆÀÖ´Â Ç÷¹À̾îµé È®ÀÎ print "EventManagerAIsTimeUp : " % Ply % "Player left". if Ply == 0 then open print "IsTimeUp : Exit 1". KQResult = "Fail". break "MainLoop". close close ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; open [main] var MyName. var MyHandle. myname MyName. ; ³» À̸§À» ¾ò´Â´Ù(¸÷À妽º) myhandle MyHandle. call MyName "DefRoutine". ; À妽º¿Í µ¿ÀÏÇÑ ·çƾ È£Ãâ close open [DefRoutine] close ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; open [EventManagerA] print "EventManagerA : Entry". call "WaitPlayerEntry". ; »ç¶÷µéÀÌ µé¾î¿Ã ¶§±îÁö ±â´Ù¸² var KQResult. ; IsTimeUp¿¡¼­ »ç¿ëÇÒ º¯¼ö open [MainLoop] call "Regen1stLayer". call "Regen2ndLayer". call "Regen3rdLayer". call "RegenTopLayer". mobregen Aggressive "KDEddyHill" "KDEddyHillArea01" "Breeder" "KingSlime". ; Å·½½¶óÀÓ ¸®Á¨ call "WaitMobRegen". call "WaitKingSlimeKill". KQResult = "Success". close wait sec 3. if KQResult === "Success" ; ¼º°ø then open reward KingdomQuest. ; ¸®¿öµå¸¦ ÁÜ broadcast all "½½¶óÀÓµéÀ» ¼º°øÀûÀ¸·Î ¹æ¾îÇß½À´Ï´Ù.". endofevent KingdomQuest 1. ; Å·´ýÄù½ºÆ® ¼º°øÀ¸·Î ¸¶¹«¸® close else open broadcast all "½½¶óÀÓµé ¹æ¾î¿¡ ½ÇÆÐÇß½À´Ï´Ù.". endofevent KingdomQuest 0. ; Å·´ýÄù½ºÆ® ½ÇÆзΠ¸¶¹«¸® close broadcast all "30ÃÊÈÄ ·ç¸àÀ¸·Î À̵¿ÇÕ´Ï´Ù.". wait sec 10. broadcast all "20ÃÊÈÄ ·ç¸àÀ¸·Î À̵¿ÇÕ´Ï´Ù.". wait sec 10. broadcast all "10ÃÊÈÄ ·ç¸àÀ¸·Î À̵¿ÇÕ´Ï´Ù.". wait sec 5. broadcast all "5ÃÊÈÄ ·ç¸àÀ¸·Î À̵¿ÇÕ´Ï´Ù.". wait sec 5. linkto all "Rou" "Rou" 7907 8572. mapclear all. close ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; open [KQ_KingSlime] var SummonHPRate. var MaxHP. currenthp MaxHP. SummonHPRate = 1000. shout all "" "¼º½º·¯¿î ½½¶óÀÓµéÀ» ¸ð¿åÇÏ´Â ´õ·¯¿î »ý¸íüµéÀÌ¿©". wait sec 2. shout all "" "³ÊÈñµé¿¡°Ô ¿µ¿øÇÑ ÀúÁÖ¸¦ ³»¸®³ë¶ó!!!". while SummonHPRate > 0 open var CurHP. var CurHPRate. currenthp CurHP. CurHPRate = (CurHP * 1000) / MaxHP. ; ÁÖÀÇ : ÀÌ·± ¼ö½ÄÀº µÚ¿¡¼­ºÎÅÍ ½ÇÇàµÊ!!!! print "MaxHP[" % MaxHP % "] CurHP[" % CurHP % "] CurHPRate[" % CurHPRate % "] SummonHPRate[" % SummonHPRate % "]". if CurHPRate < SummonHPRate then open shout all "" "½½¶óÀÓµéÀÌ¿©, ³» ÈûÀ» ¹Þ¾Æ ÀúµéÀ» ¸êÇÏ¿©¶ó!!". call "KingSlimeSummon". SummonHPRate = SummonHPRate - 200. close close ; Å·½½¶óÀÓÀÌ Á×¾úÀ½ var Mobs. howmanymob Mobs "all". if Mobs < 15 then open shout all "" "¾Æ¾Æ, Á¤³ç ½½¶óÀÓÀÇ ½Ã´ë´Â °¬´Ü ¸»Àΰ¡...". close else open shout all "" "³²¾ÆÀÖ´Â ½½¶óÀÓµéÀÌ¿©, ¸í¿¹¸¦ À§ÇØ ÃÖ¼±À» ´ÙÇ϶ó". close close