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
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
addhook ("collect","armor") function armor(id,iid,type,ain,a,mode) 	if type==58 then 	if (sample.classes.class[id]==1) then 		parse ("setarmor "..id.." 50") 		parse ("equip "..id.." 61") 		parse ("equip "..id.." 62") 		parse ("equip "..id.." 64") 		parse ("setmoney "..id.." "..player(id,"money")+2000) elseif (sample.classes.class[id]==2) then 		parse ("setarmor "..id.." 200") 		parse ("equip "..id.." 61") 		parse ("equip "..id.." 62") 		parse ("equip "..id.." 64") 		parse ("setmoney "..id.." "..player(id,"money")+2000) elseif (sample.classes.class[id]==3) then 		parse ("setarmor "..id.." 50") 		parse ("equip "..id.." 61") 		parse ("equip "..id.." 62") 		parse ("equip "..id.." 64") 		parse ("setmoney "..id.." "..player(id,"money")+2000) elseif (sample.classes.class[id]==4) then 		parse ("setarmor "..id.." 120") 		parse ("equip "..id.." 61") 		parse ("equip "..id.." 62") 		parse ("equip "..id.." 64") 		parse ("setmoney "..id.." "..player(id,"money")+2000) elseif (sample.classes.class[id]==6) then 	 parse ("setarmor "..id.." 200") 		parse ("equip "..id.." 61") 		parse ("equip "..id.." 62") 		parse ("equip "..id.." 64") 		parse ("setmoney "..id.." "..player(id,"money")+2000) elseif (sample.classes.class[id]==7) then 		parse ("setarmor "..id.." 120") 		parse ("equip "..id.." 61") 		parse ("equip "..id.." 62") 		parse ("equip "..id.." 64") 		parse ("setmoney "..id.." "..player(id,"money")+2000) elseif (sample.classes.class[id]==8) then 		parse ("setarmor "..id.." 50") 		parse ("equip "..id.." 61") 		parse ("equip "..id.." 62") 		parse ("equip "..id.." 64") 		parse ("setmoney "..id.." "..player(id,"money")+2000) 		end 	end end
I made similar script which is like when i collect an item with different class i get different item and that one works but this one doesn't.Please help.