------------------------------------------------------------------ -- \author tsuneoka -- \date 2009/06/22 14:52:40 ------------------------------------------------------------------ -- 壺 -- start local id = ccGetScriptId(); local itemBoxId = ccGetItemBoxId( id ); local length = 57.5; local enable = ccGetEnableItemBox( id, itemBoxId ); if( enable == false ) then ccSetAdvMobAnmWithFrame( id, "data/stage/saxgim.xfbin", "saxgim002_n3", 0); else ccSuspendScript(); if( ccIsTutorialGet( "TUTORIAL_052" ) == false ) then ccChangeTutorial( id, "TUTORIAL_052"); ccSuspendScript(); end ccSetAdvPlayerDefaultLockOperate( id, false ); ccSetAdvPlayerState( id, CCD_ADV_CHARA_STATE_WAIT ); local playerPos = ccGetPlayerPosition( id ); local pos = ccGetAdvMobPosition( id ); local dir = ccGetAdvMobDirection( id ); ccSetAdvPlayerPosition( id, pos.x + length * dir.x, pos.y + length * dir.y, pos.z, 15 ); ccWaitAdvMob( id, 15 ); ccSuspendScript(); ccInitAdvPlayerPosition( id, pos.x + length * dir.x, pos.y + length * dir.y, pos.z ); ccTurnAdvPlayerToMob( id ); ccSetAdvPlayerState( id, CCD_ADV_CHARA_STATE_ACTION ); ccSetAdvPlayerAnmByMotionNameFrame(id, "gim2", 0 ); ccWaitAdvMob( id, 3 ); ccSuspendScript(); ccAdvPlay3dSeByCurPos( id, S_ADV_signboardB2 ); ccSetAdvMobAnmWithFrame( id, "data/stage/saxgim.xfbin", "saxgim002_n2", 0); ccWaitEndAnmPlayer( id ); ccSuspendScript(); ccSetAdvMobAnmWithFrame( id, "data/stage/saxgim.xfbin", "saxgim002_n3", 0); ccSetAdvPlayerPosition( id, pos.x + 100 * dir.x, pos.y + 100 * dir.y, pos.z, 15 ); ccWaitAdvMob( id, 15 ); ccSuspendScript(); ccSetAdvPlayerState( id, CCD_ADV_CHARA_STATE_WAIT ); ccSetAdvPlayerDefaultLockOperate( id, true ); -- アイテムボックスを開ける ccOpenItemBoxId( id, itemBoxId ); if( ccIsTutorialGet( "TUTORIAL_002" ) == false ) then ccChangeTutorial( id, "TUTORIAL_002"); ccSuspendScript(); end end -- end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------