loadresource("data\\6\\2\\yaschik.png","yaschik",3);

loadresource("data\\6\\2\\0002.png","jashik3",3);


loadresource("data\\6\\2\\0005.jpg","jashik6",6);

loadresource("data\\6\\2\\0008.jpg","jashik9",9);

loadresource("data\\inventary\\lopata.png","lopata",9);

counter=0;
AddObjForCur()

addstaticobjecttogame(3,"jashik3",132,17 ,""); --рамка    
CloseBtnX,CloseBtnY=Coords(3)


SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);


                    
NewObj("lopat","lopata",2000,2000 ,"113"); --лопата
NewObj("lopta","yaschik",188,22 ,"113",0,509,619,440); --лопата
addstaticobjecttogame(10,"yaschik",214-72,47-52,"",0,0,687,509); --тень лопаты        
if not flags.box_loc6_open then
speciale_action(2,obj.lopta.id);
speciale_action(2,10);
end;
if flags.box_loc6_open then
Set_Anim_Cur(obj.lopta.id,4)
end;
addstaticobjecttogame(6,"jashik6",138,24 ,"",0,0,760,546); --ящик открыт бг
if not flags.box_loc6_open then
    speciale_action(2,6);
end;
addstaticobjecttogame(19,"yaschik",659,381,"",619,753,244,118); --отвертка 2-е пол
speciale_action(2,19);
addactivobjecttogame(7,"yaschik",665,440,"","",0,0,619,871,244,118); --отвертка
speciale_action(2,7);
addstaticobjecttogame(18,"yaschik",610,319 ,"",619,509,170,244);
speciale_action(2,18)
addactivobjecttogame(8,"yaschik",612,310,"","",0,0,789,509,140,216); --замок
Set_Anim_Cur(8,4)
if flags.box_loc6_open then
speciale_action(2,8)
end;
addstaticobjecttogame(9,"jashik9",137,23 ,"",0,0,762,548); --ящик закрыт бг

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