Forum

> > CS2D > Scripts > tibia monsters spawn command
Forums overviewCS2D overview Scripts overviewLog in to reply

English tibia monsters spawn command

5 replies
To the start Previous 1 Next To the start

old tibia monsters spawn command

prored810
User Off Offline

Quote
Hellow guyz i want a command that spawn monsters on tibia i tryed !m command but doesn't work i checked admin.lua and i find that there is no monsters spawn command so would u please give me the things to add to make this command and access it?

old Re: tibia monsters spawn command

EngiN33R
Moderator Off Offline

Quote
Well, since the admin.lua file doesn't have the command, it's a safe enough bet that it was disabled in the edit for some reason. You can try to write it back in yourself, or you can try using the cs2d cmd lua command to spawn the monsters directly. There's also the option of switching to the original script or another edit.

old Re: tibia monsters spawn command

TrialAndError
User Off Offline

Quote
Go to admin.lua and add this code:

1
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview