function n02merchanta3_080() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseNpc(); coroutine.yield(); Event:BackupCamera(); Event:BackupDof(); setnpccamerad("Merchanta3_080") coroutine.yield(); if(Event:GetEventFlag(114)==0) --初めて話しかける場合 then Event:SetEventFlag(237,0); --宿屋フラグをリセット end if(Event:GetEventFlag(117)==1) --初めて話しかける場合 then Event:SetEventFlag(237,0); --宿屋フラグをリセット end if(Event:GetEventFlag(237)==1) --宿屋フラグが1の場合 then if(Event:GetEventFlag(116)==1) then Event:Print("Okay, come back soon!!/rI WON’T fail this time!/b/co"); else if(Event:GetEventFlag(115)==1) then Event:Print("Okay, come back soon!/rI’ll have your money!/b/co"); else if(Event:GetEventFlag(114)==1) then Event:Print("Come back later, I’ll/rhave your money!/b/co"); end end end else if(Event:GetEventFlag(117)==1) then Event:Print("/vnI’m so sorry.../b/co"); else if(Event:GetEventFlag(116)==1) then Event:SetEventFlag(117,1); --117番のフラグがオン --LIFEのかけらを入手したフラグ Event:Print("/vnThe day of reckoning.../b/cl"); Event:Print("Um... let’s not talk/rabout money.../b/cl"); Event:Print("I hope you can forgive/rme if I give ya this.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getfragmentheart(); Event:Wait(0.5); coroutine.yield(); --[[Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getspecialitem3(65) --LIFEのかけらを入手 Event:Print("> Got a LIFE Shard!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem3() Event:Wait(0.5); coroutine.yield();]] Event:Print("/vnI’m so sorry.../b/co"); else if(Event:GetEventFlag(115)==1) then Event:Print("/vnOh, it’s you! Umm.../b/cl"); Event:Print("I hate to say it, but I/rfailed again. It was/rfine until yesterday.../b/cl"); Event:Print("I only need one more/rchance! I’ll pay you/rdouble your investment!/b/cl"); Event:Print("Just trust me... Please?/rWill ya lend me 100G?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()<99) then Event:Print("/clA broke hero? Pfft,why/ram I wasting my time?/b/co"); else Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-100); Event:Wait(0.5); coroutine.yield(); Event:SetEventFlag(237,1); --宿屋フラグをON Event:SetEventFlag(116,1); --116番のフラグがオン --お金を貸す3フラグ Event:Print("/clYou’re a great hero!/b/cl"); Event:Print("Okay, come back soon!/rI WON’T fail this time!/b/co"); end else Event:Print("/clWhat a stingy hero.../b/co"); end else if(Event:GetEventFlag(114)==1) then Event:Print("/vnSay, Hero... Could ya/rhelp me out once more?/b/cl"); Event:Print("It’s embarrassing... But/rmy business failed./b/cl"); Event:Print("I can do better this/rtime! Just help me out!/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()<99) then Event:Print("/clA broke hero? Pfft,why/ram I wasting my time?/b/co"); else Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-100); Event:Wait(0.5); coroutine.yield(); Event:SetEventFlag(237,1); --宿屋フラグをON Event:SetEventFlag(115,1); --115番のフラグがオン --お金を貸す2フラグ Event:Print("/clYou’re a great hero!/b/cl"); Event:Print("Okay, come back soon!/rI’ll have your money!/b/co"); end else Event:Print("/clWhat a stingy hero.../b/co"); end else Event:Print("/vnYou’re a hero, ain’t ya?/rSo you carry money? Can/rya spare me 100G?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then if(Event:GetMoney()<99) then Event:Print("/clA broke hero? Pfft,why/ram I wasting my time?/b/co"); else Event:PlaySe(soundList.SoundID.SE_item_purchase); coroutine.yield(); Event:SetMoney(Event:GetMoney()-100); Event:Wait(0.5); coroutine.yield(); Event:SetEventFlag(237,1); --宿屋フラグをON Event:SetEventFlag(114,1); --114番のフラグがオン --お金を貸す1フラグ Event:Print("/clYou’re a great hero!/b/cl"); Event:Print("Come back later, I’ll/rhave your money!/b/co"); end else Event:Print("/clWhat a stingy hero.../b/co"); end end end end end end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:RestoreDof(); Event:RestoreCamera(); Event:PlayNpc(); Event:UnlockPlayer(); return; end