------------------------------------------------------------------ -- \author tsuneoka -- \date ------------------------------------------------------------------ local id = ccGetScriptId(); local itemBoxId = ccGetItemBoxId( id ); local enable = ccGetEnableItemBox( id, itemBoxId ); local pos = ccGetAdvMobPosition( id ); local state = 0; while( 1 ) do ccSuspendScript(); if( ccIsTutorialGet( "TUTORIAL_052" ) == false ) then ccChangeTutorial( id, "TUTORIAL_052"); ccSuspendScript(); end state = ccGetAdvPlayerState(); if( (state == CCD_ADV_CHARA_STATE_RUN) or (state == CCD_ADV_CHARA_STATE_RUN1) or (state == CCD_ADV_CHARA_STATE_JUMP) or (state == CCD_ADV_CHARA_STATE_JUMP1) or (state == CCD_ADV_CHARA_STATE_LAND) ) then ccSetAdvMobEventCollision( id, false ); ccSetAdvMobCollision( id, false ); ccSetAdvMobAnm( id, "data/stage/saxgim.xfbin", "saxgim009_a00_n2" ); ccCreateAdvMobEffect( id, "data/stage/saxgim.xfbin", "saxgim009_effa00" ); ccAdvPlay3dSeByCurPos( id, S_brk_wood2 ); break; end ccWaitAdvMob( id, 30 ); ccSuspendScript(); end if( enable == true ) then ccCreateAdvItem( id, pos.x, pos.y, pos.z, 0.0, itemBoxId ); end -- end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------