(ID 144 is the milk-bucket)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
script=start //Spawn 2 Milk at Start 	on:start { 		local $id; 		$id=create("item",144,0,0,2); 		store $id,"self"; 		freevar $id; 	} //Add 1 Milk per Night 	on:changeday { 		if (count_stored("self",144)<5){ 			local $id; 			$id=create("item",144,0,0,1); 			store $id,"self"; 			freevar $id; 		} 	} //Get Eggs on Use on:use { if(count_stored("self",144)>0){ local $x,$z; $x=getx("self"); $z=getz("self"); create "item",144,$x,$z; freestored "self",144,1; 		 play "RoosterCrow.wav"; [Yes I know about this. I copied it from the script for a chicken to lay an egg & need to fix this.] }else{ msg "It has no milk!",3; speech "negative"; } } //Kill 	on:kill { 		event "iskill_hunt","global"; 	} script=end
Now, I also have an Empty Bucket item. That's 141. I cannot remember for the life of me how to get it so the cow will only drop if the user has a bucket (which is then freed from the user). Any suggestions? There probably needs to be an if statement but my memory fails me.