loadresource("data\\10\\2\\0002.png","conteiner2",2);
loadresource("data\\10\\2\\conteiner.png","conteiner",3);
loadresource("data\\10\\2\\maslenka.png","maslenka",5);
loadresource("data\\10\\2\\0005.png","conteiner5",5);
loadresource("data\\10\\2\\0007.jpg","conteiner7",7);

loadresource("data\\inventary\\bk.png","bk",6);

AddObjForCur()
addstaticobjecttogame(11,"maslenka",595,187,"",0,0,218,123); --ручка для наклон 
addstaticobjecttogame(10,"maslenka",593,176,"",218,0,210,140); --ручка нажим
addstaticobjecttogame(12,"maslenka",360,289,"",428,0,450,211); --маслёнка наклон
addstaticobjecttogame(13,"maslenka",454,187,"",428,211,429,332); --маслёнка стоит
addstaticobjecttogame(14,"maslenka",360,400,"",0,123,89,46);  --масло начальное
addstaticobjecttogame(15,"maslenka",334,379,"",218,140,194,152); -- масло ок


addstaticobjecttogame(2,"conteiner2",83 ,23 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(2)
SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);



addstaticobjecttogame(17,"conteiner",87,30,"",574,0,369,327);
speciale_action(2,17)

mnext=1

    for i=10,15,1 do
        speciale_action(2,i)
    end;


addactivobjecttogame(4,"conteiner",87 ,30 ,"","",0,0,0,0,574,564); --задвижка
Set_Anim_Cur(4,4);
addstaticobjecttogame(5,"conteiner5",87 ,30 ,""); --крышка
NewObj("balkey","bk",2000,2000,"65"); --ключ
NewObj("balkye","conteiner",123,289,"65",768,327,241,137); --ключ
addstaticobjecttogame(7,"conteiner7",87 ,30 ,"",0,0,574,564); --бг

if flags.maslo then
   Set_Anim_Cur(4,3)
   speciale_action(2,4)
   speciale_action(2,5)
   Set_Anim_Cur(obj.balkye.id,4)
end;
  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;

WaitRender();