function mainevent_castlebattle1() local Event=EventClass.Event; Event:LockPlayer(); Event:SetPlayerPosition(8,20,0); coroutine.yield(); Event:HealPlayerHp(36); Event:HealPlayerMp(18); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:CreateNpc(1.6,0.0,0.0,"Princess"); coroutine.yield(); Event:SetStatusVisible(0); Event:SetNpcDirection("Princess",0); Event:BackupCamera(); Event:SetCamera(11.0,17.2,6.0); Event:BackupDof(); Event:SetParamDepthofField(0.89,0.70,0.0); Event:SetPlayerDirection(0); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:MovePlayer(0.0,1.6,3.2); coroutine.yield(); Event:MovePlayer(0.0,14.4,3.2); --coroutine.yield(); Event:MoveNpc("Princess",0.0,14.4,3.2); coroutine.yield(); Event:MovePlayer(-1.6,0.0,3.2); --coroutine.yield(); Event:MoveNpc("Princess",-1.6,0.0,3.2); coroutine.yield(); Event:MovePlayer(0.0,6.5,3.2); --coroutine.yield(); Event:MoveNpc("Princess",0.0,7.9,3.2); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); else Event:SetStatusVisible(0); Event:BackupCamera(); Event:SetCamera(11.0,17.2,6.0); Event:BackupDof(); Event:SetParamDepthofField(0.89,0.70,0.0); Event:SetPlayerDirection(0); coroutine.yield(); Event:MovePlayer(0.0,1.6,3.2); coroutine.yield(); Event:MovePlayer(0.0,14.4,3.2); coroutine.yield(); Event:MovePlayer(-1.6,0.0,3.2); coroutine.yield(); Event:MovePlayer(0.0,6.5,3.2); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); end if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then end Event:SetCamera(0.10,8.67,58.31,18.50,1.86,-23.23); Event:SetParamDepthofField(0.66,0.90,0.0); coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:Print("/vhIris: Father! Father,/rI’m home!/b/cl"); Event:Print("/vnKing: Iris! You’re safe!/b/cl"); Event:Print("/vhIris: Yes, Father. Master/r"..Event:GetPlayerName().." saved me!/b/cl"); Event:Print("/vnKing: Thank you, dear/rhero, for saving my/rprecious daughter!/b/cl"); else Event:Print("/vnKing: "..Event:GetPlayerName()..".../rMY HERO!/b/cl"); end Event:Print("News of your feats has/rspread throughout the/rkingdom./b/cl"); Event:Print("The Wind Sage, Origin,/ris headed here now to/rsee the orbs himself./b/cl"); Event:Print("But you must be tired!/rYour rest is well deserved!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:StopBgm(); Event:StartParallelLightAnime(3,0.15,0.15,0.15,0.08, 0.08,0.08); coroutine.yield(); Event:Wait(3.0); coroutine.yield(); Event:Print("King: What’s happening!?/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:SetCamera(0.10,23.15,181.90,14.15,4.90,-14.04); Event:SetParamDepthofField(1.69,0.30,0.0); Event:SetPlayerDirection(1); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetNpcDirection("Princess",1); end Event:Wait(0.5); coroutine.yield(); Event:PlayBgm(soundList.SoundID.BGM_boss03); Event:PlaySe(soundList.SoundID.SE_blackhall_fall); Event:CreateNpc(2.4,0.0,-8.8,"Priest"); Event:SetNpcDirection("Priest",0); Event:createBossWarpEffect("Priest"); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:Print("???: Bothersome flies!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_humanprincess)==1) then Event:SetNpcDirection("Princess",1); end Event:SetNpcDirection("Priest",0); Event:Wait(1.5); coroutine.yield(); setnpccameraup("Kinga1_010") Event:Print("King: YーYou! You’re the/rDark Bishop, Fuelle!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:SetCamera(0.10,23.15,181.90,14.15,4.90,-14.04); Event:SetParamDepthofField(1.37,0.60,0.0); Event:Wait(1.0); coroutine.yield(); Event:MoveNpc("Priest",0.0,4.4,3.2); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); if ( Event:IsSpelunker() )--スペランカーモードの時 then Event:Print("Fuelle: You’ve done.../rpretty good, Spelunker./b/cl"); else Event:Print("Fuelle: You have been a/rformidable foe, Hero./b/cl"); end Event:Print("But your meddling ends/rhere! Hand over the/rorbs!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:RestoreCamera(); Event:RestoreDof(); Event:StartFeedBack(); Event:Wait(0.1); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_warp); coroutine.yield(); Event:Wait(0.2); coroutine.yield(); Event:SetMap("D_8_2","-gtd8_2"); coroutine.yield(); Event:UnlockPlayer(); end