function mapevent_d21_01() local Event=EventClass.Event; if(Event:GetEventFlag(EventFlag.scene_opening1)==0) then Event:SetStatusVisible(0); Event:FadeBlack() Event:LockPlayer(); Event:SetMoney(0) Event:SetInheriting() Event:SetPlayerDirection(1); Event:SetNpcVisible("Landlord",0); Event:CreateNpc(-1.6,0.0,0.0,"Landlorda5"); Event:SetNpcDirection("Landlorda5",3); --0912 Event:Print("Innkeeper: Wake up.../rWake up, sleepyhead./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(2.0); coroutine.yield(); Event:FadeIn() coroutine.yield(); Event:SetPlayerDirection(2); Event:Print("Good morning! Did you/rsleep well last night?/b/cl"); Event:Print("Eh? You had a strange/rdream?/b/cl"); Event:Print("Was it a dream about the/rhero who defeated the/rDark King?/b/cl"); Event:Print("Monsters have been so/raggressive lately, I/rwouldn’t doubt it.../b/cl"); Event:Print("True heroes dream in 3D,/rso that’s how you can/rreally tell!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_stair); Event:CreateNpc(-9.6,0.0,-8.0,"ImperialGuard"); Event:SetNpcDirection("ImperialGuard",0); coroutine.yield(); Event:Wait(1.0); coroutine.yield(); Event:SetAnimationId("ImperialGuard", 2); Event:MoveNpc("ImperialGuard",0.0,8.0,3.2); coroutine.yield(); Event:SetNpcDirection("ImperialGuard",3); Event:SetAnimationId("ImperialGuard", 1); coroutine.yield(); if(Event:GetFromMode() == 1) then Event:Print("Soldier: Excuse me! I/runderstand someone named/r"..Event:GetPlayerName().." is here.../b/cl"); Event:Print("Innkeeper: He’s here for/ryou AGAIN!? What crimes/rare you guilty of!?/b/co"); else Event:Print("Soldier: Excuse me! I/runderstand someone named/r"..Event:GetPlayerName().." is here.../b/cl"); Event:Print("Innkeeper: OーOh no, have/ryou committed a crime or/rsomething!?/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); Event:SetAnimationId("Landlorda5", 2); Event:MoveNpc("Landlorda5",0.0,-1.6,3.2); coroutine.yield(); Event:SetNpcDirection("Landlorda5",0); Event:SetAnimationId("Landlorda5", 1); Event:Wait(0.5); coroutine.yield(); Event:MovePlayer(-8.0,0.0,3.2); coroutine.yield(); Event:Print("Soldier: Oh! So you’re/r"..Event:GetPlayerName().."! Come with me!/b/cl"); Event:Print("The king requests your/rpresence at the castle!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); Event:SetAnimationId("ImperialGuard", 2); Event:MoveNpc("ImperialGuard",0.0,-1.6,3.2); coroutine.yield(); Event:MovePlayer(-1.6,0.0,3.2); coroutine.yield(); Event:SetPlayerDirection(1); Event:MoveNpc("ImperialGuard",0.0,-1.6,3.2); coroutine.yield(); Event:MovePlayer(0.0,-8.0,3.2); Event:MoveNpc("ImperialGuard",0.0,-4.8,3.2); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_stair); coroutine.yield(); Event:SetMap("D_20_1","-gDebug"); Event:UnlockPlayer() end end