// ------------------------------------------------------------------------------ \\ // +MMMMMMMMMM$ \\ // MMMMMMMMMM$ \\ // ,MM, ,MM7 \\ // MM \\ // MM MMMMMMMMM MMM $MMMMMMMM MMM MMMZ MMM7 \\ // MM MMMI MMM MMM MMMM MM MMM MMM ZM \\ // MM, 7MM, MMM MMM MMM ZMMM MMM MMM ZZ \\ // MM 7MM, MMMMMMM MMM MMM , MM MMM MMM =M~, \\ // $M MM7 MMM MMM MMM NMMMM MMM MMMMMMMMN= \\ // ,N MM MMM MMM MMM MNMM MMM MMM ,MMM \\ // MO MM MMM MMM MMM ,MM+ MMM MMM MMM \\ // MM MM MMM MMM MMM MM MMM MMM MM~ \\ // :M , MM MMM MMM MMM ~M MMM MMM MM \\ // MM I MM MMM MMM MMM M MMM MMM M+ \\ // 7MMMMMMMMMMMI M MMM MMM MMM 7M MMM MMM M \\ // NMMMMMMMMMMM M MMM MMM MMM ,M MMM MMM M \\ // ------------------------------------------------------------------------------ \\ // Fully automated event room activated by players, automatic end and reseting \\ // ------------------------------------------------------------------------------ \\ pvp_n_1-2,100,108,3 script Event Agent#01 451,{ if (.EV1mobs > 1) { mes "[Event Agent]"; mes "The event has already started, hurry and complete the mission before time runs out!"; close; } goto OnStart; OnStart: mapannounce "pvp_n_1-2","[Event Agent]: Monsters are invading!",bc_map; set .EV1mobs,50; monster "pvp_n_1-2",0,0,"Dark Poring",2301,25,"Event Agent#01::EV1MobDead"; monster "pvp_n_1-2",0,0,"Viscount",2316,10,"Event Agent#01::EV1MobDead"; monster "pvp_n_1-2",0,0,"Dragon Child",2303,10,"Event Agent#01::EV1MobDead"; monster "pvp_n_1-2",0,0,"Ancient Ghost",1492,5,"Event Agent#01::EV1MobDead"; initnpctimer; end; OnStop: killmonsterall "pvp_n_1-2"; set .EV1mobs,0; end; EV1MobDead: set .EV1mobs,.EV1mobs-1; if (.EV1mobs < 1) { mapannounce "pvp_n_1-2","You have succeeded in eliminating the monsters.",bc_map; mapannounce "pvp_n_1-2","Talk to the Event Agent to play the event again.",bc_map; mapannounce "pvp_n_1-2","Mission Complete!",bc_map; donpcevent "Event Agent#01::OnStop"; stopnpctimer; } end; OnTimer1000: mapannounce "pvp_n_1-2","[Event Agent]: Starting mission!",bc_map; end; OnTimer2000: mapannounce "pvp_n_1-2","[Event Agent]: Time limit is 3 minutes.",bc_map; end; OnTimer3000: mapannounce "pvp_n_1-2","[Event Agent]: Please kill all monsters before time runs out",bc_map; end; OnTimer33000: mapannounce "pvp_n_1-2","[Event Agent]: 2 minutes and 30 seconds remaining.",bc_map; end; OnTimer63000: mapannounce "pvp_n_1-2","[Event Agent]: 2 minutes remaining.",bc_map; end; OnTimer93000: mapannounce "pvp_n_1-2","[Event Agent]: 1 minute and 30 seconds remaining.",bc_map; end; OnTimer123000: mapannounce "pvp_n_1-2","[Event Agent]: 1 minute remaining.",bc_map; end; OnTimer153000: mapannounce "pvp_n_1-2","[Event Agent]: 30 seconds remaining.",bc_map; end; OnTimer173000: mapannounce "pvp_n_1-2","[Event Agent]: 10 seconds remaining.",bc_map; end; OnTimer183000: mapannounce "pvp_n_1-2","Talk to the Event Agent again to start the event over...",bc_map; mapannounce "pvp_n_1-2","[Event Agent]: Time is up! Mission failed!",bc_map; donpcevent "Event Agent#01::OnStop"; end; }