Please can you help me to get rid of something annoying:
I scripted several alchemist labs (with graphics changed) to give me mithril if visited each week. The problem is that they appear as "owned alchemist labs" in kingdom overview so they give me each day mercury (as well as mithril on visit). I disabled them individually with :S; but nothing changed. Where is my mistake?
*** Timer
!#TM10:S1/999/7/2; launch timer every 7 days for tan starting with second week
!?TM10;
!!UN:U53/1/?v1; get total # of alchemist labs
!!VRv2:S-1; must initialize v2<0 for "next" search
!!DO81/1/v1/1:P53/1;
!#HT53/1:P0/159; Rename all alchemist labs (unvisited version)
!#HT53/1:P1/11; use z11 string if lab was visited
!#VRz159:S^Miner hut (Not Visited)^;
!#VRz11:S^Miner hut (Visited)^;
!#VRz394:S^{Miner hut}
The miner gives you 1 bar of iron every week. You already have your bar for this week.^;
!#VRz396:S^{Miner hut}
You got one iron bar.^;
!?OB53/1;
!!HE-1:O?v1;
!!MNv998/v999/v1000:Ov1;
!!PO998:N?v1; get N-# for current object @ (v998,v999,v1000)
!!IF&v1=1:M1/z394;
!!FU&v1=1:E; exit if lab already visited this week
!!IF:Q1/7/1/1/z396; **give iron but it does not show...
!!OW:R2/7/d1; <-- changed from 1 to d1
!!PO998:N1; set this lab visited for all Heroes
** function to do object variable resetting
!?FU81; x1=type, x2=subtype
!!UN:Ux1/x2/-1/2; put coordinates of next type x1/x2 object --> (v2,v3,v4)
!!PO2:N0; set to unvisited
Thank you
(This post was last modified: 28.04.2009 03:16 by Valery.)