------------------------------------------------------------------ -- \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) ) then ccSetAdvMobEventCollision( id, false ); ccSetAdvMobDisp( id, false ); if( enable == true ) then ccCreateAdvItem( id, pos.x, pos.y, pos.z, 0.0, itemBoxId ); end ccCreateAdvMobEffect( id, "data/stage/saxgim.xfbin", "saxgim004_eff00" ); ccAdvPlay3dSeByCurPos( id, S_leaves ); break; elseif( state == CCD_ADV_CHARA_STATE_WALK ) then ccSetAdvMobEventCollision( id, false ); ccCreateEffect( id, "data/stage/saxgim.xfbin", "saxgim004_eff01", pos.x, pos.y, pos.z ); end ccWaitAdvMob( id, 60 ); ccSuspendScript(); ccSetAdvMobEventCollision( id, true ); end -- end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------