• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Monster spawn when walk on

leeebux

Awsome
Joined
May 18, 2009
Messages
116
Reaction score
17
Location
Sweden
Hello guys.

I would like a some script that makes x monster spawn, if play walk on a floor, and x how many that will spawn. i tried search but dident find any.

Rep++ to the one that's help me. :)
 
if player steps on tile XXXX,YYYY 4 skeletons will spawn at your location

put this in movements.xml
Code:
<movevent type="StepIn" fromid="XXXX" toid="YYYY" event="script" value="spawn.lua"/>


spawn.lua
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	local num = 4
	
	
	for var=0,num ,1 do
		doSummonCreature("Skeleton", toPosition)
    end
	
	return true
end
 
Ya, that's one is great, but i was woundering if you could do it lite more advance, so i can use a normal tile that i got everywhere, not just a special one :P

Btw rep++ to you :)
 
I don't think you did understand me :S, i want a script that i can put x,z,y where there monster will spawn if a player walk on it, also hmm maybe a cooldown on the floor so a player can't walker there in 1 min or so :P
 
I think it's better with aids and uids.....
So only chage in the registration:
XML:
<movevent type="StepIn" fromid="XXXX" toid="YYYY" event="script" value="spawn.lua"/>

For this:
XML:
<movevent type="StepIn" actionid="XXXX;YYYY" event="script" value="spawn.lua"/>

Hope it's useful for u... ^^
 
Back
Top