loadresource("data\\7\\2\\0002.png","secret_book1",1);
loadresource("data\\7\\2\\0006.jpg","secret_book5",5);
loadresource("data\\7\\2\\book.png","s_book",4);
loadresource("data\\7\\2\\secret_bookb1.png","secret_bookb1",4);
loadresource("data\\7\\2\\secret_bookb2.png","secret_bookb2",4);
loadresource("data\\7\\2\\secret_bookb3.png","secret_bookb3",4);
loadresource("data\\inventary\\klyk.png","klyk",4);

AddObjForCur()
addstaticobjecttogame(10,"secret_bookb1",476,-425,"",0,0,460,853); 
addstaticobjecttogame(11,"secret_bookb2",472,-454,"",768,0,256,829);
addstaticobjecttogame(12,"secret_bookb1",354,-372,"",460,0,550,736);

addstaticobjecttogame(3,"secret_book1",252,50 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)

SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);



 addactivobjecttogame(13,"secret_bookb2",258,59  ,"","",0,0,0,368,688,529);
 addactivobjecttogame(14,"secret_bookb3",261,87  ,"","",0,0,0,524,816,500);
 addactivobjecttogame(15,"secret_bookb3",258,59  ,"","",0,0,0,0,785,524);
counter=0;
for i=10,12,1 do
    speciale_action(2,i)
end;


Set_Anim_Cur(13,4)



NewObj("vst","secret_bookb2",2000,2000,"",768+83,829,55,100); --кинжал
addstaticobjecttogame(25,"s_book",375,109,"",0,0,319,296);

addstaticobjecttogame(24,"s_book",44+407,55,"",396,305,671-407,426-55);
addstaticobjecttogame(23,"s_book",498,89,"",319,0,274,305);
addstaticobjecttogame(22,"s_book",498,160,"",593,0,368,241);
addactivobjecttogame(21,"s_book",497,174,"","",0,0,0,305,396,260);
    for i=22,25,1 do
        speciale_action(2,i)
    end;
if not flags.book_open then

    Set_Anim_Cur(21,4);

end;


NewObj("klyk","klyk",2000,2000,"82"); --клык волка
addstaticobjecttogame(26,"secret_bookb3",782,243,"",873,82,72,83); -- кинжал в книге
if flags.book_open then
speciale_action(2,21)
    ActivateObject(26,true)
    Set_Anim_Cur(26,4);
end;


addstaticobjecttogame(7,"secret_book5",258,59 ,"",0,0,688,529); --фон

if flags.pautina_von then
    Set_Anim_Cur(13,3);  
      speciale_action(2,13);
      speciale_action(2,14);
      speciale_action(2,15);
end;


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