• 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!

Solved remove stone time

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
923
Location
Chile
hiii like i said in the title, how can i do that a removestone script works at 21:00 for example? here is my lua and xml

LUA:
local piedra = 12345 
 
local function appear(pos)
	if getThingFromPos(pos).itemid ~= piedra then
		doSendMagicEffect(pos,17) 
		doCreateItem(piedra,1,pos) 
		doBroadcastMessage("El pilar esta de vuelta, en 6 horas mas desaparecera de nuevo.")     
	end
end
 
function onTime(time)
	local lugares = {
		{x = 886, y = 1148, z = 7, stackpos = 1}
	}
 
	local segundos = 300 
	for i = 1,#lugares do
		if getThingFromPos(lugares[i]).itemid == piedra then
			doSendMagicEffect(lugares[i],15)
			doRemoveItem(getThingFromPos(lugares[i]).uid)
                doBroadcastMessage("Event Last Man Standing esta abierto.")
			addEvent(doBroadcastMessage,60 * 1000,"4 minutos mas reclutando jugadores.")
			addEvent(doBroadcastMessage,120 * 1000,"3 minutos mas reclutando jugadores.")
			addEvent(doBroadcastMessage,180 * 1000,"2 minutos mas reclutando jugadores.")
			addEvent(doBroadcastMessage,240 * 1000,"1 minuto mas reclutando jugadores.")
			addEvent(appear,segundos * 1000,lugares[i])
		end
	end
   	return TRUE
end

XML:
<globalevent name="QuitaPiedra" time="20:19:00" script="removestone.lua"/>

plzzz someone help me :C
 
i don't have other automatic scripts :S

- - - Updated - - -

man, anyway the spanish part is not important, is just text
 
Back
Top