Forum

> > CS2D > Scripts > tibia monsters spawn command
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch tibia monsters spawn command

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt tibia monsters spawn command

prored810
User Off Offline

Zitieren
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?

alt Re: tibia monsters spawn command

EngiN33R
Moderator Off Offline

Zitieren
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.

alt Re: tibia monsters spawn command

TrialAndError
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht