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