function n06oldwomanc1_100() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseEnemy() coroutine.yield(); Event:BackupCamera(); setcamera() coroutine.yield(); if(Event:GetItem(5)==1) --弓を持っている場合 then if(Event:GetEventFlag(147)==3 ) --矢筒を3段階強化した場合 then Event:Print("/vnI can expand your quiver/rcapacity for 200G./co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>199) then Event:SetEventFlag(147,4); --矢筒強化4度目のフラグ Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-200); Event:Wait(0.2); coroutine.yield(); geteventitem() Event:AddItem2(78) Event:Print("/cl> You may now carry up/rto 99 arrows!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem() Event:Print("Thanks for the business./b/co"); else Event:Print("/clThat’s not enough money./b/co"); end else Event:Print("/clWell, it’s your money.../b/co"); end elseif(Event:GetEventFlag(147)==2 ) --矢筒を2段階強化した場合 then Event:Print("/vnI can expand your quiver/rcapacity for 200G./co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>199) then Event:SetEventFlag(147,3); --矢筒強化3度目のフラグ Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-200); Event:Wait(0.2); coroutine.yield(); geteventitem() Event:AddItem2(78) Event:Print("/cl> You may now carry up/rto 60 arrows!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem() Event:Print("Thanks for the business./b/co"); else Event:Print("/clThat’s not enough money./b/co"); end else Event:Print("/clWell, it’s your money.../b/co"); end elseif(Event:GetEventFlag(147)==0 ) --矢筒を一度も強化していない場合 then Event:Print("/vnI can expand your quiver/rcapacity for 200G./co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()>199) then Event:SetEventFlag(147,2); --矢筒を1段階強化したフラグ Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-200); Event:Wait(0.2); coroutine.yield(); geteventitem() Event:AddItem2(78) Event:Print("/cl> You may now carry up/rto 30 arrows!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgeteventitem() Event:Print("Thanks for the business./b/co"); else Event:Print("/clThat’s not enough money./b/co"); end else Event:Print("/clWell, it’s your money.../b/co"); end else Event:Print("/clYou can’t go over 99!/rThat’s a magic number!/b/co"); end else Event:Print("Come back when you have/ra bow./b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreCamera(); Event:UnlockPlayer(); Event:PlayEnemy() return; end