function n05oldmanc1_150() local Event=EventClass.Event; Event:Pause(); coroutine.yield(); Event:BackupCamera(); setcamera() coroutine.yield(); local Jouhouya = math.random(3) if(Jouhouya == 1) then Event:Print("/vnI make my trade as an/rinformant. Want some/rinfo for 70G?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>69) then Event:SetEventFlag(237,1); --宿屋フラグが1フラグ Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-70); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:Print("/clThanks for the business./b/cl"); Event:Print("If you run without/rhitting things, your/rspeed will increase./b/co"); else Event:Print("/clThat’s not enough money./b/co"); end else Event:Print("/clWell, it’s your money.../b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreCamera(); Event:Play(); return; end if(Jouhouya == 2) then Event:Print("/vnI make my trade as an/rinformant. Want some/rinfo for 60G?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>59) then Event:SetEventFlag(237,1); --宿屋フラグが1フラグ Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-60); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:Print("/clThanks for the business./b/cl"); Event:Print("Dic, the inventor in/rRaejack, has a grandson./b/co"); else Event:Print("/clThat’s not enough money./b/co"); end else Event:Print("/clWell, it’s your money.../b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreCamera(); Event:Play(); return; end if(Jouhouya == 3) then Event:Print("/vnI make my trade as an/rinformant. Want some/rinfo for 50G?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>49) then Event:SetEventFlag(237,1); --宿屋フラグが1フラグ Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-50); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); Event:Print("/clThanks for the business./b/cl"); Event:Print("Jaggy cliffs are the/rsecret./b/co"); else Event:Print("/clThat’s not enough money./b/co"); end else Event:Print("/clWell, it’s your money.../b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreCamera(); Event:Play(); return; end end