Histórico de Curtidas
-
NewScripter deu reputação a karlkalvin em [Pedido] Parando tempo nesse scriptColoque então o mesmo script em com o mesmo nome adicione essa tag no movements.xml
Se der erro poste o erro, ficará mais facil para resolver.
OBS : NÃO ESQUEÇA DE EDITAR A POS X.Y.Z. SE NÃO DARÁ ERRO !
SCRIPTER EDITADO ...
-
NewScripter deu reputação a karlkalvin em [Pedido] Parando tempo nesse scriptdata/actions/script
Teleports.lua
data/actions/actions.xml
TAG :
Coloque esse action ID no piso que o cara pisará e será teleportado !
-
NewScripter deu reputação a Skyforever em [Resolvido] [Pedido] Piso com tempoTapora erro meu euheuheehehhu
local events ={} local tempo = 30 -- tempo em segundos local pos = {x = 1, y = 1, z = 1} function onStepIn(cid, item, pos) doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. tempo .. " segundos você será teleportado") events[getPlayerGUID(cid)] = addEvent(doTeleportThing, pos, tempo * 1000, cid) return true end function onStepOut(cid, item, pos) doPlayerSendTextMessage(cid, 28, "Contagem zerada.") stopEvent(events[getPlayerGUID(cid)]) events[getPlayerGUID(cid)] = nil return true end
-
NewScripter deu reputação a Skyforever em [Resolvido] [Pedido] Piso com tempolocal events = {} local tempo = 30 -- tempo em segundos local pos = {x = 1, y = 1, z = 1} function onStepIn(cid, item, pos) doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. min .. " você será teleportado") events[getPlayerGUID(cid)] = addEvent(doTeleportThing, pos, tempo * 1000, cid) return true end function onStepOut(cid, item, pos) doPlayerSendTextMessage(cid, 28, "Contagem zerada.") stopEvent(events[getPlayerGUID(cid)]) events[getPlayerGUID(cid)] = nil return true end
-
NewScripter deu reputação a Skyforever em [Resolvido] [Pedido] Piso com tempoDepois do 1 min oque acontece?
local events = {} local min = 1 -- tempo em minutos local pos = {x = 1, y = 1, z = 1} function onStepIn(cid, item, pos) doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. min .. " você será teleportado") events[getPlayerGUID(cid)] = addEvent(doTeleportThing, pos, min * 1000 * 60, cid) return true end function onStepOut(cid, item, pos) doPlayerSendTextMessage(cid, 28, "Contagem zerada.") stopEvent(events[getPlayerGUID(cid)]) return true end