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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
### Barrel
id=250
name=MBarrel
group=stuff
icon=gfx\barrel.bmp
model=gfx\barrel.b3d
health=15
color=300,300,300
mat=wood
maxweight=30000000
script=start
on:start {
$tmp=random(1,5);
		if ($tmp==1);{
			$id=create("item",29,10);
			store $id,"self";
			$id=create("item",58,1);
			store $id,"self";
		}elseif ($tmp==2){
			$id==create("item",29,10);
			store $id,"self";
		}elseif ($tmp==3){
			$id==create("item",14,30);
			store $id,"self";
		}elseif ($tmp==4){
			$id==create("item",27,30);
			store $id,"self";
		}elseif ($tmp==5){
			$id==create("item",45,20);
			store $id,"self";
			$id==create("item",46,20);
			store $id,"self";
		}
	}
on:create {
$tmp=random(1,5);
		if ($tmp==1);{
		$id=create("item",29,10);
			store $id,"self";
			$id=create("item",58,1);
			store $id,"self";
		}elseif ($tmp==2){
			$id==create("item",29,10);
			store $id,"self";
		}elseif ($tmp==3){
			$id==create("item",14,30);
			store $id,"self";
		}elseif ($tmp==4){
			$id==create("item",27,30);
			store $id,"self";
		}elseif ($tmp==5){
			$id==create("item",45,20);
			store $id,"self";
			$id==create("item",46,20);
			store $id,"self";
		}
	}
on:use {
	exchange "self";
		addstate "self",5;
		statevalue "self",5,100;
	}
script=end;