Ir para conteúdo
Propaganda

conexaodemafia

Membro
  • Total de Posts

    1
  • Registro em

  • Última visita

Tudo que conexaodemafia postou

  1. Adiciona o ActionId no teleport Coloca a tag em movements.xml <movevent type="StepIn" actionid="20000" event="script" value="boss24h.lua"/> Cria um arquivo em movements boss24h.lua e coloca o script dentro local config = { pos = {x=100, y=100, z=7}, time = 24, -- o tempo aqui é em horas, então 24 = 24horas storage = 99999, } function onStepIn(cid, item, position, fromPosition) if isMonster(cid) then return false end if getPlayerStorageValue(cid, config.storage) >= os.time() then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerPopupFYI(cid, "Você só pode usar o Portal novamente em " .. os.date("%d %B %Y %X ", getPlayerStorageValue(cid, config.storage)) .. ".") return false end doTeleportThing(cid, config.pos) setPlayerStorageValue(cid, config.storage, os.time() + config.time * 60 * 60) return true end
×
  • Criar Novo...