Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Tiles value by mouse
5 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("say","_say") function _say(id,txt) 	if txt == "!tile" then 		-- Think this only works when you are alive 		if player(id,"health") > 0 then 			reqcld(id,2) 		end 		return 1 	end end addhook("clientdata","_c") function _c(id,mode,d1,d2) 	if mode == 2 then 		local x, y = math.floor(d1/32), math.floor(d2/32) 		msg2(id,"tile id of position "..x.."|"..y.." is "..tile(x,y,"frame")) 	end end
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("say","_say") function _say(id,txt) if txt == "!tile" then msg2(id,"tile id of position "..player(id,"mousemapx")/32 .."|"..player(id,"mousemapy")/32 .." is "..tile(player(id,"mousemapx")/32,player(id,"mousemapy")/32,"frame")) return 1 end end
![user](img/i_friend.png)
![](img/smiles/ugly.gif)
![](img/smiles/smile.gif)
![](img/smiles/heart.gif)
![user](img/i_friend.png)
![](img/smiles/ugly.gif)
(Does it auto-cast float numbers if it does happen?)
![user](img/i_friend.png)
![](img/smiles/ugly.gif)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)