# T o u h o u D a n m a k u f u [ S i n g l e ] 
 
 # S c r i p t V e r s i o n [ 3 ] 
 
 # T i t l e [ " D j   &   T e w i   s p e l l   0 7   l u n a t i c " ] 
 
 # T e x t [ " D j   &   T e w i   s p e l l   0 7   l u n a t i c " ] 
 
 
 
 l e t   u s a L i f e   =   0 ; 
 
 l e t   m o c h i S m a s h   =   f a l s e ; 
 
 l e t   m o c h i Z   =   0 ; 
 
 l e t   t e w i R e c ; 
 
 l e t   u s a g i A c t i v e   =   f a l s e ; 
 
 
 
 l e t   M A X _ U S A G I   =   1 2 ; 
 
 l e t   U S A G I _ F R A M E   =   8 ; 
 
 l e t   W A I T _ T I M E   =   [ 6 0 , 1 8 0 , 3 6 0 ] ; 
 
 
 
 l e t   u s a g i   =   " s c r i p t / t h d c s / s y s t e m / e n m 0 3 / u s a g i . p n g " ; 
 
 l e t   u s a g i 2   =   " s c r i p t / t h d c s / s y s t e m / e f f e c t s / u s a g i h e a d . p n g " ; 
 
 l e t   c u t D j   =   " s c r i p t / t h d c s / s y s t e m / f a c e / d j n o r m . p n g " ; 
 
 l e t   c u t T e w i   =   " s c r i p t / t h d c s / s y s t e m / f a c e / t e w i n o r m . p n g " ; 
 
 l e t   r e c o r d T e x   =   " s c r i p t / t h d c s / s y s t e m / e n m 0 3 / g r a m b g . p n g " ; 
 
 l e t   w a r n T e x   =   " s c r i p t / t h d c s / s y s t e m / e f f e c t s / w a r n i n g u s a g i . p n g " ; 
 
 
 
 # i n c l u d e   " s c r i p t / t h d c s / s y s t e m / s h o t l i b r a r y . t x t " 
 
 # i n c l u d e   " s c r i p t / t h d c s / f u n c t i o n s / f u n c t i o n _ c o m m o n . t x t " 
 
 # i n c l u d e   " s c r i p t / t h d c s / f u n c t i o n s / f u n c t i o n _ g l o b a l . t x t " 
 
 # i n c l u d e   " s c r i p t / t h d c s / f u n c t i o n s / f u n c t i o n _ b o s s e f f . t x t " 
 
 # i n c l u d e   " s c r i p t / t h d c s / f u n c t i o n s / f u n c t i o n _ c u t i n . t x t " 
 
 
 
 @ I n i t i a l i z e   { 
 
 	 S e t C o m m o n D a t a ( " s p e l l S c r i p t I D " , G e t O w n S c r i p t I D ) ; 
 
 	 S e t C o m m o n D a t a ( " b o s s C i r c l e T y p e " , 3 ) ; 
 
 	 S e t C o m m o n D a t a ( " b o s s A t t a c k T y p e " , 2 ) ; 
 
 	 S e t C o m m o n D a t a ( " b o s s B g T y p e " , 3 ) ; 
 
 	 r e n d e r B o s s ( 3 ) ; 
 
 	 r e n d e r B o s s 2 ( 3 0 ) ; 
 
         b o s s M a g i c C i r c l e 2 ; 
 
 	 s e t A u r a ( b o s s O b j , 6 4 , 2 5 5 , 1 2 8 ) ; 
 
 	 s e t A u r a ( b o s s 2 O b j , 1 0 0 , 1 0 0 , 1 0 0 ) ; 
 
 	 i f ( G e t A r e a C o m m o n D a t a ( " s y s t e m " , " g a m e L a n g " , 0 )   = =   0 )   {   S e t C o m m o n D a t a ( " c a r d N a m e " , " NQn0ۘ
0" ) ;   } 
 
 	 i f ( G e t A r e a C o m m o n D a t a ( " s y s t e m " , " g a m e L a n g " , 0 )   = =   1 )   {   S e t C o m m o n D a t a ( " c a r d N a m e " , " D a n c e   o f   f l y i n g   r a b b i t s " ) ;   } 
 
 
 
 	 s e t I n v u l n e r a b l e T i m e ( b o s s O b j , 5 0 0 ) ; 
 
 	 s e t I n v u l n e r a b l e T i m e ( b o s s 2 O b j , 5 0 0 ) ; 
 
 
 
 	 O b j M o v e _ S e t P o s i t i o n ( b o s s O b j , b o s s X , b o s s Y ) ; 
 
 	 O b j M o v e _ S e t P o s i t i o n ( b o s s 2 O b j , G e t C o m m o n D a t a ( " b o s s 2 X " , b o s s 2 X ) , G e t C o m m o n D a t a ( " b o s s 2 Y " , b o s s 2 Y ) ) ; 
 
 	 
 
 	 O b j M o v e _ S e t D e s t A t S p e e d ( b o s s O b j , G e t C e n t e r X - 9 6 , 1 0 0 , 8 ) ; 
 
 	 O b j M o v e _ S e t D e s t A t S p e e d ( b o s s 2 O b j , G e t C e n t e r X + 9 6 , 1 0 0 , 8 ) ; 
 
 
 
 	 c o n c e n E f f e c t ( b o s s O b j , 3 0 , 1 , 6 4 , 1 2 8 , 6 4 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 1 2 8 , 1 2 8 , 1 2 8 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s O b j , 1 5 , 5 , 6 4 , 6 4 , 2 5 5 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s 2 O b j , 1 5 , 5 , 6 4 , 2 5 5 , 6 4 ) ; 
 
 
 
 	 c u t i n 2 ( D U E T 4 , 0 , c u t T e w i , 0 , 0 , 1 0 2 4 , 1 0 2 4 , 0 . 4 ) ; 
 
 
 
 	 S e t S h o t A u t o D e l e t e C l i p ( 1 6 , 1 6 , 1 6 , 1 6 ) ; 
 
 	 S e t A u t o D e l e t e O b j e c t ( t r u e ) ; 
 
 	 m a i n T a s k ; 
 
 
 
 } 
 
 
 
 @ E v e n t   { 
 
 	 a l t e r n a t i v e ( G e t E v e n t T y p e ( ) ) 
 
 	 c a s e ( E V _ R E Q U E S T _ L I F E )   { 
 
 	 	 S e t S c r i p t R e s u l t ( 4 2 0 ) ; 
 
 	 } 
 
 	 c a s e ( E V _ R E Q U E S T _ T I M E R )   { 
 
 	 	 S e t S c r i p t R e s u l t ( 1 0 3 ) ; 
 
 	 } 
 
 	 c a s e ( E V _ R E Q U E S T _ S P E L L _ S C O R E )   { 
 
 	         l e t   s p e l l C a r d B o n u s   =   c a l c u l a t e A n d G e t S p e l l C a r d B o n u s ( ) ; 
 
 	 	 S e t S c r i p t R e s u l t ( s p e l l C a r d B o n u s ) ; 
 
 	 } 
 
 	 c a s e ( E V _ U S E R + 9 9 9 9 )   { 
 
 	 	 S e t C o m m o n D a t a ( " s p e l l c a r d I D " , " d j 0 7 r u n a " ) ; 
 
 	 } 
 
 } 
 
 
 
 @ M a i n L o o p   {   y i e l d ;   } 
 
 @ F i n a l i z e   {   } 
 
 
 
 t a s k   m a i n T a s k   { 
 
 	 y i e l d ; 
 
 	 s c r i p t E n d i n g ; 
 
 	 w a i t ( 6 0 ) ; 
 
 	 c o n t r o l ; 
 
 } 
 
 
 
 / /   I n i t i a l   c o n t r o l 
 
 t a s k   c o n t r o l   { 
 
 	 P l a y S F X ( S F X _ P O W E R 0 ) ; 
 
 	 P l a y S F X ( S F X _ M I X 0 0 ) ; 
 
 	 O b j M o v e _ S e t D e s t A t W e i g h t ( b o s s O b j , G e t C e n t e r X , 1 0 0 , 1 5 , 2 0 ) ; 
 
 	 O b j M o v e _ S e t D e s t A t W e i g h t ( b o s s 2 O b j , G e t C e n t e r X - 9 6 , 1 2 0 , 1 5 , 2 0 ) ; 
 
 	 f a k e R e c o r d 2 ( G e t C l i p M a x X + 3 2 , G e t C l i p M i n Y - 3 2 , G e t C e n t e r X - 9 6 , 1 2 0 + 3 2 ) ; 
 
 	 w a i t ( 6 0 ) ; 
 
 
 
 	 l o o p { 
 
 	 	 f i r e D j 3 ; 
 
 	 	 w a i t ( W A I T _ T I M E [ 0 ] ) ; 
 
 
 
 	 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 6 4 , 1 2 8 , 6 4 ) ; 
 
 	 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 1 2 8 , 1 2 8 , 1 2 8 ) ; 
 
 	 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 6 4 , 1 2 8 , 6 4 ) ; 
 
 	 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 1 2 8 , 1 2 8 , 1 2 8 ) ; 
 
 	 	 w a i t ( 6 0 ) ; 
 
 	 	 u s a L i f e   =   M A X _ U S A G I ; 
 
 	 	 w a r n i n g S i g n ; 
 
 	 	 w a i t ( 6 0 ) ; 
 
 	 	 u s a g i A c t i v e   =   t r u e ; 
 
 	 	 u s a g i D i s p l a y ; 
 
 	 	 u s a S p a w n e r T o p ; 
 
 	 	 t e w i S m a s h ; 
 
 	 	 O b j E n e m y _ S e t D a m a g e R a t e ( b o s s O b j ,   1 0 ,   1 0 ) ; 
 
 	 	 l o o p ( W A I T _ T I M E [ 1 ] ) { 
 
 	 	 	 i f ( u s a L i f e   < =   0 ) {   b r e a k ;   } 
 
 	 	 	 y i e l d ; 
 
 	 	 } 
 
 	 	 u s a g i A c t i v e   =   f a l s e ; 
 
 	 	 O b j E n e m y _ S e t D a m a g e R a t e ( b o s s O b j ,   1 0 0 ,   1 0 0 ) ; 
 
 	 	 w h i l e ( O b j M o v e _ G e t Y ( b o s s 2 O b j )   >   1 2 8 ) { 
 
 	 	 	 y i e l d ; 
 
 	 	 } 
 
 	 	 w a i t ( 2 0 ) ; 
 
 	 	 t e w i R u n ( 5 ) ; 
 
 	 	 f i r e T e w i ; 
 
 	 	 w a i t ( W A I T _ T I M E [ 2 ] ) ; 
 
 	 } 
 
 } 
 
 
 
 / /   D j   h a n d   s h o t s 
 
 t a s k   f i r e D j 3   { 
 
 	 c o n c e n E f f e c t ( b o s s O b j , 3 0 , 1 , 6 4 , 1 2 8 , 6 4 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s O b j , 3 0 , 1 , 1 2 8 , 1 2 8 , 1 2 8 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s O b j , 1 5 , 5 , 6 4 , 6 4 , 2 5 5 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s O b j , 1 5 , 5 , 6 4 , 2 5 5 , 6 4 ) ; 
 
 	 P l a y S F X ( S F X _ C H 0 0 ) ; 
 
 	 q u a k e C a m 2 D ( 4 , 9 0 ) ;   q u a k e C a m 3 D ( 4 , 9 0 ) ; 
 
 	 w a i t ( 9 0 ) ; 
 
 	 f i r e D j E f f 2 ; 
 
 	 l e t   d i r   =   0 ; 
 
 	 a s c e n t ( i   i n   0 . . 4 0 )   { 
 
 	 	 a s c e n t ( j   i n   0 . . 3 )   { 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X - 2 4 + 1 6 * c o s ( d i r ) , b o s s Y - 1 6 + 1 6 * s i n ( d i r ) , 2 . 5 + ( j / 2 ) , d i r , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X - 2 4 + 1 6 * c o s ( d i r + 1 2 0 ) , b o s s Y - 1 6 + 1 6 * s i n ( d i r + 1 2 0 ) , 2 . 5 + ( j / 2 ) , d i r + 1 2 0 , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X - 2 4 + 1 6 * c o s ( d i r + 2 4 0 ) , b o s s Y - 1 6 + 1 6 * s i n ( d i r + 2 4 0 ) , 2 . 5 + ( j / 2 ) , d i r + 2 4 0 , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X - 2 4 + 1 6 * c o s ( d i r ) , b o s s Y - 1 6 + 1 6 * s i n ( d i r ) , 1 . 7 5 + ( j / 2 ) , d i r , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X - 2 4 + 1 6 * c o s ( d i r + 1 2 0 ) , b o s s Y - 1 6 + 1 6 * s i n ( d i r + 1 2 0 ) , 1 . 7 5 + ( j / 2 ) , d i r + 1 2 0 , 1 1 5 , 1 5 ) ; 
 
 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X + 2 4 + 1 6 * c o s ( - d i r ) , b o s s Y - 1 6 + 1 6 * s i n ( - d i r ) , 2 . 5 + ( j / 2 ) , - d i r , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X + 2 4 + 1 6 * c o s ( - d i r + 1 2 0 ) , b o s s Y - 1 6 + 1 6 * s i n ( - d i r + 1 2 0 ) , 2 . 5 + ( j / 2 ) , - d i r + 1 2 0 , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X + 2 4 + 1 6 * c o s ( - d i r + 2 4 0 ) , b o s s Y - 1 6 + 1 6 * s i n ( - d i r + 2 4 0 ) , 2 . 5 + ( j / 2 ) , - d i r + 2 4 0 , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X + 2 4 + 1 6 * c o s ( - d i r ) , b o s s Y - 1 6 + 1 6 * s i n ( - d i r ) , 1 . 7 5 + ( j / 2 ) , - d i r , 1 1 5 , 1 5 ) ; 
 
 	 	 	 C r e a t e S h o t A 1 ( b o s s X + 2 4 + 1 6 * c o s ( - d i r + 1 2 0 ) , b o s s Y - 1 6 + 1 6 * s i n ( - d i r + 1 2 0 ) , 1 . 7 5 + ( j / 2 ) , - d i r + 1 2 0 , 1 1 5 , 1 5 ) ; 
 
 	 	 	 w a i t ( 2 ) ; 
 
 	 	 	 d i r + = 7 . 3 3 ; 
 
 	 	 } 
 
 	 	 d i r + = 3 6 0 / 3 ; 
 
 	 } 
 
 	 w a i t ( 3 0 ) ; 
 
 } 
 
 
 
 / /   E f f e c t 
 
 t a s k   f i r e D j E f f 2   { 
 
 	 a s c e n t ( i   i n   0 . . 1 6 )   { 
 
 	 	 P l a y S F X ( S F X _ B O X B E A T ) ; 
 
 	 	 e x p l o E f f e c t ( b o s s X - 2 4 , b o s s Y - 1 6 , 2 5 , 0 . 5 ) ; 
 
 	 	 e x p l o E f f e c t ( b o s s X + 2 4 , b o s s Y - 1 6 , 2 5 , 0 . 5 ) ; 
 
 	 	 w a i t ( 1 5 ) ; 
 
 	 } 
 
 } 
 
 
 
 / /   T e w i   m o c h i   h a m m e r   p a t t e r n 
 
 t a s k   f i r e T e w i   { 
 
 	 O b j M o v e _ S e t D e s t A t W e i g h t ( b o s s O b j , G e t C e n t e r X , 1 0 0 , 1 0 , 3 0 ) ; 
 
 	 m o c h i Z   =   6 4 ; 
 
 	 w a i t ( 1 2 0 ) ; 
 
 	 P l a y S F X ( S F X _ F E A T H E R ) ; 
 
 	 l e t   m o c h i   =   m a k e M o c h i H a m ( b o s s X , b o s s Y , 0 ) ; 
 
 	 O b j M o v e _ S e t D e s t A t W e i g h t ( b o s s 2 O b j , G e t P l a y e r X , G e t C l i p M i n Y + 6 4 , 1 0 , 3 0 ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 b o s s 2 A t t a c k   =   1 ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 6 4 , 1 2 8 , 6 4 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 1 2 8 , 1 2 8 , 1 2 8 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 6 4 , 1 2 8 , 6 4 ) ; 
 
 	 c o n c e n E f f e c t ( b o s s 2 O b j , 3 0 , 1 , 1 2 8 , 1 2 8 , 1 2 8 ) ; 
 
 	 P l a y S F X ( S F X _ C H 0 0 ) ; 
 
 	 w a i t ( 5 0 ) ; 
 
 	 h a m m e r E f f ( m o c h i ,   b o s s 2 X , b o s s 2 Y ) ; 
 
 	 q u a k e C a m 2 D ( 1 0 , 1 5 ) ;   q u a k e C a m 3 D ( 1 0 , 1 5 ) ; 
 
 	 b o s s 2 A t t a c k   =   0 ; 
 
 	 w a i t ( 2 4 0 ) ; 
 
 } 
 
 
 
 / /   M o c h i   h a m m e r   e f f e c t 
 
 t a s k   h a m m e r E f f ( m o c h i , x , y )   { 
 
 	 l e t   m o c h i l a s e r   =   C r e a t e L o o s e L a s e r A 1 ( x , y - 6 4 , ( 4 7 6 - y + 4 8 ) / 1 5 , 9 0 , 2 5 0 , 6 4 , 2 0 2 , 1 0 ) ; 
 
 	 O b j M o v e _ A d d P a t t e r n A 2 ( m o c h i l a s e r , 1 5 , 0 , N O _ C H A N G E , 0 , 0 , 0 ) ; 
 
 	 O b j S h o t _ S e t D e l e t e F r a m e ( m o c h i l a s e r , 3 2 ) ; 
 
 	 O b j L a s e r _ S e t G r a z e I n v a l i d F r a m e ( m o c h i l a s e r , 1 ) ; 
 
 	 O b j _ S e t R e n d e r P r i o r i t y I ( m o c h i l a s e r , 3 0 ) ; 
 
 
 
 	 m o c h i S m a s h   =   f a l s e ; 
 
 	 l e t   o f f s e t Y   =   3 2 ; 
 
 	 P l a y S F X ( S F X _ I N F E R N O ) ; 
 
 	 O b j R e n d e r _ S e t P o s i t i o n ( m o c h i , b o s s 2 X - 3 2 , b o s s Y , 0 ) ; 
 
 	 l e t   a l p h a V a l u e   =   2 5 5 ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( m o c h i , 2 5 5 ) ; 
 
 	 a s c e n t ( i   i n   0 . . 2 4 )   { 
 
 	 	 l e t   e f f S h o t   =   C r e a t e S h o t A ( x + 5 , y + ( i * o f f s e t Y ) , 3 0 ) ; 
 
 	 	 S e t S h o t D a t a A ( e f f S h o t , 0 , 0 , 0 , 0 , 0 , 0 , 3 1 ) ; 
 
 	 	 D e l e t e S h o t A ( e f f S h o t , 0 ) ; 
 
 	 	 l e t   e f f S h o t 2   =   C r e a t e S h o t A ( x - 5 , y + ( i * o f f s e t Y ) , 3 0 ) ; 
 
 	 	 S e t S h o t D a t a A ( e f f S h o t 2 , 0 , 0 , 0 , 0 , 0 , 0 , 3 1 ) ; 
 
 	 	 D e l e t e S h o t A ( e f f S h o t 2 , 0 ) ; 
 
 	 	 O b j R e n d e r _ S e t A n g l e X Y Z ( m o c h i , 0 , 9 0 , m o c h i Z ) ; 
 
 	 	 i f ( m o c h i Z   >   - 4 5 )   {   m o c h i Z - = 4 ;   } 
 
 	 	 y i e l d ; 
 
 	 } 
 
 	 h a m m e r F i r e ( x , y ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 m o c h i S m a s h   =   t r u e ; 
 
 	 w h i l e ( a l p h a V a l u e   >   0 )   { 
 
 	 	 a l p h a V a l u e - = 1 0 ; 
 
 	 	 O b j R e n d e r _ S e t A l p h a ( m o c h i , a l p h a V a l u e ) ; 
 
 	 	 y i e l d ; 
 
 	 } 
 
 	 O b j _ D e l e t e ( m o c h i ) ; 
 
 } 
 
 
 
 t a s k   h a m m e r F i r e ( x , y )   { 
 
 	 l e t   d i r   =   0 ; 
 
 	 l e t   r   =   1 6 ; 
 
 	 l e t   r 2   =   0 ; 
 
 	 a s c e n t ( i   i n   0 . . 7 2 )   { 
 
 	 	 P l a y S F X ( S F X _ T A N 0 0 ) ; 
 
 
 
 	 	 l e t   m o c h i S h o t 0 0   =   C r e a t e S h o t A ( x - 5 , y + ( i * 1 0 ) , 3 0 ) ; 
 
 	 	 S e t S h o t D a t a A ( m o c h i S h o t 0 0 , 0 , 0 , 9 0 , 0 , 0 , 0 , 2 2 3 ) ; 
 
 	 	 S e t S h o t D a t a A ( m o c h i S h o t 0 0 , 6 0 , 0 , r a n d _ i n t ( 0 , 3 6 0 ) , r a n d ( - 0 . 2 , 0 . 2 ) , 0 . 0 1 , 3 , 2 2 3 ) ; 
 
 
 
 	 	 l e t   m o c h i S h o t 0 1   =   C r e a t e S h o t A ( x + 5 , y + ( i * 1 0 ) , 3 0 ) ; 
 
 	 	 S e t S h o t D a t a A ( m o c h i S h o t 0 1 , 0 , 0 , 9 0 , 0 , 0 , 0 , 2 2 2 ) ; 
 
 	 	 S e t S h o t D a t a A ( m o c h i S h o t 0 1 , 6 0 , 0 , r a n d _ i n t ( 0 , 3 6 0 ) , r a n d ( - 0 . 2 , 0 . 2 ) , 0 . 0 1 , 3 , 2 2 2 ) ; 
 
 
 
 	 	 l e t   m o c h i S h o t 0 2   =   C r e a t e S h o t A 1 ( x + r * c o s ( d i r ) + i * 1 0 , y + i * 1 0 , 0 , d i r , 2 0 6 , 3 0 ) ; 
 
 	 	 O b j M o v e _ A d d P a t t e r n A 2 ( m o c h i S h o t 0 2 , 3 0 , 0 , N O _ C H A N G E , 0 . 0 2 , 0 , 3 ) ; 
 
 
 
 	 	 l e t   m o c h i S h o t 0 3   =   C r e a t e S h o t A 1 ( x + r * c o s ( d i r + 1 8 0 ) - i * 1 0 , y + i * 1 0 , 0 , d i r + 1 8 0 , 2 0 6 , 3 0 ) ; 
 
 	 	 O b j M o v e _ A d d P a t t e r n A 2 ( m o c h i S h o t 0 3 , 3 0 , 0 , N O _ C H A N G E , 0 . 0 2 , 0 , 3 ) ; 
 
 	 	 r = 1 6 ; 
 
 	 	 d i r + = 2 5 ; 
 
 	 	 w a i t ( 1 ) ; 
 
 	 } 
 
 } 
 
 
 
 / /   M o c h i h a m m e r 
 
 f u n c t i o n   m a k e M o c h i H a m ( p x , p y , p z )   { 
 
 	 m o c h i S m a s h   =   f a l s e ; 
 
 	 l e t   a l p h a V a l u e   =   0 ; 
 
 	 l e t   o b j   =   O b j M e s h _ C r e a t e ; 
 
 	 O b j M e s h _ L o a d ( o b j , " s c r i p t / t h d c s / s y s t e m / e n m 0 3 / m o c h i h a m m e r . m q o " ) ; 
 
 	 O b j R e n d e r _ S e t B l e n d T y p e ( o b j , B L E N D _ A L P H A ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , a l p h a V a l u e ) ; 
 
 	 O b j R e n d e r _ S e t P o s i t i o n ( o b j , p x , p y , 0 ) ; 
 
 	 O b j R e n d e r _ S e t A n g l e X Y Z ( o b j , 0 , 9 0 , 9 0 ) ; 
 
 	 O b j _ S e t R e n d e r P r i o r i t y I ( o b j , 7 0 ) ; 
 
 	 O b j R e n d e r _ S e t S c a l e X Y Z ( o b j , 4 , 3 , 3 ) ; 
 
 	 O b j R e n d e r _ S e t Z W r i t e ( o b j , t r u e ) ; 
 
 	 O b j M e s h _ S e t C o o r d i n a t e 2 D ( o b j , t r u e ) ; 
 
 	 r e t u r n   o b j ; 
 
 } 
 
 
 
 / /   T e w i   f a s t   d a s h i n g 
 
 t a s k   t e w i R u n ( t )   { 
 
 	 a s c e n t ( j   i n   0 . . t )   { 
 
 	 	 l e t   s   =   ( j % 2 ) * 2 - 1 ; 
 
 	 	 a s c e n t ( i   i n   0 . . 4 5 ) { 
 
 	 	 	 C r e a t e S h o t O A 1 ( b o s s 2 O b j ,   3 . 2 ,   i * 8 ,   9 8 ,   8 ) ; 
 
 	 	 	 C r e a t e S h o t O A 1 ( b o s s 2 O b j ,   3 ,   i * 8 + 2 * s ,   9 8 ,   8 ) ; 
 
 	 	 	 C r e a t e S h o t O A 1 ( b o s s 2 O b j ,   2 . 8 ,   i * 8 + 4 * s ,   9 8 ,   8 ) ; 
 
 	 	 	 C r e a t e S h o t O A 1 ( b o s s 2 O b j ,   2 . 6 ,   i * 8 + 6 * s ,   9 8 ,   8 ) ; 
 
 	 	 } 
 
 	 	 O b j M o v e _ R a n d o m P o s W e i g h t ( b o s s 2 O b j , r a n d _ i n t ( 6 0 , 9 0 ) , r a n d _ i n t ( 4 5 , 9 0 ) , 5 , 1 5 , G e t C l i p M i n X + 3 2 , G e t C l i p M i n Y + 3 2 , G e t C l i p M a x X - 3 2 , G e t C l i p M i n Y + 1 2 0 ) ; 
 
 	 	 w a i t ( 3 0 ) ; 
 
 	 } 
 
 } 
 
 
 
 / /   T e w i ' s   R e c o r d   f l i g h t   s m a s h i n g   i n t o   p l a y e r . 
 
 t a s k   t e w i S m a s h   { 
 
 	 l o o p ( 3 0 ) { y i e l d ; } 
 
 	 O b j M o v e _ S e t S p e e d ( b o s s 2 O b j , 0 ) ; 
 
 	 O b j M o v e _ S e t A n g l e ( b o s s 2 O b j , G e t A n g l e T o P l a y e r ( b o s s 2 O b j ) ) ; 
 
 	 O b j M o v e _ S e t A c c e l e r a t i o n ( b o s s 2 O b j , 0 . 2 ) ; 
 
 	 O b j M o v e _ S e t M a x S p e e d ( b o s s 2 O b j , 6 ) ; 
 
 	 O b j M o v e _ S e t A c c e l e r a t i o n ( b o s s 2 O b j , 0 . 2 ) ; 
 
 
 
 	 l o o p { 
 
 	 	 i f ( O b j M o v e _ G e t X ( b o s s 2 O b j )   <   G e t C l i p M i n X - 9 6   | |   O b j M o v e _ G e t X ( b o s s 2 O b j )   >   G e t C l i p M a x X + 9 6   | |   O b j M o v e _ G e t Y ( b o s s 2 O b j )   <   G e t C l i p M i n Y - 9 6   | |   O b j M o v e _ G e t Y ( b o s s 2 O b j )   >   G e t C l i p M a x Y + 9 6 )   { 
 
 	 	 	 O b j M o v e _ S e t P o s i t i o n ( b o s s 2 O b j , r a n d ( G e t C l i p M i n X , G e t C l i p M a x X ) , - 4 8 ) ; 
 
 	 	 	 O b j M o v e _ S e t A n g l e ( b o s s 2 O b j , G e t A n g l e T o P l a y e r ( b o s s 2 O b j ) ) ; 
 
 	 	 	 i f ( ! u s a g i A c t i v e ) {   b r e a k ;   } 
 
 	 	 } 
 
 	 	 y i e l d ; 
 
 	 } 
 
 } 
 
 
 
 / /   R a n d o m   u s a g i   f r o m   t o p 
 
 t a s k   u s a S p a w n e r T o p   { 
 
 	 l e t   d i r   =   0 ; 
 
 	 w h i l e ( u s a L i f e   >   0 )   { 
 
 	 	 l e t   u s a 0 1   =   u s a g i E n y ( r a n d ( G e t C l i p M i n X , G e t C l i p M a x X ) , - 4 8 , 5 0 ) ; 
 
 	 	 l e t   r e c 0 1   =   s u r f R e c o r d ( u s a 0 1 , O b j M o v e _ G e t X ( u s a 0 1 ) , O b j M o v e _ G e t Y ( u s a 0 1 ) , 0 , 0 . 1 0 ) ; 
 
 	 	 d i r   =   G e t A n g l e T o P l a y e r ( u s a 0 1 ) ; 
 
 	 	 O b j M o v e _ S e t A n g l e ( u s a 0 1 , d i r ) ; 
 
 	 	 O b j M o v e _ S e t S p e e d ( u s a 0 1 , 4 ) ; 
 
 	 	 w a i t ( U S A G I _ F R A M E ) ; 
 
 	 } 
 
 } 
 
 
 
 / /   S h o w s   t h e   w a r n i n g   s i g n 
 
 t a s k   w a r n i n g S i g n   { 
 
 	 l e t   o b j   =   O b j P r i m _ C r e a t e ( O B J _ S P R I T E _ 2 D ) ; 
 
 	 O b j P r i m _ S e t T e x t u r e ( o b j , w a r n T e x ) ; 
 
 	 O b j _ S e t R e n d e r P r i o r i t y I ( o b j , 5 0 ) ; 
 
 	 O b j R e n d e r _ S e t B l e n d T y p e ( o b j , B L E N D _ A D D _ A R G B ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 0 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 0 , 0 , 5 1 2 , 5 1 2 ) ; 
 
 	 O b j R e n d e r _ S e t S c a l e X Y Z ( o b j , 0 . 5 , 0 . 5 , 0 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t D e s t C e n t e r ( o b j ) ; 
 
 	 O b j R e n d e r _ S e t P o s i t i o n ( o b j , G e t C e n t e r X , G e t C e n t e r Y , 0 ) ; 
 
 	 P l a y S F X ( S F X _ A L E R T ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 0 5 ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 0 ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 0 5 ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 0 ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 0 5 ) ; 
 
 	 w a i t ( 1 5 ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 0 ) ; 
 
 	 O b j _ D e l e t e ( o b j ) ; 
 
 } 
 
 
 
 / /   F u n c t i o n   t o   s u m m o n   o b j   r e c o r d   f o r   s u r f i n g 
 
 f u n c t i o n   s u r f R e c o r d ( m a s t e r o b j , x , y , o f f s e t Y , s i z e )   { 
 
 	 l e t   o b j   =   O b j P r i m _ C r e a t e ( O B J _ S P R I T E _ 2 D ) ; 
 
 
 
 	 O b j P r i m _ S e t T e x t u r e ( o b j , r e c o r d T e x ) ; 
 
 	 O b j R e n d e r _ S e t B l e n d T y p e ( o b j , B L E N D _ A L P H A ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 5 5 ) ; 
 
 	 O b j _ S e t R e n d e r P r i o r i t y I ( o b j , 2 0 ) ; 
 
 	 O b j R e n d e r _ S e t P o s i t i o n ( o b j , x , y , 0 ) ; 
 
 	 O b j R e n d e r _ S e t S c a l e X Y Z ( o b j , s i z e , s i z e , 0 ) ; 
 
 	 O b j R e n d e r _ S e t A n g l e X Y Z ( o b j , 6 0 , 0 , 0 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 0 , 0 , 5 1 2 , 5 1 2 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t D e s t C e n t e r ( o b j ) ; 
 
 
 
 	 s u r f H a n d l e ( o b j , m a s t e r o b j , o f f s e t Y ) ; 
 
 	 r e t u r n   o b j ; 
 
 } 
 
 
 
 / /   H a n d l e s   t h e   a n i m a t i o n   a n d   l i f e t i m e 
 
 t a s k   s u r f H a n d l e ( o b j , f o l l o w , o f f s e t Y )   { 
 
 	 l e t   s p i n   =   0 ; 
 
 	 w h i l e ( ! O b j _ I s D e l e t e d ( f o l l o w ) )   { 
 
 	 	 O b j R e n d e r _ S e t P o s i t i o n ( o b j , O b j M o v e _ G e t X ( f o l l o w ) , O b j M o v e _ G e t Y ( f o l l o w ) + o f f s e t Y , 0 ) ; 
 
 	 	 O b j R e n d e r _ S e t A n g l e Z ( o b j , s p i n ) ; 
 
 	 	 s p i n + = 1 0 ; 
 
 	 	 i f ( O b j E n e m y _ G e t I n f o ( f o l l o w , I N F O _ L I F E )   < =   0 )   {   b r e a k ;   } 
 
 	 	 y i e l d ; 
 
 	 } 
 
 	 O b j _ D e l e t e ( o b j ) ; 
 
 } 
 
 
 
 / /   F a k e   r e c o r d   2   b e f o r e   s u r f i n g   h a p p e n s 
 
 t a s k   f a k e R e c o r d 2 ( x , y , x 2 , y 2 )   { 
 
 	 l e t   o b j   =   O b j E n e m y _ C r e a t e ( O B J _ E N E M Y ) ; 
 
 
 
 	 O b j E n e m y _ R e g i s t ( o b j ) ; 
 
 	 O b j P r i m _ S e t T e x t u r e ( o b j , r e c o r d T e x ) ; 
 
 	 O b j R e n d e r _ S e t B l e n d T y p e ( o b j , B L E N D _ A L P H A ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 5 5 ) ; 
 
 	 O b j _ S e t R e n d e r P r i o r i t y I ( o b j , 2 0 ) ; 
 
 	 O b j R e n d e r _ S e t P o s i t i o n ( o b j , x , y , 0 ) ; 
 
 	 O b j R e n d e r _ S e t S c a l e X Y Z ( o b j , 0 . 2 0 , 0 . 2 0 , 0 ) ; 
 
 	 O b j R e n d e r _ S e t A n g l e X Y Z ( o b j , 6 0 , 0 , 0 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 0 , 0 , 5 1 2 , 5 1 2 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t D e s t C e n t e r ( o b j ) ; 
 
 	 O b j E n e m y _ S e t L i f e ( o b j , 9 9 9 9 ) ; 
 
 	 O b j M o v e _ S e t P o s i t i o n ( o b j , x , y ) ; 
 
 
 
 	 s p i n H a n d l e ( o b j ) ; 
 
 
 
 	 O b j M o v e _ S e t D e s t A t S p e e d ( o b j , x 2 , y 2 , 6 ) ; 
 
 	 w h i l e ( O b j M o v e _ G e t S p e e d ( o b j )   >   0 )   {   y i e l d ;   } 
 
 	 t e w i R e c   =   s u r f R e c o r d ( b o s s 2 O b j , O b j M o v e _ G e t X ( b o s s 2 O b j ) , O b j M o v e _ G e t Y ( b o s s 2 O b j ) , 3 2 , 0 . 2 0 ) ; 
 
 	 O b j _ D e l e t e ( o b j ) ; 
 
 } 
 
 
 
 / /   S p i n n i n g   a n i m 
 
 t a s k   s p i n H a n d l e ( o b j )   { 
 
 	 l e t   s p i n   =   0 ; 
 
 	 w h i l e ( ! O b j _ I s D e l e t e d ( o b j ) )   { 
 
 	 	 O b j R e n d e r _ S e t A n g l e Z ( o b j , s p i n ) ; 
 
 	 	 s p i n + = 1 0 ; 
 
 	 	 y i e l d ; 
 
 	 } 
 
 	 O b j _ D e l e t e ( o b j ) ; 
 
 } 
 
 
 
 / /   D i s p l a y   u s a g i   l i v e s 
 
 t a s k   u s a g i D i s p l a y   { 
 
 	 l e t   o f f s e t   =   3 2 ; 
 
 	 l e t   n e x t X   =   4 1 0 + 3 2 ; 
 
 	 l e t   n e x t Y   =   2 7 0 - 3 2 ; 
 
 	 l e t   u s a A r r a y   =   [ ] ; 
 
 	 l e t   c u r L i f e   =   M A X _ U S A G I ; 
 
 	 a s c e n t ( i   i n   0 . . c u r L i f e )   { 
 
 	 	 u s a A r r a y   =   u s a A r r a y   ~   [ u s a g i C o u n t ] ; 
 
 	 } 
 
 	 a s c e n t ( i   i n   0 . . l e n g t h ( u s a A r r a y ) )   { 
 
 	 	 O b j R e n d e r _ S e t P o s i t i o n ( u s a A r r a y [ i ] , n e x t X , n e x t Y + o f f s e t , 0 ) ; 
 
 	 	 n e x t Y + = 3 2 ; 
 
 	 	 i f ( n e x t Y   >   4 2 0 ) { 
 
 	 	 	 n e x t Y   =   2 7 0 - 3 2 ; 
 
 	 	 	 n e x t X + = 3 2 ; 
 
 	 	 } 
 
 	 } 
 
 	 w h i l e ( u s a L i f e   >   0 )   { 
 
 	 	 i f ( u s a L i f e   <   c u r L i f e )   { 
 
 	 	 	 P l a y S F X ( S F X _ E N E P 0 0 ) ; 
 
 	 	 	 O b j _ D e l e t e ( u s a A r r a y [ l e n g t h ( u s a A r r a y ) - 1 ] ) ; 
 
 	 	 	 u s a A r r a y   =   u s a A r r a y [ 0 . . l e n g t h ( u s a A r r a y ) - 1 ] ; 
 
 	 	 	 c u r L i f e   =   u s a L i f e ; 
 
 	 	 } 
 
 	 	 y i e l d ; 
 
 	 } 
 
 	 a s c e n t ( i   i n   0 . . l e n g t h ( u s a A r r a y ) )   {   O b j _ D e l e t e ( u s a A r r a y [ i ] ) ;   } 
 
 	 u s a A r r a y   =   [ ] ; 
 
 } 
 
 
 
 / /   F u n c t i o n   t o   s u m m o n   U s a g i 
 
 f u n c t i o n   u s a g i C o u n t   { 
 
 	 l e t   o b j   =   O b j P r i m _ C r e a t e ( O B J _ S P R I T E _ 2 D ) ; 
 
 
 
 	 O b j P r i m _ S e t T e x t u r e ( o b j , u s a g i 2 ) ; 
 
 	 O b j R e n d e r _ S e t B l e n d T y p e ( o b j , B L E N D _ A L P H A ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 5 5 ) ; 
 
 	 O b j _ S e t R e n d e r P r i o r i t y I ( o b j , 9 0 ) ; 
 
 	 O b j R e n d e r _ S e t S c a l e X Y Z ( o b j , 1 , 1 , 0 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 0 , 0 , 3 2 , 3 2 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t D e s t C e n t e r ( o b j ) ; 
 
 
 
 	 r e t u r n   o b j ; 
 
 } 
 
 
 
 / /   F u n c t i o n   t o   s u m m o n   U s a g i 
 
 f u n c t i o n   u s a g i E n y ( x , y , l i f e )   { 
 
 	 l e t   o b j   =   O b j E n e m y _ C r e a t e ( O B J _ E N E M Y ) ; 
 
 
 
 	 O b j E n e m y _ R e g i s t ( o b j ) ; 
 
 	 O b j P r i m _ S e t T e x t u r e ( o b j , u s a g i ) ; 
 
 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 5 5 ) ; 
 
 	 O b j _ S e t R e n d e r P r i o r i t y I ( o b j , 3 1 ) ; 
 
 	 O b j R e n d e r _ S e t S c a l e X Y Z ( o b j , 0 . 6 , 0 . 6 , 0 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 0 , 0 , 9 6 , 1 2 8 ) ; 
 
 	 O b j S p r i t e 2 D _ S e t D e s t C e n t e r ( o b j ) ; 
 
 	 O b j E n e m y _ S e t L i f e ( o b j , 2 ) ; 
 
 	 O b j M o v e _ S e t P o s i t i o n ( o b j , x , y ) ; 
 
 	 O b j _ S e t V a l u e ( o b j , " i s F l y " , t r u e ) ; 
 
 	 u s a g i H a n d l e ( o b j ) ; 
 
 
 
 	 r e t u r n   o b j ; 
 
 } 
 
 
 
 / /   U s a g i   h a n d l e r 
 
 t a s k   u s a g i H a n d l e ( o b j )   { 
 
 	 l e t   u s a g i S p e e d   =   0 ; 
 
 	 l e t   u s a g i D i r   =   0 ; 
 
 	 l e t   u s a F   =   0 ; 
 
 	 l e t   u s a A   =   0 ; 
 
 	 l e t   f a m S c a l e   =   1 ; 
 
 	 l e t   f a m H i d e   =   f a l s e ; 
 
 	 l e t   f a m F o c u s D e l a y   =   0 ; 
 
 
 
 	 w h i l e ( ! O b j _ I s D e l e t e d ( o b j ) )   { 
 
 
 
 	 	 u s a g i S p e e d   =   O b j M o v e _ G e t S p e e d ( o b j ) ; 
 
 	 	 u s a g i D i r   =   O b j M o v e _ G e t A n g l e ( o b j ) ; 
 
 
 
 	 	 / /   I f   l i f e   i s   d e p l e t e d ,   d e l e t e   t h e   f a m i l i a r 
 
 	 	 i f ( O b j E n e m y _ G e t I n f o ( o b j , I N F O _ L I F E )   < =   0 )   { 
 
 	 	 	 P l a y S F X ( S F X _ E N E P 0 0 ) ; 
 
 	 	 	 f a m E x p l o d e E f f e c t ( o b j , 1 ) ; 
 
 	 	 	 u s a L i f e - - ; 
 
 	 	 	 P l a y S F X ( S F X _ U S A 0 0 ) ; 
 
 	 	 	 O b j _ S e t V a l u e ( o b j , " i s F l y " , f a l s e ) ; 
 
 	 	 	 u s a g i D e d ( O b j M o v e _ G e t X ( o b j ) ,   O b j M o v e _ G e t Y ( o b j ) ) ; 
 
 	 	 	 b r e a k ; 
 
 	 	 } 
 
 
 
 	 	 / /   L e a v e   f i e l d   = =   d e l e t e 
 
 	 	 i f ( O b j M o v e _ G e t X ( o b j )   <   G e t C l i p M i n X - 6 4   | |   O b j M o v e _ G e t X ( o b j )   >   G e t C l i p M a x X + 6 4   | |   O b j M o v e _ G e t Y ( o b j )   <   G e t C l i p M i n Y - 6 4   | |   O b j M o v e _ G e t Y ( o b j )   >   G e t C l i p M a x Y + 6 4 )   { 
 
 	 	 	 O b j _ D e l e t e ( o b j ) ; 
 
 	 	 	 b r e a k ; 
 
 	 	 } 
 
 
 
 	 	 / /   A n i m 
 
 	 	 i f ( u s a F   <   1 5 )   {   O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 0 , 0 , 9 6 , 1 2 8 ) ;   } 
 
 	 	 i f ( u s a F   > =   1 5   & &   u s a F   <   3 0 )   {   O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 9 6 , 0 , 1 9 2 , 1 2 8 ) ;   } 
 
 	 	 i f ( u s a F   > =   3 0   & &   u s a F   <   4 5 )   {   O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 1 9 2 , 0 , 2 8 8 , 1 2 8 ) ;   } 
 
 	 	 i f ( u s a F   > =   4 5 )   {   O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 2 8 8 , 0 , 3 8 4 , 1 2 8 ) ;   } 
 
 	 	 i f ( u s a g i S p e e d   = =   0 )   {   O b j R e n d e r _ S e t A n g l e X Y Z ( o b j , 0 , 0 , 0 ) ; 	 } 
 
 	 	 e l s e   i f ( c o s ( u s a g i D i r )   >   0 )   {   O b j R e n d e r _ S e t A n g l e X Y Z ( o b j , 0 , 1 8 0 , 0 ) ;   } 
 
 	 	 e l s e   i f ( c o s ( u s a g i D i r )   <   0 )   {   O b j R e n d e r _ S e t A n g l e X Y Z ( o b j , 0 , 0 , 0 ) ;   } 
 
 
 
 	 	 u s a F + = 1 . 5 ; 
 
 	 	 i f ( u s a F   >   6 0 )   {   u s a F   =   0 ;   } 
 
 	 	 O b j E n e m y _ S e t I n t e r s e c t i o n C i r c l e T o S h o t ( o b j , O b j M o v e _ G e t X ( o b j ) , O b j M o v e _ G e t Y ( o b j ) , 1 2 ) ; 
 
 	 	 O b j E n e m y _ S e t I n t e r s e c t i o n C i r c l e T o P l a y e r ( o b j , O b j M o v e _ G e t X ( o b j ) , O b j M o v e _ G e t Y ( o b j ) , 1 2 ) ; 
 
 	 	 y i e l d ; 
 
 	 } 
 
 
 
 	 O b j _ D e l e t e V a l u e ( o b j , " i s F l y " ) ; 
 
 	 O b j _ D e l e t e ( o b j ) ; 
 
 
 
 	 t a s k   u s a g i D e d ( x , y )   { 
 
 	 	 l e t   o b j   =   O b j E n e m y _ C r e a t e ( O B J _ E N E M Y ) ; 
 
 
 
 	 	 O b j E n e m y _ R e g i s t ( o b j ) ; 
 
 	 	 O b j P r i m _ S e t T e x t u r e ( o b j , u s a g i ) ; 
 
 	 	 O b j R e n d e r _ S e t A l p h a ( o b j , 2 5 5 ) ; 
 
 	 	 O b j _ S e t R e n d e r P r i o r i t y I ( o b j , 3 1 ) ; 
 
 	 	 O b j R e n d e r _ S e t S c a l e X Y Z ( o b j , 0 . 6 , 0 . 6 , 0 ) ; 
 
 	 	 O b j S p r i t e 2 D _ S e t S o u r c e R e c t ( o b j , 0 , 1 2 8 , 9 6 , 2 5 6 ) ; 
 
 	 	 O b j S p r i t e 2 D _ S e t D e s t C e n t e r ( o b j ) ; 
 
 	 	 O b j M o v e _ S e t P o s i t i o n ( o b j , x , y ) ; 
 
 	 	 O b j _ S e t V a l u e ( o b j , " i s F a m i l i a r " ,   t r u e ) ; 
 
 
 
 	 	 O b j M o v e _ S e t S p e e d ( o b j , 0 ) ; 
 
 	 	 O b j M o v e _ S e t A n g l e ( o b j , 9 0 ) ; 
 
 	 	 O b j M o v e _ S e t M a x S p e e d ( o b j , - 5 ) ; 
 
 	 	 O b j M o v e _ S e t A c c e l e r a t i o n ( o b j , 0 . 2 ) ; 
 
 	 	 w a i t ( 5 ) ; 
 
 	 	 O b j M o v e _ S e t M a x S p e e d ( o b j , 6 ) ; 
 
 	 	 O b j M o v e _ S e t A c c e l e r a t i o n ( o b j , 0 . 2 ) ; 
 
 
 
 	 	 w h i l e ( ! O b j _ I s D e l e t e d ( o b j ) )   { 
 
 	 	 	 O b j E n e m y _ S e t I n t e r s e c t i o n C i r c l e T o S h o t ( o b j , O b j M o v e _ G e t X ( o b j ) , O b j M o v e _ G e t Y ( o b j ) , 8 ) ; 
 
 	 	 	 O b j E n e m y _ S e t I n t e r s e c t i o n C i r c l e T o P l a y e r ( o b j , O b j M o v e _ G e t X ( o b j ) , O b j M o v e _ G e t Y ( o b j ) , 8 ) ; 
 
 
 
 	 	 	 / /   L e a v e   f i e l d   = =   d e l e t e 
 
 	 	 	 i f ( O b j M o v e _ G e t X ( o b j )   <   G e t C l i p M i n X - 6 4   | |   O b j M o v e _ G e t X ( o b j )   >   G e t C l i p M a x X + 6 4   | |   O b j M o v e _ G e t Y ( o b j )   <   G e t C l i p M i n Y - 6 4   | |   O b j M o v e _ G e t Y ( o b j )   >   G e t C l i p M a x Y + 6 4 )   { 
 
 	 	 	 	 O b j _ D e l e t e ( o b j ) ; 
 
 	 	 	 	 b r e a k ; 
 
 	 	 	 } 
 
 	 	 	 y i e l d ; 
 
 	 	 } 
 
 	 } 
 
 } 
 
 
 
 t a s k   s c r i p t E n d i n g   { 
 
 	 i f ( G e t A r e a C o m m o n D a t a ( " g a m e " , " f i g h t T e w i " , f a l s e )   | |   G e t A r e a C o m m o n D a t a ( " g a m e " , " m e n u F l o w " , 0 )   = =   4 )   { 
 
 	 	 w h i l e ( O b j E n e m y _ G e t I n f o ( b o s s O b j , I N F O _ L I F E )   >   0 )   { 
 
 	 	 	 y i e l d ; 
 
 	 	 } 
 
 	 } 
 
 	 O b j E n e m y _ S e t L i f e ( b o s s O b j , - 1 ) ; 
 
 	 D e l e t e S h o t A l l ( T Y P E _ A L L ,   T Y P E _ I T E M ) ; 
 
 	 O b j _ D e l e t e ( b o s s O b j ) ; 
 
 	 C l o s e S c r i p t ( G e t O w n S c r i p t I D ( ) ) ; 
 
 } 
 
 
 
 