Forum
CS2D Scripts tibia monsters spawn commandtibia monsters spawn command
5 replies 1
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.
edited 1×, last 09.07.14 10:34:55 pm
1