loadresource("data\\14\\2\\luk_turma.png","luk_turma",3);
loadresource("data\\14\\2\\0002.png","luk_turma_2",3);
loadresource("data\\14\\2\\0005.jpg","luk_turma_5",6);
loadresource("data\\14\\2\\0008.jpg","luk_turma_8",9);
loadresource("data\\inventary\\kl2.png","kl2",8);

AddObjForCur()
addstaticobjecttogame(3,"luk_turma_2",157,59 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34
CreateCloseBtn(CloseBtnX,CloseBtnY);



addstaticobjecttogame(4,"luk_turma",443,273,"",0,0,196,135); --знак вставл1
if not flags.is_medal_one and not flags.luk_turma_open then
  speciale_action(2,4);
end;
addstaticobjecttogame(5,"luk_turma",393,249,"",196,0,188,134); --знак вставл2
if not flags.luk_turma_open then
speciale_action(2,5);
end;

Activ={
160+213,64+179,
160+213+304,64+179,
160+213+304,64+179+198,
160+213,64+179+198
}
CreatePolygon(6,4,"Activ")
Set_Anim_Cur(6,4)
addstaticobjecttogame(7,"luk_turma_5",161,65 ,"",0,0,720,534); --люк закрыт
NewObj("iskeyo","kl2",2000,2000,"478"); --ключ
NewObj("iskeoy","luk_turma",465,411,"478",384,49,102,42); --ключ
addstaticobjecttogame(10,"luk_turma",465,411,"",384,0,91,49);--тень ключа
addstaticobjecttogame(9,"luk_turma_8",161,65 ,"",0,0,720,534); --люк открыт

if flags.luk_turma_open then
  speciale_action(2,4);
  speciale_action(2,5);
  speciale_action(2,6)
  speciale_action(2,7)

  Set_Anim_Cur(obj.iskeoy.id,4)
end;

-- if obj.svetka.is_collapsed then
    -- speciale_action(2,10)
-- end;

if obj.iskeyo.is_collapsed then
    speciale_action(2,11)
end;
  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;
WaitRender();