function n02merchanta3_070() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseNpc(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccameraa("Merchanta3_070") coroutine.yield(); if(Event:GetEventFlag(141)==1) then Event:Print("/vnSorry, I’m all sold out!/b/co"); else Event:Print("/vnWant bottles? I got ’em!/r100G per shiny bottle!/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>99) then Event:CloseMessage(); coroutine.yield(); Event:SetEventFlag(141,1); --空き瓶を入手したフラグ Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-100); Event:Wait(0.5); coroutine.yield(); getspecialitem3(64) Event:RestoreDof(); Event:RestoreCamera(); Event:BackupCamera(); Event:BackupDof(); Event:Print("/cl> Got an Empty Bottle!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem3() setnpccamerad("Merchanta3_070") Event:Wait(0.5); coroutine.yield(); Event:Print("/clAlright! Thanks!/b/co"); else Event:Print("/clYou don’t have enough.../b/co"); end else Event:Print("/clIf you say so.../b/co"); end end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end