function n26goblinredc1_220() local Event=EventClass.Event; Event:LockPlayer(); Event:PauseNpc(); if(Event:GetItem(117)==1) --グングニルを持っている場合 then Event:Print("/vlThis... tasty! *munch*/vn/b/co"); else if(Event:GetEventFlag(201)==1) --ドッグフードを入手している場合 then Event:SetEventFlag(202,1); --グングニルを入手したフラグ(202番) Event:Print("/vlI smell tasties on you./rYou have tasties, yesss?/b/cl"); Event:Print("Dog food... Never tasted/rdog food. You... give?/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if(Event:GetSelect()==0) then Event:Print("/clThanksss... You take/rthis. Yesss.../b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Wait(0.5); coroutine.yield(); getspecialitem3(117) --グングニルを入手 Event:Print("/vn> Got the Gungnir!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); endgetspecialitem3() Event:Wait(0.5); coroutine.yield(); Event:Print("/vlThis... tasty! *munch*/vn/b/co"); else Event:Print("/clIt is no good...?/vn/b/co"); end else Event:Print("/vl*mumble* *mumble*/b/cl"); Event:Print("Hungry.../vn/b/co"); end end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:PlayNpc(); Event:UnlockPlayer(); return; end