------------------------------------------------------------------ -- \author tsuneoka -- \date 2009/06/22 14:52:40 ------------------------------------------------------------------ -- start local id = ccGetScriptId(); local index = 0; local time = 0; n = math.random( 0, 3 ); time = math.random( 0, 30 ); ccWaitAdvMob( id, time ); ccSuspendScript(); while( 1 ) do index = math.random( 0, 1 ); if( index == 0 ) then ccSetAdvMobAnm( id, "data/stage/saxgim.xfbin", "rcrbnut00" ); elseif( index == 1 ) then ccSetAdvMobAnm( id, "data/stage/saxgim.xfbin", "rcrbspk00" ); end time = math.random( 300, 600 ); ccWaitAdvMob( id, time ); ccSuspendScript(); end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------