loadresource("data\\11\\4\\0002.png",   "luk_john02", 2);
loadresource("data\\11\\4\\luk_john_all.png",   "luk_john_all", 3);
loadresource("data\\11\\4\\0011.jpg",   "luk_john11",11);
loadresource("data\\inventary\\dnevnik.png","luk_john12",12);

AddObjForCur()
addstaticobjecttogame( 2,"luk_john02",190,97 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(2)
SetFlagsForSatButtons()


CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);


NewObj("jhndk","luk_john12",5000,5000,"291",nil,nil,nil,nil,"2002"); --дневник для инв


addstaticobjecttogame( 3,"luk_john_all",442,256,"",710,645,242,127); --вентиль прокрученый
speciale_action(2,3);
addstaticobjecttogame( 4,"luk_john_all",442,263,"",710,772,242,118); --вентиль установлен
speciale_action(2,4);
addactivobjecttogame( 6,"luk_john_all",197,277,"","",0,0,0,0,689,307); --крышка закрыта
Set_Anim_Cur(6,4);
addstaticobjecttogame( 7,"luk_john_all",197,103,"",0,307,689,224); --крышка открыта
speciale_action(2,7);
addactivobjecttogame( 8,"luk_john_all",502,407,"","",0,0,467,645,243,168); --дневник
speciale_action(2,8);

addstaticobjecttogame(11,"luk_john11",197,103,"",0,0,692,516); --бг
counter=0
if flags.luk_jones then
    Set_Anim_Cur(6,3);
    speciale_action(2,7);
    speciale_action(2,6);
    if not flags.jhndk then
        speciale_action(2,8);
        Set_Anim_Cur(8,4)
    end;    
    if not flags.rukja then    
        speciale_action(2,9);
        Set_Anim_Cur(9,4)
    end;            
end;

  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;
WaitRender();