Postado Agosto 9, 2018 6 anos Alguém que manja em script poderia me ajudar com esse script de teleport por segundos? vou deixar umas fotos logo abaixo para entender como é que funciona. Origado DESDE JÁ REP+ PRA QUEM AJUDAR, já valeu o script por que a rima foi boua kkkk, brincadeiras a parte... Comando Sendo Executado Spoiler Comando Sendo Executado Com Battle Spoiler Comando Sendo Executado E No Ultimo Segundo Pegou Pz, Battle Spoiler
Postado Agosto 9, 2018 6 anos Solução function doTeleportWithDelay(cid, pos, delay) if not isCreature(cid) then return LUA_ERROR end if delay > 0 then if getCreatureCondition(cid, CONDITION_INFIGHT) or not getTilePzInfo(getCreaturePosition(cid)) then setPlayerStorageValue(cid, 548745, 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "{Teleport} O teletransporte foi desativado pois você entrou em estado de combate, ou em zonas especiais.") return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "{Teleport} "..delay.." segundos para se teletransportar.") addEvent(doTeleportWithDelay, 1000, cid, pos, delay-1) else doTeleportThing(cid, pos) doSendMagicEffect(getPlayerPosition(cid),pos) end end function onSay(cid, words, param) local param = param:lower() local time, t = 5, { ["depot"] = {x=129, y=54, z=6}, ["templo"] = {x=160, y=54, z=7}, ["arena"] = {x=125, y=351, z=9} } if not t[param] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "{Teleport} Desculpe, este lugar não existe.") return true elseif getCreatureCondition(cid, CONDITION_INFIGHT) or not getTilePzInfo(getCreaturePosition(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "{Teleport} Este comando só pode ser usado fora de áreas de combate ou pz lock.") return true elseif getPlayerStorageValue(cid, 548745) - os.time() > 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "{Teleport} aguarde, você está em processo de teletransporte.") return true end setPlayerStorageValue(cid, 548745, os.time()+time) return doTeleportWithDelay(cid, t[param], time) end no onLogin adc isso antes do ultimo return true setPlayerStorageValue(cid, 548745, 0) -- TP SYSTEM [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Janeiro 9, 2020 5 anos Desculpa Reabrir! Mais poderia Coloca esse sistema! Nessa Script de quando clicar em um obj Ser teleportado Gostaria que funcionasse aqui! só a parte que fala voce vai ser teleportado em 5 seg! Isso é action! function onUse(cid, item, fromPosition, item2, toPosition) local teleport = {x = 478, y = 992, z = 15} doTeleportThing(cid, teleport) doSendMagicEffect(getPlayerPosition(cid), 10) doPlayerSendTextMessage(cid, 22, "Voce foi teleportado para Namek Planet! DBO EVOLUTION") end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.