------------------------------------------------------------------ -- \author tsuneoka -- \date 2009/06/22 14:52:40 ------------------------------------------------------------------ -- start local id = ccGetScriptId(); local n = 0; local index = 0; local time = 0; n = math.random( 0, 1 ); time = math.random( 0, 30 ); ccWaitAdvMob( id, time ); ccSuspendScript(); while( 1 ) do index = n % 2; if( index == 0 ) then ccSetAdvMobAnm( id, "data/stage/saxgim.xfbin", "rhwknut00" ); elseif( index == 1 ) then ccSetAdvMobAnmWithFrame( id, "data/stage/saxgim.xfbin", "rhwklan00", 0 ); ccAdvPlay3dSeByCurPos( id, S_ADV_hawk ); ccWaitAdvMobEndAnm( id ); ccSuspendScript(); ccSetAdvMobAnmWithFrame( id, "data/stage/saxgim.xfbin", "rhwknut00", 0 ); end time = math.random( 150, 300 ); ccWaitAdvMob( id, time ); ccSuspendScript(); n = n+ 1; end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------