loadresource("data\\16\\2\\duplo.png","duplo",2);
loadresource("data\\16\\2\\0005.jpg","duplo5",5);

loadresource("data\\inventary\\kl3.png","kl3",5);
AddObjForCur()

addstaticobjecttogame(2,"duplo",122,28 ,"",0,0,543,573); --рамка
CloseBtnX,CloseBtnY=Coords(2)
SetFlagsForSatButtons()

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




addactivobjecttogame(3,"duplo",150,61 ,"","",0,0,543,0,461,464); --темно
Set_Anim_Cur(3,4)

NewObj("keytwo","kl3",2000,2000,"478"); --ключ
NewObj("keytow","duplo",254,330,"478",543,464,101,43); --ключ
speciale_action(2,obj.keytow.id);
addstaticobjecttogame(5,"duplo5",128,33 ,"",0,0,531,560); --бг

if flags.svet_duplo then
  Set_Anim_Cur(3,3)
  speciale_action(2,obj.keytow.id);
  speciale_action(2,3);
  Set_Anim_Cur(obj.keytow.id,4)
end;

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

WaitRender();