Code:
!?OB112; Мельница
!!ML998:B?y1/?y2; type of resource
!!OW:R-1/y1/dy2; give resource to player
!!VRy3:S199467 + y1; z-var index
!!VRz2:Szy3;
!!VRz1:S^%Z2: {~w}%Y2{~}^; 'found resource' message
!!IF&999:L1;
!!TRv998/v999/v1000:T?y4/d/d/d/d/d/d/d;
!!UN:Ov998/v999/v1000/1;
!!VRv1:Sv998+1;
!!UN:Iv1/v999/v1000/53/y1/53/1/y4/1;
!!OB998:T53 U1;
!!MN998:Ry1;
!!PO998:V0/v2395 V1/y2 H0 N0;
!!OB998:M-1/1/0 H19910;
!!SN:Q;
!?TM2&$day$=1/$once$=1; Мельница
!!UN:U112/-1/?y1;
!!FU&y1=0:E;
!!VRv2:S-1;
!!UN:U112/-1/-1/2;
!!ML2:B?y3/?y4;
!!TRv2/v3/v4:T?y5/d/d/d/d/d/d/d;
!!UN:Ov2/v3/v4/1;
!!VRy6:Sv2+1;
!!UN:Iy6/v3/v4/53/y3/53/1/y5/1;
!!OB2:T53 U1 H19910;
!!MN2:Ry3;
!!PO2:V0/777 V1/y4 H0 N0;
!!VRy1:-1;
!!SN&y1>0:G3;