------------------------------------------------------------------ -- \author miyazaki -- \date 2010/07/09 ------------------------------------------------------------------ -- ショップの入口 local id = ccGetScriptId(); local posX = 0; local posY = 0; local posZ = 0; local myName = ccGetAdvMobName( id ); local disp = true; -- 第六章の「放心」〜第六章終りまではどのお店にも入れないので、アイコン非表示 if ( (ccGetAdvMainChapter(id) == 6) and (ccGetAdvMainSequence(id) >= 17) ) then disp = false; end -- ■ 甘栗甘 if myName == "ent_amaguri" then posX = 180; posY = -190; posZ = 220; -- ■ 焼肉Q elseif myName == "ent_yakiniku" then posX = 350; posY = -715; posZ = 180; -- 許可書配布終わるまではアイコン表示しないように if (ccGetAdvMainChapter(id) == 0) and (ccGetSubEventSequenceById("m_sub02") == 0) then disp = false; end -- ■ 木ノ葉食堂 elseif myName == "ent_syokudo" then posX = 250; posY = 450; posZ = 180; -- ■ 認識札ショップ 忍忍 elseif myName == "ent_card" then posX = 261; posY = 4; posZ = 200; -- 許可書配布終わるまではアイコン表示しないように if (ccGetAdvMainChapter(id) == 0) and (ccGetSubEventSequenceById("m_sub02") == 0) then disp = false; end -- ■ ラーメン一楽 elseif myName == "ent_ichiraku" then posX = 172; posY = -335; posZ =170; -- 序章の間入れないので、アイコン表示しないように if( ccGetAdvMainChapter( id ) == 0 ) then disp = false; end -- ■ やまなか花 elseif myName == "ent_hana" then posX = -775; posY = -1150; posZ = 180; -- ショップ閉まってる時はアイコン表示しないように local chap = ccGetAdvMainChapter(id); local seq = ccGetAdvMainSequence(id); if (chap == 0) or (chap == 1) or ((chap == 2) and ((seq >= 0) and (seq <= 13))) or ((chap == 3) and (seq >= 4) ) or ((chap == 6) and ((seq >= 0) and (seq <= 11))) then disp = false; end -- ■ よろず屋 萬代 elseif myName == "ent_yorozu" then posX = -2437; posY = -550; posZ = 200; -- 許可書配布終わるまではアイコン表示しないように if (ccGetAdvMainChapter(id) == 0) and (ccGetSubEventSequenceById("m_sub02") == 0) then disp = false; end -- ■ だんご屋 elseif myName == "ent_dango" then posX = -2522; posY = 183; posZ = 200; -- ■ 道具屋 ハガクレ elseif myName == "ent_dougu" then posX = -414; posY = -888; posZ = 360; -- ■ 砂肝亭 elseif myName == "ent_sunagimo" then posX = -488; posY = -624; posZ = 310; -- ■ 道具屋 カラクリ elseif myName == "ent_karakuri" then posX = 324; posY = -1100; posZ = 200; end if disp then ccAdvUiOpenTarget( id, CCD_UITARGETADVCOMMONID_SHOP_ENTRANCE, nil, posX, posY, posZ ); end