• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

harder script i guess

Elaney

Member
Joined
Jan 1, 2009
Messages
1,561
Reaction score
12
Location
Sweden
Well, im requesting an script, i got an maze where there are tiles like this.
LUA:
|xxx|
|    |
|ooo|
|    |
\     \
 \ xxx\
  \ ooo\

when 1 guy walk on nr 1 "x". 1 monsters spawns on each "0" but next guy who walk on "x" dont summon the monsters. and then when 1 guy walk on nr 2 "x" 1 monster spawn on each "0" and so on. been trying now for serveral hours without getting it to work.
 


LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)

local monster_pos = { 
[1] = {pos = {725, 695, 8}, monster = "boss"},
[2] = {pos = {726, 695, 8}, monster = "boss"},
[3] = {pos = {727, 695, 8}, monster = "boss"},							
}

local players_pos = { 
	{x =725, y =689, z =8, stackpos = 253},
	{x =726, y =689, z =8, stackpos = 253},
	{x =727, y =689, z =8, stackpos = 253}
	}

	
	if isPlayer(cid) then
		for i = 1, #player_pos do
			if getCreaturePosition(i) then
		if getStorage(item.itemid) == 1 then
			for _, area in pairs(monster_pos) do
                   doSummonCreature(area.monster,{x=area.pos[1],y=area.pos[2],z=area.pos[3]})
			doSetStorage(item.itemid, -1) -- reset the players count
			addEvent(storage, 4000)
		end
	end
end
end
end
	return true
end

function storage()
	doSetStorage(item.itemid, 1)
end

this is what i done myself.
 
Back
Top