function n03youngmana8_020() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseNpc(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerac("YoungMana8_020") coroutine.yield(); if(Event:GetEventFlag(EventFlag.item_redorb)==1) --レッドオーブを持っている場合 then if(Event:GetEventFlag(204)==1) --錆びた剣を入手した場合 then --風流な石を手に入れている or 温泉マニアの依頼を受けていない if(Event:GetEventFlag(163)==1 or Event:GetEventFlag(160)==0) then Event:Print("/vnBring that sword to the/rblacksmith, desuyo./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end else if(Event:GetEventFlag(203)==1 and Event:GetEventFlag(204)==0) --鍛冶屋に話を聞いて、さびたけんを入手していない場合 then Event:SetEventFlag(204,1); --204番のフラグがオン --錆びた剣を入手したフラグ Event:Print("/vnGood timing, desu! I/robtained something/rinteresting recently./b/cl"); Event:Print("/vnYou can have it, desu./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); geteventitem() Event:Print("> Got the Rusty Sword!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem() Event:Print("/vnA blacksmith could take/rthat rust off of it in no/rtime, desune./b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end end if(Event:GetEventFlag(163)==1) --風流な石を手に入れている場合 then Event:Print("/vnIf it’s stones you need,/rI’ve got them, desuyo./b/co"); else if(Event:GetEventFlag(160)==1) --温泉マニアの依頼を受けている場合 then Event:SetEventFlag(163,1); --ふうりゅうないしを手に入れたフラグ Event:Print("/vnI am a geologist desu!/rI research many kinds of/rstones, desu./b/cl"); Event:Print("A nice stone, desuka?/rWill this do, desuka?/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); geteventitem() Event:Print("> Got the Nice Stone!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem() Event:Print("/vnIf it’s stones you need,/rI’ve got them, desuyo./b/co"); else if(Event:GetEventFlag(204)==1 and Event:GetEventFlag(205)==0) --さびたけんを入手していて、まだグラディウスを手に入れていない場合 then Event:Print("/vnA blacksmith could take/rthat rust off of it in no/rtime, desune./b/co"); else Event:Print("/vnI am a geologist, desu!/rI research many kinds of/rstones, desu./b/co"); end end end else Event:Print("/vnI am a geologist, desu!/rI research many kinds of/rstones, desu./b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end