Dica: esse script vai pegar monstros tb, se tiver monstros na sala ou npcs ele tb não deixa passar.
Não sei se tem como acontecer ai no que vc quiser usar, mas assim é melhor:
function onStepIn(cid, item, position, fromPosition)
if (item.actionid == 23036) then
a = 0
for check_forjax = 1035,1041 do -- check X começo e final da sala
for check_forjay = 1023,1027 do -- check Y começo e final da sala
forjapos = {x=check_forjax, y=check_forjay, z=7, stackpos=253}
room_forja = getThingfromPos(forjapos )
if isPlayer(room_forja.uid) then
a = a +1
if a >= 4 then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doPlayerSendCancel(cid,"já tem quatro jogadores na Dungeon.")
return TRUE
end
end
end
end
end
return TRUE
end




info
Grupo: Visconde
Registrado: 17/01/11
Posts: 343
Reputação: +46
Char no Tibia: Zodriac
Erro meu Demonbholder, é que eu nem li sei script direitinho só testei...
Mas agora ta funcionando vlw =)
Pode ser movido!