function n02merchanta3_300() local Event=EventClass.Event; Event:PauseEnemy(); Event:LockPlayer(); Event:PauseNpc(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccameraa("Merchanta3_300") coroutine.yield(); if(Event:GetEventFlag(270)==0) then Event:Print("/cl/vnWant some Ebon Pepper?/r1000G for 10 grains./rWhat do ya say?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>999) then Event:SetEventFlag(270,1); --くろこしょうを入手したフラグ Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-1000); Event:Wait(0.5); coroutine.yield(); geteventitem() Event:Print("/cl> Got some Ebon Pepper!/b/co"); Event:WaitContinue(); coroutine.yield(); endgeteventitem() else Event:Print("/clThat’s not enough.../b/co"); end else Event:Print("/clOh, sorry.../b/co"); end else Event:Print("/vnI’m sold out of Ebon/rPepper./b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); Event:PlayEnemy(); return; end