loadresource("data\\12\\1\\0002.png","derevo2_2",2);
loadresource("data\\12\\1\\0007.jpg","derevo2_7",7);
loadresource("data\\inventary\\provod.png","derevo2_8",8);
loadresource("data\\12\\1\\derevo.png","derevo",6);
loadresource("data\\12\\1\\v004.png","v004",6);

AddObjForCur()
addstaticobjecttogame(3,"derevo2_2",279,15 ,""); --נאלךא
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);

NewObj("shnrk","derevo2_8",5000,5000,"264"); --ןנמגמה

srub={
420,282,
689,161,
689,247,
432,351
}

prov={
647,321,
851,321,
851,475,
647,475
}

CreatePolygon(62,4,"prov")
Set_Anim_Cur(62,4)
CreatePolygon(6,4,"srub");
Set_Anim_Cur(6,4)
addstaticobjecttogame(10,"derevo",628,183,"",659,548,97,288);
addstaticobjecttogame(11,"derevo",485,199,"",756,548,158,282);
addstaticobjecttogame(12,"derevo",483,197,"",0,0,446,401);
for i=10,12,1 do
    speciale_action(2,i)
end;
counter=0;
addstaticobjecttogame(14,"v004",285,20 ,"");
addstaticobjecttogame(13,"derevo",285,20 ,"",446,0,483,548);

addstaticobjecttogame(7,"derevo2_7",285,20 ,"",0,0,632,548); --בד


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