
loadresource("data\\7\\3\\nisha.png","nisha",3);
loadresource("data\\7\\3\\0005.jpg","nisha4",4);
loadresource("data\\7\\3\\0006.jpg","nisha5",5);
loadresource("data\\inventary\\t_nog.png","t_nog",5);

AddObjForCur()

addstaticobjecttogame(3,"nisha",94 ,23 ,"",0,0,657,543); --рамка
CloseBtnX,CloseBtnY=Coords(3)

SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);



NewObj("scrtng","t_nog" ,2000,2000,"192",nil,nil,nil,nil,"2006"); --нож
NewObj("gvdre","nisha",460,215 ,"192",657,0,172,242); --гвоздодер
if not flags.cvecha_dop then
    speciale_action(2,obj.gvdre.id);

end;
addstaticobjecttogame(5,"nisha",391,318,"",829,0,68,136); --свеча
if not flags.cvecha_dop then
    speciale_action(2,5);

end;

addstaticobjecttogame(6,"nisha4",102,34,"",0,0,642,525); --светло
if not flags.cvecha_dop then
    speciale_action(2,6);
end;

Activ={
327,272,
650,272,
650,494,
327,494
}

CreatePolygon(7,4,"Activ")
Set_Anim_Cur(7,4);
if flags.cvecha_dop then
    Set_Anim_Cur(obj.gvdre.id,4)
    AddParticleToObject(5,"svecha",425,320);
    MoveEmiter("svecha",425,320);
    StartEmiter("svecha");    
    Set_Anim_Cur(7,3);
    ActivateObject(7,false)
end;
addstaticobjecttogame(8,"nisha5",102,34 ,"",0,0,638,522); --темно

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