Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
tibia monsters spawn command
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)
![user](img/i_friend.png)
![cs2d cmd](img/i_codehelp.png)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
elseif command =='m' then 			if gettile(player(id, 'tilex'), player(id, 'tiley')).SAFE then 				msg2(id,'You may not spawn a mosnter in a safe zone.') 				return 1 			end 			local name = words:sub(4) 			if name then 				for i, v in pairs(CONFIG.MONSTERS) do 					if v.name:lower() == name:lower() then 						local m = deepcopy(v) 						m.x, m.y = player(id, 'x'), player(id, 'y') 						Monster:new(m) 						msg2(id,'Monster ' .. name .. ' spawned.') 						return 1 					end 				end 			end 			msg2(id,'Monster ' .. name .. ' does not exist.') 			return 1
Btw, it was removed because when you spawned a monster on a water tile that you cant walk on then the server crashed, So be careful.
![user](img/i_friend.png)
edited 1×, last 09.07.14 10:34:55 pm
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)