
I don't remember when and where i take this code, but it's does not works, anyone know why it's?-i don't understand what it's needed.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
imh = {} iXZone = 5.5 --posx maybe? iYZone = 5.5 --posy maybe? iXZoneRange = 5 --wtf this shit? iYZoneRange = 3 --wtf this shit? addhook ("startround","st") function st() 	for i=1,32 do imh=image("gfx/mora/stone.png",iXZone*32,iYZone*32,1,i) 	end end addhook ("movetile","mv") function mv(id,x,y) 	if ((x>=iXZone) and (x<=(iXZone+iXZoneRange)) and (y>=iYZone) and (y<=(iYZone+iYZoneRange))) then imagealpha(imh[id],0.5) 	else imagealpha(imh[id],1.0) 	end end st()
1
LUA ERROR: sys/lua/555.lua:19: attempt to index global 'imh' (a number value)
